Page 1 of 1

Schedule a recording using VLC

Posted: 31 Jan 2007 20:19
by tinkerj
I am newbie to VLC, but I haven't been able to find much on this forum or in documentation about scheduling video recording to the harddrive using VLC. I have a requirement from a client to be able to schedule recording of a video input to a file on the harddrive for a certain interval, say 4 hours. Is there a way to do this using a vlm config file? From looking at a couple files it looks like you can tell VLC when to start recording, but I don't really see a way to tell it to stop at a given time. Is it possible for someone to give an example of what I need the config file to look like? Basically, it's just telling one input to record to a file for x amount of time, starting at a given date/time. I guess I could use windows scheduler to handle the scheduling and just call a batch file to start VLC and record, but if this capability exists within VLC, I'd rather use it. Thanks in advance for any input.

Posted: 04 Feb 2007 19:39
by usirev
U must use VLM. This way it works on linux and it should work on win as well. U must use :

Code: Select all

vlc -I telnet telnet localost 4212
Password is admin. Then u input something like this :

Code: Select all

new record broadcast enabled input rtp://@123.123.123.123:1234 output #std{access=file,mux=ts,dst=/home/user/save.mpg} new start schedule enabled date 2000/1/1-11:00:00 append control record play new end schedule enabled date 2000/1/1-12:00:00 append control record stop
.

Posted: 15 Mar 2007 15:18
by nbarzgar
I'm a newbie to using the config and VLM-files of VLC. But I have some experience with things in general and have set up some recordings in VLC successfully. I LOVE its mp4 output (with ATI All in Wonder X800 GT-card)!

So my question: Could someone explain just a bit more explicitely? Like:
1. Open VLM and save to ?-file... (esp. extension, didn't get that :oops:)
2. Set schedule-?file
3. Start ?command-prompt
4. save to xyz...
(So as to make the recording start at x-time...)

I hope you get the picture.
Thanks frightfully!
EDIT: I forgot, I use Windows XP SP2. EDIT

Re: Schedule a recording using VLC

Posted: 12 Oct 2009 23:57
by Newrone
nbarzgar - Good question. I was wondering the same.

Strange that no-one knows. After 2 years, I would have thought...

Re: Schedule a recording using VLC

Posted: 21 Oct 2009 19:17
by ypavankumar
I figured out easiest way to do this via windows scheduler,
create 2 bat files ,

1. vlc_start.bat >> contains the command line to start the player & play a url stream & also records it to a file. You can even name the file saved dynamically based on date if u plan to record it daily
use the snippet below

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" "mms://url" --sout=#transcode{vcodec=mp1v,vb=256,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mov,dst="C:\Documents and Settings\username\Desktop\mystreamfile%date:~7,2%_%date:~4,2%_%date:~10,4%.avi"}}
2. vlc_end.bat >> contains snippet below,

Code: Select all

taskkill /IM vlc.exe
Now schedule these 2 bat files using windows scheduler by creating 2 different start & end schedules for these files.

Re: Schedule a recording using VLC

Posted: 30 Oct 2009 08:58
by lionsharemedia
nbarzgar - Good question. I was wondering the same.

Strange that no-one knows. After 2 years, I would have thought...
Well remember guys doing stuff like this use Linux rather :lol:

Re: Schedule a recording using VLC

Posted: 09 Mar 2010 15:50
by mrtipale
I got the similar thing with VLC encoder, recorder with Linux CentOS 5 !

Its easy maintain jobs using Linux crontab than windos scheduler. Scheduler is bit unreliable due to win's way to manage files.

win:
taskkill VLC
Lin:
skill vlc
kill -9 vlc .. all worked fine

But time between killing is restarting recording is more & so u can also thing to using ffmpeg for time based recording switch ..

ffmpeg is also good tool for file conversions. I feel vlc more likeable for end user usage.

Cheers,
Mahendra

Re: Schedule a recording using VLC

Posted: 02 Nov 2011 02:01
by arkennedy75
I'm trying to record a stream using VLC, but having trouble getting the above bat file to work. When execute the bat file it opens VLC and successfully plays the stream, but doesn't record the steam. Here is my bat file:

"h:\Program Files\VideoLAN\VLC\vlc.exe" "http://www.surfmusic.de/media/wtvn-am.m3u"
--sout=#transcode{vcodec=mp1v,vb=256,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mov,dst="I:\Radio\mystreamfile%date:~7,2%_%date:~4,2%_%date:~10,4%.avi"}}

Can anyone help? Thank you.

Re: Schedule a recording using VLC

Posted: 17 Feb 2012 15:05
by rada
try a asf instead of avi works best for recording streams

Re: Schedule a recording using VLC

Posted: 19 Feb 2012 09:01
by jwilsoncheryl
I'm trying to record a stream using VLC, but having trouble getting the above bat file to work. When execute the bat file it opens VLC and successfully plays the stream, but doesn't record the steam. Here is my bat file:

"h:\Program Files\VideoLAN\VLC\vlc.exe" "http://www.surfmusic.de/media/wtvn-am.m3u"
--sout=#transcode{vcodec=mp1v,vb=256,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mov,dst="I:\Radio\mystreamfile%date:~7,2%_%date:~4,2%_%date:~10,4%.avi"}}

Can anyone help? Thank you.
hey i have the same problem .

can anyone help us? :(

Re: Schedule a recording using VLC

Posted: 17 Apr 2012 19:22
by bflmpsvz
I'm trying to record a stream using VLC, but having trouble getting the above bat file to work. When execute the bat file it opens VLC and successfully plays the stream, but doesn't record the steam. Here is my bat file:

"h:\Program Files\VideoLAN\VLC\vlc.exe" "http://www.surfmusic.de/media/wtvn-am.m3u"
--sout=#transcode{vcodec=mp1v,vb=256,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mov,dst="I:\Radio\mystreamfile%date:~7,2%_%date:~4,2%_%date:~10,4%.avi"}}

Can anyone help? Thank you.
Problem is that the stream from surfmusic.de you are trying to record is restarted somehow from other address... I do not understand details, but this works to me:

"C:\Program Files\VLC\vlc.exe" "http://wtvn-am.akacast.akamaistream.net ... et/wtvn-am" :sout=#duplicate{dst=std{access=file,dst="D:\video\somename_%date:~7,2%_%date:~4,2%_%date:~10,4%.mp4"}}

The address (which I suppose could differ in other parts of the Internet) I found in VLC-Tools-Media Information-Codec Details-Location. (VLC media player 0.9.2)
I did not find any codec working with "transcode" command. Either no data are recorded (empty file) or it contains only noise.