Page 1 of 1

Record a file after network reconnection

Posted: 03 Jun 2010 12:03
by babitha
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.

Re: Record a file after network reconnection

Posted: 04 Jun 2010 09:17
by babitha
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..