...not sure why nobody suggested "-stimeout <usec>" yet - but like, that's what works (for RTSP inputs, even TCP transported ones). (( https://trac.ffmpeg.org/ticket/2294))
...if reading from HTTP, you're stuck doing some nonsense like: wget -q --tries=1 -T 6 -O - http://x.x.x.x:yyyy/etc/stream | ffmpeg -i - .. etc (so that ffmpeg dies with wget dying after its inactivity countdown hits) Or, a fully thermonuclear option (with a bas subshell & process group kill): #!/usr/bin/env bash set -euo pipefail SRC_URI="some://host:port/thing.ts" SLEEP_FOR=2 while :; do ( set -o pipefail trap 'kill -- -$$' EXIT wget -q -O - "$SRC_URI" \ | mbuffer -q -W 16 -m 64k -T 30 \ | ffmpeg -hide_banner -loglevel error -fflags +genpts -i - -c copy -f mpegts - ) & wait $! echo "Pipeline exited. Restarting..." sleep "$SLEEP_FOR" done Yes - it's kinda silly/dumb/degenerate that one even has to reply to a question like this about an otherwise ridiculously functional program like ffmpeg in the year of our *nix 2025, but I guess we can handle these inadequacies well enough externally. -Tk On Wed, Aug 13, 2025 at 9:11 AM Andrew Wood via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote: > > On 13/08/2025 14:05, Rob Hallam wrote: > > Does the timeout option make any difference? [1] > > > > Something may have changed in default behaviour; eg [2] reports a > > previously hardcoded 10 seconds. > > > > Cheers, > > Rob > > > Ive tried -timeout and -rw_timeout neither of which are making any > difference. > > Thanks > > Andrew > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list -- ffmpeg-user@ffmpeg.org To unsubscribe send an email to ffmpeg-user-le...@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".