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.

creates a non-working encoded file if enabled TenporalDegrain filter
#1
hybrid creates a non-working encoded file if enabled TenporalDegrain filter
The first 3-4 seconds of video are played, then the picture freezes and only the sound plays
if "AutoAdjust" filter enabled at the same time, Hybrid creates a working file!
Reply
#2
Since it doesn't crash it's probably some memory problem or the filters run into some problem and don't report it. Sad
-> hard to track down and usually not reproducible :/
1. Does the avisynth preview work properly?
2. Does this also happen if you set Filtering->Avisynth->Memory max to 1024?
3. Does this also happen if you enable Filtering->Avisynth->Misc->LibavVideoSource instead of FFmpegSource? (for SD content LibavVideoSource often is the better choice)
4. If none of the above helped, try whether disabling you virus scanner/solution during the conversion changes anything.

Cu Selur
Reply
#3
1, 2, 3 - yes
Quote: try whether disabling you virus scanner/solution during the conversion changes anything
same result
I specify: If "AutoAdjust" filter and TenporalDegrain filter both enabled, Hybrid creates a working file.
This can not be caused by low memory or virus scanner problem.
Reply
#4
Since you are sure that neither memory usage nor a Virus scanner ist the cause of this and the preview Workshop, the only thing I can think of ist a problem with the threading. -> does the problem also occur of you disable the MT Support?
Reply
#5
Quote:does the problem also occur of you disable the MT Support?
Yes
Reply
#6
Without MT, Avisynth only uses one thread, thus it's not threading and probably not a memory problem.
Did you try to disable your desktop anti virus / firewall solution ? (this sounds to me like either something is interfering with Avisynth)
Also does this only happen to you with one file or can you reproduce it with others (of a different format etc.) too?

Cu Selur
Reply
#7
Funny thing is using a script like:
SetMemoryMax(768)
SetMTMode(5,16) # changing MT mode
LoadPlugin("G:\Hybrid\AVISYN~1\LoadDll.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\hqdn3d.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\FFT3DFilter.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\mt_masktools-26.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\mvtools2.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\RgTools.dll")
LoadDll("G:\Hybrid\AVISYN~1\fftw3.dll")
LoadDll("G:\Hybrid\AVISYN~1\LIBFFT~1.DLL")
Import("G:\Hybrid\avisynthPlugins\TemporalDegrain.avs")
LoadCPlugin("G:\Hybrid\AVISYN~1\ffms2.dll")
# loading source: F:\Usenet\Incoming\NCIS.Los.Angeles.S09E11.HDTV.x264-LOL\f15664cdc9be4f4d9beb0bff87f45f8b.mkv
#  input luminance scale tv
FFVideoSource("F:\Usenet\Incoming\NCISLO~1.X26\F15664~1.MKV",cachefile="H:\Temp\18_09_36_6610.ffindex")
# current resolution: 720x404
# grain handling
SetMTMode(3) # changing MT mode
TemporalDegrain(blksize=32,SAD1=250,SAD2=250,HQ=1)
distributor()
return last
freezes ffmpeg/AVSMeter/... after a few frames,...
Disabling MT and using works fine here:
LoadPlugin("G:\Hybrid\AVISYN~1\LoadDll.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\hqdn3d.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\FFT3DFilter.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\mt_masktools-26.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\mvtools2.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\RgTools.dll")
LoadDll("G:\Hybrid\AVISYN~1\fftw3.dll")
LoadDll("G:\Hybrid\AVISYN~1\LIBFFT~1.DLL")
Import("G:\Hybrid\avisynthPlugins\TemporalDegrain.avs")
LoadCPlugin("G:\Hybrid\AVISYN~1\ffms2.dll")
# loading source: F:\Usenet\Incoming\NCIS.Los.Angeles.S09E11.HDTV.x264-LOL\f15664cdc9be4f4d9beb0bff87f45f8b.mkv
#  input luminance scale tv
FFVideoSource("F:\Usenet\Incoming\NCISLO~1.X26\F15664~1.MKV",cachefile="H:\Temp\18_09_36_6610.ffindex")
# current resolution: 720x404
# grain handling
TemporalDegrain(blksize=32,SAD1=250,SAD2=250,HQ=1)
return last
so I wonder why it doesn't work for you,...
Reply
#8
Reading https://forum.doom9.org/showthread.php?t=168798 it seems like TemporalDegrain does not work with MT unless HQ is set to 0, which explains why disabling MT fixes the issue for me.
-> will disable MT automatically in the future when TemporalDegrain with HQ=1 is used. But no clue why this doesn't fix the issue for you and why it works for you if you add other filters,..

Cu Selur
Reply
#9
problem occurs when enabled "Picture crop"
Reply
#10
MT Mode isn't disabled,..
# current resolution: 720x480
SetMTMode(2) # changing MT mode
# cropping to 716x356
Crop(2,62,-2,-62)
# current resolution: 716x356
# grain handling
TemporalDegrain(blksize=32,degrain=3,SAD1=250,SAD2=250,HQ=1)
-> not surprised it doesn't work.
It might work again if the resolution you feed TemporalDegrain is mod16 (depending on the thread count).

=> try whether it works for you when you disable MT (if you keep it enabled you can try setting memory max to a value like 256)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)