Code: Select all
vlc -I telnet
telnet localost 4212
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
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 below2. vlc_end.bat >> contains 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"}}
Now schedule these 2 bat files using windows scheduler by creating 2 different start & end schedules for these files.Code: Select all
taskkill /IM vlc.exe
Well remember guys doing stuff like this use Linux rathernbarzgar - Good question. I was wondering the same.
Strange that no-one knows. After 2 years, I would have thought...
hey i have the same problem .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: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.
Users browsing this forum: No registered users and 14 guests