Record a file after network reconnection

About encoding, codec settings, muxers and filter usage
babitha
Blank Cone
Blank Cone
Posts: 25
Joined: 15 Jan 2008 08:01

Record a file after network reconnection

Postby babitha » 03 Jun 2010 12:03

Hi friendz..........
I'm using vlc to record a stream from camera using the command line
vlc -vvv rtsp://192.168.1.1/mpeg4/media.amp --sout '#duplicate{dst=standard{access=file,mux=mp4,dst="/opt/123.avi"}}' .
The stream gets recorded correctly.But when the network is disconnected, the 123.avi gets stopped.After reconnection of network it overwrites the same file.I need to start recording to a new file.How can I provide option for this?I have tried options like --no-loop --no-repeat, but invain.I need an option to write to a new file after reconnection.Kindly help me.

Regards,
Babitha.

babitha
Blank Cone
Blank Cone
Posts: 25
Joined: 15 Jan 2008 08:01

Re: Record a file after network reconnection

Postby babitha » 04 Jun 2010 09:17

Hi all,
I've found the solution myself.U can add append option in file.
eg:-vlc -vvv rtsp://192.168.1.1/mpeg4/media.amp --sout '#duplicate{dst=standard{access=file,mux=mp4,dst="/opt/123.avi"}}' --sout-file-append.
When network is disconnected,it will stop recording and when reconnected it continues to write to the same file(ie.123.avi).

Thanks..


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 37 guests