How to stop recording a live stream

*nix specific usage questions
Dave S
New Cone
New Cone
Posts: 3
Joined: 31 May 2008 21:50

How to stop recording a live stream

Postby Dave S » 31 May 2008 22:01

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

Dave S
New Cone
New Cone
Posts: 3
Joined: 31 May 2008 21:50

Re: How to stop recording a live stream

Postby Dave S » 01 Jun 2008 21:05

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests