This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Avisynth preview error:
#1
Quote:Avisynth preview error: -> Evaluate: Unhandled C++ exception!

In the QTGMC (Avisynth) when set refined or 2refined not working Avisynth preview.
Reply
#2
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 last
Script looks fine to me.
Similar 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 last
works fine here without a problem.

Might be a problem with the source filter having problems with the source.
-> I would suggest trying a different source filter,

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
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 last
Reply
#4
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
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
(07.09.2020, 20:38)Selur Wrote: 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

1. also happen

2. Normal preview working, but very slow and jerky

3. also crash

4. not work

5. not work

6. not work
Reply
#6
Quote:2. Normal preview working, but very slow and jerky
What'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
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#7
(07.09.2020, 21:16)Selur Wrote:
Quote:2. Normal preview working, but very slow and jerky
What'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
mplayer - usage 1157 mB

free memory 6762 mB
Reply
#8
Quote:mplayer - usage 1157 mB
I 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,..
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#9
avisynth filter preview not working.
I use normal preview.
Reply
#10
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.
  • normal Preview (by default mplayer only)
  • normal Preview + Avisynth (in case "Config->Internals->No Avisynth during Preview" is disabled) <- this is NOT recommend
  • Filter view = normal Preview + "Filter view" enabled (by default mplayer only); (for 32bit and 64bit Avisynth, depending on the setting of 'Config->Internals->Avisynth->Avisynth type')
  • Filter view + Avisynth = normal Preview + Filter view enabled (by default mplayer only) + Avisynth (in case "Config->Internals->No Avisynth during Preview" is disabled) <- this is NOT recommend; (for 32bit and 64bit Avisynth, depending on the setting of 'Config->Internals->Avisynth->Avisynth type')
  • Avisynth Preview
  • Avisynth Filter View = Avisynth Preview +'Filter view enabled'
  • Vapoursynth Preview
  • Vapoursynth Filter View = Vapoursynth Preview +'Filter view enabled'

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.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)