Log in

View Full Version : Avisynth + Webcam


jollye
9th December 2009, 17:28
Hi all,

I know this question has already been asked but I didn't find a definitive answer.
Is it possible to use a webcam as the input of an Avisynth scripts?
I use DirectShowSource with a graphedit graph and I ended up with the following error message:
"unable to determine the duration of the video".

Has anyone got an idea about this topic?

Thanks for your answers
jollye

hanfrunz
9th December 2009, 17:54
You could try to build ffdshow (activate YUV or raw decoder, i don't remeber the exact term) in the filterchain and activate avisynth processing there.

Leak
9th December 2009, 18:13
AviSynth is based on ye olde Video for Windows interfaces, so it absolutely must know the number of frames you're going to feed it at the very beginning, there's no way around that.

You can, however, specify a framecount to DirectShowSource, but even then you'll of course need to know the duration you want to record beforehand - but of course depending on the app you use for capturing you might be able to just specify some ridiculously high framecount and stop it recording whenever you're done...

np: Broadcast - Sixty Forty (Warp20 (Unheard))