Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th April 2012, 12:45   #1  |  Link
vesolovski
Registered User
 
Join Date: Mar 2012
Posts: 6
DirectShowSource - short freezes

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
vesolovski is offline   Reply With Quote
Old 6th April 2012, 10:22   #2  |  Link
Bloax
The speed of stupid
 
Bloax's Avatar
 
Join Date: Sep 2011
Posts: 317
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.
Bloax is offline   Reply With Quote
Old 6th April 2012, 12:36   #3  |  Link
vesolovski
Registered User
 
Join Date: Mar 2012
Posts: 6
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.

Last edited by vesolovski; 6th April 2012 at 12:42.
vesolovski is offline   Reply With Quote
Old 6th April 2012, 13:07   #4  |  Link
Bloax
The speed of stupid
 
Bloax's Avatar
 
Join Date: Sep 2011
Posts: 317
Tried FFMpegSource?
Bloax is offline   Reply With Quote
Old 6th April 2012, 14:32   #5  |  Link
vesolovski
Registered User
 
Join Date: Mar 2012
Posts: 6
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).
vesolovski is offline   Reply With Quote
Old 8th April 2012, 01:54   #6  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Apparently I managed to make DSS behave "as it should"

Code:
fps=50, convertfps=true, framecount=265
and then:

Code:
AssumeFPS(29.97)
H.T.H.
Midzuki is offline   Reply With Quote
Old 8th April 2012, 02:47   #7  |  Link
vesolovski
Registered User
 
Join Date: Mar 2012
Posts: 6
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 is offline   Reply With Quote
Old 8th April 2012, 02:59   #8  |  Link
vesolovski
Registered User
 
Join Date: Mar 2012
Posts: 6
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

Last edited by vesolovski; 10th April 2012 at 10:12. Reason: No relation with subject
vesolovski is offline   Reply With Quote
Old 8th April 2012, 03:11   #9  |  Link
vesolovski
Registered User
 
Join Date: Mar 2012
Posts: 6
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
vesolovski is offline   Reply With Quote
Old 8th April 2012, 04:37   #10  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
Quote:
Originally Posted by vesolovski View Post
As I said before - you are a genius
Far from that 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 )

Quote:
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


Last edited by Midzuki; 8th April 2012 at 04:38. Reason: spelling
Midzuki is offline   Reply With Quote
Reply

Tags
directshowsource, freezes, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.