STOP RTSP STREAM IF CONNECTION FAILS

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

STOP RTSP STREAM IF CONNECTION FAILS

Alejandro Escudero
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>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".