VLC command to stop stream recording

First of all, thanks to everyone who even reads this. I can save the stream from my IP-CAM to a file using this command (although I don’t get any sound recorded to the file, if someone can help with this, it will be great too)

cvlc "http: //***.***.*.***: **** / videostream.asf? user = admin & pwd = ** & rate = 12 & resolution = 32" --run- time = 10 --sout = "# std {access = file, mux = asf, dst = path \ test.asf}" vlc: // quit --qt-start-minimized --no-qt- notification

This gives me a 7 ~ 8 second recording, but the length of the video I want to make will be determined by an external factor (camera motion detection alarm). If I delete "-run-time", it will start to write undefinatelly, so how can I tell VLC, what is the time to stop saving the stream? ps: I want to do this automatically, so I only use the command line. ps2: I am using Ubuntu OS.

Thanks everyone!

+4
source share
1 answer

I am by no means an expert on this topic, but I also collect a live stream to start and stop at a specific time. I don't know about the audio issue, but here is my code, maybe this will help you a bit.

at 2014-05-23 10:00
cvlc "http://*My url to video stream*" --sout file/mp4:*THEFILENAMEYOUCHOOSE*.mp4 --run-time=300 --stop-time=300 vlc://quit

, , , , , 300 , . script, , , .

, .

+2

All Articles