preview video while ffmpeg is recording

David Christopher Chipman dchipman-rYHPKw+MWrk at public.gmane.org
Mon Nov 30 04:43:03 UTC 2009


Daniel Armstrong wrote:
> I am trying my hand at learning shell scripting beyond 1-2 liners...
> and I am trying to create a script that uses ffmpeg to record video
> from a webcam and vlc to display a preview of the video while
> recording.
>
> After trial-and-(much)error I find...
>
> This command captures the video successfully:
>
> ffmpeg -f oss -i /dev/dsp -f video4linux2 -qscale 1 -r 30 -s 320x240
> -i /dev/video0 ${OUTPUT}
>
> This command streams video from /dev/video0:
>
> vlc v4l2:///dev/video0
>
> This command streams from a (already existing) video file:
>
> vlc ${INPUT} --sout "#display{noaudio,delay=4000}"
>
> Now I am trying to combine the 2 activites together - record a video
> in ffmpeg and simultaneously see a preview in cvlc - and am kinda hazy
> about how to make this happen. I have tried:
>
>
>   
Hi Daniel,

Did you try running ffmpeg in the background, then starting the video 
player? If not, stick an ampersand (&")  on the end of the ffmpeg 
command line.

-David
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list