Schedule a recording using VLC

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
tinkerj
New Cone
New Cone
Posts: 1
Joined: 31 Jan 2007 20:11
Location: Atlanta, GA

Schedule a recording using VLC

Postby tinkerj » 31 Jan 2007 20:19

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.

usirev
New Cone
New Cone
Posts: 3
Joined: 03 Feb 2007 22:15

Postby usirev » 04 Feb 2007 19:39

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
.

nbarzgar
New Cone
New Cone
Posts: 3
Joined: 15 Mar 2007 10:29

Postby nbarzgar » 15 Mar 2007 15:18

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

Newrone
Blank Cone
Blank Cone
Posts: 19
Joined: 04 Oct 2009 01:09
VLC version: 2.2.0
Operating System: Windows 7

Re: Schedule a recording using VLC

Postby Newrone » 12 Oct 2009 23:57

nbarzgar - Good question. I was wondering the same.

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

ypavankumar
Blank Cone
Blank Cone
Posts: 12
Joined: 21 Oct 2009 19:11

Re: Schedule a recording using VLC

Postby ypavankumar » 21 Oct 2009 19:17

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.

lionsharemedia
New Cone
New Cone
Posts: 7
Joined: 29 Oct 2009 13:55

Re: Schedule a recording using VLC

Postby lionsharemedia » 30 Oct 2009 08:58

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:

mrtipale
Blank Cone
Blank Cone
Posts: 14
Joined: 16 Dec 2009 13:19
VLC version: many
Operating System: linux, windows
Location: Mumbai, Paris
Contact:

Re: Schedule a recording using VLC

Postby mrtipale » 09 Mar 2010 15:50

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
Cheers,
Mahendra
mrtipale

arkennedy75
New Cone
New Cone
Posts: 3
Joined: 02 Nov 2011 01:50

Re: Schedule a recording using VLC

Postby arkennedy75 » 02 Nov 2011 02:01

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.

rada
New Cone
New Cone
Posts: 2
Joined: 16 Feb 2012 11:27

Re: Schedule a recording using VLC

Postby rada » 17 Feb 2012 15:05

try a asf instead of avi works best for recording streams

jwilsoncheryl
New Cone
New Cone
Posts: 6
Joined: 17 Jan 2012 02:08
VLC version: 1.1.11
Operating System: Windows
Contact:

Re: Schedule a recording using VLC

Postby jwilsoncheryl » 19 Feb 2012 09:01

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? :(

bflmpsvz
New Cone
New Cone
Posts: 4
Joined: 17 Apr 2012 18:48

Re: Schedule a recording using VLC

Postby bflmpsvz » 17 Apr 2012 19:22

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.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 14 guests