Rotate VLC streaming files
Kristian Hermansen
kristian.hermansen at gmail.com
Sat Apr 21 17:49:55 EDT 2007
On 4/21/07, Matt Kowalski <matt.kowalski at gmail.com> wrote:
> I have a VLC server streaming audio from a scanner over a network which I
> can easily listen to with the VLC player. I've successfully recorded the
> audio to an mp3 file on Windows and on Linux. The problem is I want to
> record 24/7 and have the file rotate every day but can't seem to write a
> shell script that will properly rotate the file. Does anyone have any
> experience with this?
I would think a cron job set to midnight would work. Make the invoked
script look for any previous scripts running, and send a signal to
exit cleanly. Make it spawn vlc and write to a file using 'date +%F'.
You could rotate the old captures as well. There are many ways to do
this...
--
Kristian Hermansen
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list