Stream record time limit

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
ne014x
Blank Cone
Blank Cone
Posts: 14
Joined: 22 Aug 2008 03:02

Stream record time limit

Postby ne014x » 22 Aug 2008 03:18

I am new, but I have looked through and tried all the suggestions in the post I could find on this before posting it.

I am setting up a bat file that will run on start up to record a UDP stream but I only want to record 1 minute to 1 minute and 30 seconds of video. (this is for legal reasons at a television station)

The command line as I have it now w/o the time limit is:

Code: Select all

Start C:\Program Files\VideoLAN\VLC\vlc.exe udp://@:1254 :sout=#transcode{vcodec=WMV1,vb=768,scale=1,acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="c:\legal_id.mpg"}}
I thought it was going to be as simple as adding the TTL (time to live but It didn't seem to work

Other things I have tried were different combination of

--stop-time="90" infront of ":stout" with "vnc:quit" at the end

[my guess is since on the stream the time always stays a 0:00 there is no time code for it to count off of?]

I also tried a bat file that went

Code: Select all

at 12:00:00 Start C:\Program Files\VideoLAN\VLC\vlc.exe udp://@:1254 :sout=#transcode{vcodec=WMV1,vb=768,scale=1,acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="c:\legal_id.mpg"}} at 12:01:30 Start C:\Program Files\VideoLAN\VLC\vlc.exe vnc:quit
I am out of ideas here, at all times we run 4 vlcs getting streams from udp's 1254-57 (all of our digital ch's) so killing the process wasn't an option.

Any one think of anything else to try?

Many thanks!

--Scott--

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream record time limit

Postby VLC_help » 22 Aug 2008 19:31

If stop-time doesn't work, then you might want to use RC or telnet interface and script close command that it sends for VLC after 90 seconds.

ne014x
Blank Cone
Blank Cone
Posts: 14
Joined: 22 Aug 2008 03:02

Re: Stream record time limit

Postby ne014x » 28 Aug 2008 18:15

How could I do that Ive never done anything with VLC outside of a setting up bat file commmands

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream record time limit

Postby VLC_help » 28 Aug 2008 20:10

first you start VLC with telnet or RC interface (add -I telnet to command line)
and
viewtopic.php?f=11&t=28777
should tell you more about telnet.

I am sorry if I make this sound like a trivial task :oops:

ne014x
Blank Cone
Blank Cone
Posts: 14
Joined: 22 Aug 2008 03:02

Re: Stream record time limit

Postby ne014x » 28 Aug 2008 20:23

Thats NP, thanks for the link I will check that out

lefish
Blank Cone
Blank Cone
Posts: 32
Joined: 23 Jun 2008 04:58

Re: Stream record time limit

Postby lefish » 08 Sep 2008 05:37

I have looked up docs and found the solution:

Code: Select all

vlc.exe rtsp://192.168.10.133:554 :sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=D:/record_vlc/r2.mpg}} --run-time 5 vlc://quit
Cheers

ne014x
Blank Cone
Blank Cone
Posts: 14
Joined: 22 Aug 2008 03:02

Re: Stream record time limit

Postby ne014x » 08 Sep 2008 16:27

I auctually get a command line error when i use that code

adding

Code: Select all

--run-time 5 vlc://quit
to the end?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream record time limit

Postby VLC_help » 09 Sep 2008 13:53

It might only work with nightlies (I am not sure about this and too lazy to check :D ).
http://nightlies.videolan.org/

ne014x
Blank Cone
Blank Cone
Posts: 14
Joined: 22 Aug 2008 03:02

Re: Stream record time limit

Postby ne014x » 25 Sep 2008 20:33

Ive been trying to code it in telnet but Im so lost;

The stream is on 127.0.0.1:1254, I want to record for 90 seconds, I don't think I can do this in telnet since it is in the subnet right?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream record time limit

Postby VLC_help » 26 Sep 2008 19:02

You use telnet to kill VLC, not to kill your stream source.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 32 guests