[FFmpeg-devel] [PATCH] avformat/rtmpproto: forward rw_timeout to tcp proto

Timo Rothenpieler timo at rothenpieler.org
Fri Jul 21 00:29:31 EEST 2023


On 20.07.2023 23:09, Martin Storsjö wrote:
> Hmm, geez we have many similar-looking and randomly named timeout 
> options here...
> 
> The av_opt_copy() call in ffurl_open_whitelist() should only iterate 
> over the options within the URLContext itself, not recurse into the 
> protocol private options (as those probably don't match across protocols 
> anyway). So I wouldn't think that the tcp "timeout" option ends up 
> implicitly set from the rtmpproto "timeout" (listen_timeout) option.

My goal here is to specifically be able to set the i/o timeout on the 
tcp side, since I just had an ffmpeg rtmp process wait for more data 
indefinitely after a network hickup, even though the connection was long 
dead.

I just discovered that the URLContext has global options, and rw_timeout 
is one of them.
So setting -rw_timeout should have already been possible, I'll try if 
that ends up in the right place.

> I didn't try running and observing it right now though.
> 
> // Martin
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list