Page 1 of 1

Recording a stream for a given time

Posted: 24 Jan 2005 14:02
by MadBison
Hello

I am using VLC 0.8.1 for Windows.

I use the command line

"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv udp://@239.193.0.9:8208 --sout c:\Video.mpg

to record shows. I would like to record for a given time, and possibly record starting from a given time.

Is there any way to do this in VLC? I tried


"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv udp://@239.193.0.9:8208 --sout c:\Video.mpg --ttl 10

"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv udp://@239.193.0.9:8208 --sout c:\Video.mpg --start-time 10

"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv udp://@239.193.0.9:8208 --sout c:\Video.mpg --stop-time 10:

Thanks
David

Posted: 24 Jan 2005 16:08
by markfm
If you want to work against external time, the simplest thing is probably to use batch files and Windows' AT command, which accesses the Windows Scheduler service.

Note that --stop-time is in seconds.

Try a little batch file:
myfile.bat
"c:\program files\videolan\vlc\vlc.exe" udp........ --stop-time 600 vlc:quit

(make sure you have a carriage return after the "600", a blank line)

Then, at a command prompt (Dos window):
at 10:00 myfile.bat

See if it does what you want/expect -- launch vlc at 10, listening to the UDP for 10 minutes, then closing itself.

Posted: 07 Feb 2006 04:47
by cat6man
i'm confused by this as well.....

i've used the --stop-time option and it works perfectly at work on my
win2k machine but doesn't work at all on my home xp machine...both running the same version of vlc.

any ideas?
anyone else see this?

Posted: 22 Apr 2006 08:03
by clbgld
I have been trying to time DV capture to the length of the recording - stop time doesn't work on my XP machine either...

CG
i'm confused by this as well.....

i've used the --stop-time option and it works perfectly at work on my
win2k machine but doesn't work at all on my home xp machine...both running the same version of vlc.

any ideas?
anyone else see this?