[FFmpeg-devel] [PATCH v2] avformat/http: Add max_request_size option

Marth64 marth64 at proxyid.net
Wed Jan 8 09:35:53 EET 2025


As it’s effectively controlling the value of the Range header, this is also
something one can do with curl’s -r switch or -headers on the http protocol
handler now. So I think it’s reasonable to make it available as an option.
I would not necessarily brand it as a hack in the commit message since
there could be legitimate use cases as well when tuning for network
performance, etc.

Unfortunately if users want to use it to circumvent throttling or frustrate
upstream servers that is a risk already with the options currently
available (overriding custom headers including Range, aggressive retry
policies, etc.)

I think it’s ok. I would maybe call it -max_range_size or similar instead
since the size of the request isn’t changing but rather we are asking the
server to provide a differently sized chunk.

Thoughts?

Thank you.


More information about the ffmpeg-devel mailing list