![]() |
|
Avisynth preview error: - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: Avisynth preview error: (/thread-1519.html) Pages:
1
2
|
Avisynth preview error: - kingcrimsonster - 07.09.2020 Quote:Avisynth preview error: -> Evaluate: Unhandled C++ exception! In the QTGMC (Avisynth) when set refined or 2refined not working Avisynth preview. RE: Avisynth preview error: - Selur - 07.09.2020 ClearAutoloadDirs()
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LoadDll.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\AddGrainC.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\dfttest.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\EEDI2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\eedi3.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\FFT3DFilter.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\masktools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\mvtools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\TDeint.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\VerticalCleanerSSE2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\RgTools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\MedianBlur2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi3.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi2.dll")
LoadCPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\yadif.dll")
LoadDLL("C:\Program Files\Hybrid\32bit\avisynthPlugins\libfftw3f-3.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\QTGMC.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\SMDegrain.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\Zs_RF_Shared.avsi")
LoadCPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\ffms2.dll")
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
# loading source: D:\Video\UNNAMED DISC\2006 - Udo Music Festival Fuji Speedway.mkv
# input color sampling YV12@8, matrix:Rec.709, scantyp: top field first
# input luminance scale tv
Source = FFVideoSource("D:\Video\UNNAMED DISC\2006 - Udo Music Festival Fuji Speedway.mkv",cachefile="C:\Windows\Temp\mkv_a465d645c614698d0466fbe84c48ae4a_853323747_1_0.ffindex",fpsnum=30000,fpsden=1001,colorspace="YV12")
# cutting from 207 with 112661 frames - WARNING: This might cause synch issues
Source = Source.Trim(207, 112454)
# current resolution: 720x480
# deinterlacing
SourceFiltered = Source
Source = Source.AssumeTFF()
Source = Source.QTGMC(Preset="Slow", InputType=0, TR2=1, Sharpness=1.0, SourceMatch=0, Lossless=2, ediThreads=2, FPSDivisor=2, PrevGlobals="Reuse")# added PrevGlobals="Reuse" to handle multiple QTGMC instances
SourceFiltered = SourceFiltered.AssumeTFF()
SourceFiltered = SourceFiltered.QTGMC(Preset="Slow", InputType=0, TR2=1, Sharpness=1.0, SourceMatch=0, Lossless=2, ediThreads=2, FPSDivisor=2, PrevGlobals="Reuse")# added PrevGlobals="Reuse" to handle multiple QTGMC instances
# cropping
Source = Source.Crop(2,58,-6,-58)
SourceFiltered = SourceFiltered.Crop(2,58,-6,-58)# 712x364
# filtering
# scaling to 712x412
Source = Source.BicubicResize(712,412)
SourceFiltered = SourceFiltered.nnedi3_rpow2(rfactor=2,cshift="GaussResize",fwidth=712,fheight=412)
Source = Source.ColorYUV(analyze=true)
SourceFiltered = SourceFiltered.ColorYUV(analyze=true)
# stacking horizontal for filter preview
# adjust color to RGB32
SourceFiltered = SourceFiltered.ConvertToRGB32(matrix="Rec601")
# adjust color to RGB32
Source = Source.ConvertToRGB32(matrix="Rec601")
StackHorizontal(Source, SourceFiltered)
PreFetch(6)
return lastSimilar script: ClearAutoloadDirs()
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\LoadDll.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\DGDecodeNV.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\AddGrainC.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\dfttest.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\EEDI2.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\eedi3.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\FFT3DFilter.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\masktools2.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\mvtools2.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\TDeint.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\VerticalCleanerSSE2.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\RgTools.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\MedianBlur2.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\nnedi3.dll")
LoadPlugin("I:\Hybrid\32bit\AVISYN~1\nnedi2.dll")
LoadCPlugin("I:\Hybrid\32bit\AVISYN~1\yadif.dll")
LoadDLL("I:\Hybrid\32bit\avisynthPlugins\libfftw3f-3.dll")
Import("I:\Hybrid\32bit\avisynthPlugins\QTGMC.avsi")
Import("I:\Hybrid\32bit\avisynthPlugins\SMDegrain.avsi")
Import("I:\Hybrid\32bit\avisynthPlugins\Zs_RF_Shared.avsi")
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
# loading source: F:\TestClips&Co\files\interlaceAndTelecineSamples\interlaced\burosch1.mpg
# input color sampling YV12@8, matrix:Rec.709, scantyp: bottom field first
# input luminance scale tv
DGSource(dgi="E:\Temp\mpg_9f66a10dd7c34fcf28a5513f1347c0b5_853323747.dgi",fieldop=2)
# current resolution: 720x576
# deinterlacing
AssumeBFF()
QTGMC(Preset="Slow", InputType=0, TR2=1, Sharpness=1.0, SourceMatch=0, Lossless=2, ediThreads=2)
SelectEven()
# cropping
Crop(2,58,-6,-58)# 712x460
# filtering
# scaling to 712x412
# using lanczos resize instead of nnedi3 since needi3 can only be used for upscaling
LanczosResize(712,412)
PreFetch(8)
return lastMight be a problem with the source filter having problems with the source. -> I would suggest trying a different source filter, Cu Selur RE: Avisynth preview error: - kingcrimsonster - 07.09.2020 I set Libavvideosource - problem still exist ClearAutoloadDirs()
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LoadDll.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LSMASHSource.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\AddGrainC.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\dfttest.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\EEDI2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\eedi3.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\FFT3DFilter.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\masktools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\mvtools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\TDeint.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\VerticalCleanerSSE2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\RgTools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\MedianBlur2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi3.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi2.dll")
LoadCPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\yadif.dll")
LoadDLL("C:\Program Files\Hybrid\32bit\avisynthPlugins\libfftw3f-3.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\QTGMC.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\SMDegrain.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\Zs_RF_Shared.avsi")
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
# loading source: D:\Video\UNNAMED DISC\2006 - Udo Music Festival Fuji Speedway.mkv
# input color sampling YV12@8, matrix:Rec.709, scantyp: top field first
# input luminance scale tv
LWLibavVideoSource("D:\Video\UNNAMED DISC\2006 - Udo Music Festival Fuji Speedway.mkv",cache=false,dr=true,format="YUV420P8", prefer_hw=0)
# cutting from 0 with 112454 frames - WARNING: This might cause synch issues
Trim(0, 112454)
# current resolution: 720x480
# deinterlacing
AssumeTFF()
QTGMC(Preset="Slow", InputType=0, TR2=1, Sharpness=1.0, SourceMatch=2, Lossless=0, ediThreads=2, FPSDivisor=2)
# cropping
Crop(4,58,-8,-60)# 708x362
# filtering
# scaling to 708x408
nnedi3_rpow2(rfactor=2,cshift="GaussResize",fwidth=708,fheight=408)
PreFetch(6)
return lastRE: Avisynth preview error: - Selur - 07.09.2020 Okay, it's probably not the source filter. Problem might be related to the memory usage, when using 2xQTGMC (filtering the original and the filtered version). 1. Does this also happen with other sources? 2. Does the normal Avisynth Preview (you are using the Avisynth Filter Preview) work? 3. Does this also crash if you don't use NNEDI3 resize? 4. Does it work if you limit the AvisynthPlus memory to for example 512MB and disable 'double'? 5. Does it work if you set the QTGMC EdiThreads to 1? 6. Does it work if you use Avisynth 64bit instead of 32bit? Cu Selur RE: Avisynth preview error: - kingcrimsonster - 07.09.2020 (07.09.2020, 20:38)Selur Wrote: Okay, it's probably not the source filter. 1. also happen 2. Normal preview working, but very slow and jerky 3. also crash 4. not work 5. not work 6. not work RE: Avisynth preview error: - Selur - 07.09.2020 Quote:2. Normal preview working, but very slow and jerkyWhat's the memory usage of the normal preview? (filter preview will be nearly double that since two QTGMC instances are used) How much free memory is on your system? Cu Selur RE: Avisynth preview error: - kingcrimsonster - 07.09.2020 (07.09.2020, 21:16)Selur Wrote:mplayer - usage 1157 mBQuote:2. Normal preview working, but very slow and jerkyWhat's the memory usage of the normal preview? free memory 6762 mB RE: Avisynth preview error: - Selur - 07.09.2020 Quote:mplayer - usage 1157 mBI thought you used the avisynth filter preview? So the memory usage of avsViewer is what is interesting. By default the normal preview should now use Avisynth and if that is still the state on your system 1157 MB without QTGMC would be a killer,.. RE: Avisynth preview error: - kingcrimsonster - 07.09.2020 avisynth filter preview not working. I use normal preview. RE: Avisynth preview error: - Selur - 07.09.2020 Okay, you really need to be more specific what you are doing, since you now totally lost me. There are multiple preview options in the Filter-tab.
I'm totally unclear what is working and what isn't working for you since you only once every 10 posts seem be write anything in detail. -> write down in detail what you do and what doesn't work. If you post DebugOutputs, make sure that they only include one thing and name the files properly so it's not a guessing game what is what. For me QTGMC with Source matching 2xrefined with a SD source takes ~1360MB. For me QTGMC with Source matching 2xrefined with a SD source and Filter view enabled takes ~1560MB. For me QTGMC with Source matching 2xrefined with a SD source and Filter view enabled and NNEDI3 takes ~1650MB. (assuming the resizing is minimal, in which case using NNEDI3 is really waste of time, but that's your choice) So memory usage shouldn't be a problem. (You can also check the Benchmark to see the speed and memory usage of just the script.) Also don't expect 'normal Preview + Avisynth' or 'Filter view + Avisynth' to run in real time. Cu Selur Ps: I'm going to bed now, in case you can describe it in a way that allows me to reproduce the problem I can try to look at it tomorrow after work. |