Log in

View Full Version : DirectShowSource - short freezes


vesolovski
5th April 2012, 12:45
Dear AviSynth users,

I am having following problem with DirectShowSource:

Source clip is smooth, but after rendering it becomes strange - video freezes at some point (or points) (not working), but frame counter still goes on (working fine).

I don't know if this is the problem of AviSynth or maybe ffdshow. If so I still do not know how to fix this. Please provide me with some hints if you can.

I am attaching 3 files to help you visualize problem:
- script.avs
- source.avi (file being read by DirectShowSource)
- render.avi (problematic file received after rendering script.avs)

http://bit.ly/Hk4Sq7

Bloax
6th April 2012, 10:22
My best guess would be that DirectShowSource is a really bad pick for a source filter that's stupid and is totally OK with skipping frames.

vesolovski
6th April 2012, 12:36
Thank Bloax for your answer. However if I understand DirectShowSource well, I think it grabs frames from ffdshow "on the fly". If the problem was only with skipping frames, this should not be noticeable. My video freezes for nontrivial period of time (say 0,7 s) - it means DirectShowSource would have to have skipped approximatelly 0,7*29.97 = 21 following frames. I cannot imagine DirectShowSource is that bad. I think it rather skips single (separate) frames.

Summarizing, I would say the problem would or could be with something else.

Bloax
6th April 2012, 13:07
Tried FFMpegSource? (http://forum.doom9.org/showthread.php?t=127037)

vesolovski
6th April 2012, 14:32
Yeah, I have.

But it (AviSource as well) has a limit of processed clips in one script file (approximatelly 15 for HD 1080p clips). DirectShowSource does not have such limit (related to memory limit of computer), but it is buggy in my case (problem described above).

Midzuki
8th April 2012, 01:54
Apparently I managed to make DSS behave "as it should" :)

fps=50, convertfps=true, framecount=265

and then:

AssumeFPS(29.97)

H.T.H.

vesolovski
8th April 2012, 02:47
Hello Midzuki,
I cannot check it now, but I will be able to do it in few days (trip). I hope it will work also for me. If it will, you are a genius :))

Regards,
K.W.

vesolovski
8th April 2012, 02:59
I checked your solution on different computer. Works perfectly. Ever if I bypass framecount=265 (is it useful?)

As I said before - you are a genius :)

vesolovski
8th April 2012, 03:11
One more thing,

I checked this with HD1080 avi source file and rendered avs becomes so very slow. Sound goes at normal speed, but video much much slower :(

Midzuki
8th April 2012, 04:37
As I said before - you are a genius :)

Far from that :o In fact, I have understood less than 5% of the whole Avisynth thing so far ( even though I'm a semi-regular AVS user since 2007 :o )

One more thing,

I checked this with HD1080 avi source file and rendered avs becomes so very slow. Sound goes at normal speed, but video much much slower

Need More Info

:script: :script: :script: