MAG79 wrote:mark007
SetMTMode(3,16)
It is mean that Avisynth does calculating in 16 threads simultaneously. First thread need current frame and one next frame to calculate motion vectors. Second thread need calculate motion vectors between next two frames. So 16 threads need buffer 16 frames ahead. It is if in two words.
Audio sync problem was only is case 1:1 smoothing coefficient and was resolved in SVP 3.1.3.
What your case? Tell us more details about audio sync problem please.
I'm interpolating for example 23.976 to 59.94 ( 5/2 ). Even if I select 1 frame ahead in avisynth, smoothness is perfect, absolutely perfect! Even in really obvious scenes like the panning scene Death.and.Life.of.Bobby.Z.mkv its so perfectly smooth panning no jumps or glitches at all. How can this be so perfectly smooth if SVP really does need more than 1 frame ahead? Does SVP have its own way of still waiting for the correct frame to be available in this case?
With 1 frame ahead I get perfect smoothness but very bad audio desync. This baffles me. I'm just afraid even 16 frames ahead might still have a problem with audio desync, but that its just not so noticible.
This post seems to indicate the buffer ahead is only a workaround in avisynth for filters that don't support being asked for a particular frame?
http://ffdshow-tryout.sourceforge.net/w … back_ahead
"To work around this somewhat, the ffdshow AviSynth filter allows the user to specify a number of frames to buffer ahead and a number of frames to keep in a back-history. "
Maybe my setup of mpc-hc + lav filters actually supports this request for a particular frame and so I don't need the buffer ahead at all to keep smoothness. Even with buffers completely unticked I get perfectly smooth playback so I assume this setup doesn't require the avisynth buffer workaround at all. If thats the case the audio desync is still an issue. Is there any chance you can try to reproduce the lack of need for buffers with mpc-hc + lav filters and see can you reproduce the audio desync in that case?
FYI I have "Add ffdshow video source" disabled also during these tests. I use the code below to get the frames.
SetMTMode(3,16)
LoadPlugin("C:\Program Files (x86)\MPC-BE\SVP\svpflow1.dll")
LoadPlugin("C:\Program Files (x86)\MPC-BE\SVP\svpflow2.dll")
Input=ffdshow_source()
SetMTMode(2)