Page 1 of 1

Get information about Network Disconnection/Reconnection

Posted: 03 Jun 2010 13:32
by babitha
HI all,
How can i get information about network loss in a stream?I need to log the network connection and disconnection status.I'm using command line option of vlc
cvlc rtsp://IP/mpeg4/media.amp --loop.
This will work continuously.When the network is lost it will stop and try to reconnect when the stream comes back.I need to get the information about network disconnection and log it to a file.Similarly I need to get the reconnection report too.Since I'm not using activex i cannot check the vlc.input.state.Can somebody suggest a suitable solution.

Thanks in Advance,
Babitha

Re: Get information about Network Disconnection/Reconnection

Posted: 03 Jun 2010 20:41
by VLC_help
Since file logging doesn't work in Windows builds, only solution I can offer is to capture text via telnet interface to file.

Re: Get information about Network Disconnection/Reconnection

Posted: 04 Jun 2010 07:21
by babitha
HI,
I can log the messages from vlc using the command --logfile /opt/log.txt --file-logging.But this will log all the messages from vlc.I need to log only the network disconnection and reconnection.ie, I need an option to check the input.state of vlc and if it is stopped, then log that message.Similarly when it reconnects, log that message.Is there any method to accomplish this??

Thanks in advance,
Babitha