[FFmpeg-user] STOP RTSP STREAM IF CONNECTION FAILS

Alejandro Escudero escuderoserrano at hotmail.com
Tue Sep 10 20:13:26 EEST 2019


Hi!


I am trying to Stop an RTSP STREAMING if connection to IP Camera fails (example if camera goes offline)


I tried these command with -timeout 3 (to exit after 3 seconds if connection fails, but it never exists), how this should be done correctly?



ffmpeg -rtsp_transport tcp -i "rtsp://admin:pass@myipcameras:554/cam/realmonitor?channel=1&subtype=0"-timeout 3 -c copy TEST.mp4



thanks!


Alejandro

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>  Libre de virus. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>


More information about the ffmpeg-user mailing list