Page 1 of 1

Play a stream for # seconds and save

Posted: 11 Apr 2007 19:33
by linuxrocks
How can I play a stream for certain number of seconds and save it. I know that I can save a stream with the following command.

Code: Select all

$ vlc http://host/stream --sout file/ts:out.mpg -I telnet
How do I do this for first n seconds of the stream ?