This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 63d53fac9ca8e589009a762461826070046a7d95 Author: Michael Niedermayer <[email protected]> AuthorDate: Sun Aug 30 19:56:07 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Wed Sep 16 18:58:15 2026 +0000 avformat/avio: use a 256k I/O buffer when reading from the network Reads through a protocol that uses the network, directly or nested in a wrapper, get a 256k AVIO buffer instead of the 32k default; local files, writes and everything else keep 32k, and protocols that report a max_packet_size still get exactly one packet. Writes are left alone because a bigger write buffer only delays when data reaches the socket. Measured against the parent commit, 153M rust.webm, -c copy, n=12-100, netem 300 Mbit/s 20 ms RTT and 100 Mbit/s 40 ms RTT: local files, 241 small clips and the webm: no change (p >= 0.26) http with Range -2.8% (p=1e-9) / -1.7% (p=1e-8) http without Range -0.9% (p=4e-6) / - tcp -1.4% (p=2e-5) / -0.3% (p=0.37) ftp -5.7% (p=9e-5) / -2.7% (p=0.006) cache:http -2.7% (p=8e-8) / -1.8% (p=2e-8) subfile over http -3.3% (p=4e-14) / - concat of two http -2.6% (p=1e-11) / - libcurl (own fifo) 0.0% (p=0.96) / 0.0% (p=0.71) --- libavformat/avio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/avio.c b/libavformat/avio.c index 4c06199346..a2c94e4384 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -38,6 +38,7 @@ #include "url.h" #define IO_BUFFER_SIZE 32768 +#define NETWORK_IO_BUFFER_SIZE 262144 /** @name Logging context. */ /*@{*/ @@ -480,6 +481,8 @@ int ffio_fdopen(AVIOContext **sp, URLContext *h) max_packet_size = h->max_packet_size; if (max_packet_size) { buffer_size = max_packet_size; /* no need to bufferize more than one packet */ + } else if (h->uses_network && !(h->flags & AVIO_FLAG_WRITE)) { + buffer_size = NETWORK_IO_BUFFER_SIZE; } else { buffer_size = IO_BUFFER_SIZE; } -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
