Page 1 of 1

How to stop recording a live stream

Posted: 31 May 2008 22:01
by Dave S
This pertains to Ubuntu 8.04 with a freshly updated installation of vlc.

I have a cron job which starts recording a live stream at a specific time. Is anyone aware of a way to tell vlc from the command line to stop recording after a specific amount of time? For what it is worth, I use a second cron job to kill the first process, but I would prefer a command-line solution within vlc. Thanks in advance for any suggestions.

Dave

Re: How to stop recording a live stream

Posted: 01 Jun 2008 21:05
by Dave S
I found that the following works after some time on google and playing around with the code:

/usr/bin/vlc -I dummy --stop-time=3600 $INSTREAM ':sout=#transcode{acodec=mpga,ab=96,channels=2}:duplicate{dst=std{access=file,mux=raw,dst="'$OUTFILE'"}}' vlc:quit

This quits nicely after being called by cron.

Dave