This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 9a13d22118ba30b4543587a74cefa8276715e424
Author:     Niklas Haas <[email protected]>
AuthorDate: Mon Aug 31 18:19:37 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Mon Sep 21 14:23:20 2026 +0000

    fftools/ffmpeg_sched: drop packet thread queue size
    
    The previous series of commits makes this limit apply per-stream, instead
    of per-packet, so there's no real reason to have it set to such a high
    limit anymore.
    
    Buffering 8 packets is really the same as buffering 8 frames, if the
    decoders are faster than the encoder (usually the case) and immediately
    drain it into a shared filter graph while that filter graph is stuck
    waiting for a different input (from the same demuxer).
    
    I also doubt the methodology of e0da916b8 still holds up; a lot of moving
    parts have changed since then. I was not able to reproduce any speed
    difference at all acress any number of packets buffered; even reducing this
    to 1 gave me no measurable downside. The only scenario where I can measure
    a difference is if the fifo size is smaller than the number of streams,
    but that is now impossible.
    
    I'm tempted to just lower this all the way to 1, but I kept 2 for the time
    being as a hedge against any pathological edge cases.
    
    In the worst case, users can still use -thread_queue_size to increase
    this limit for testing / performance tuning.
    
    Sponsored-by: nxtedition AB
    Signed-off-by: Niklas Haas <[email protected]>
---
 fftools/ffmpeg_sched.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/ffmpeg_sched.h b/fftools/ffmpeg_sched.h
index 2cf3034437..952e56e7b5 100644
--- a/fftools/ffmpeg_sched.h
+++ b/fftools/ffmpeg_sched.h
@@ -254,7 +254,7 @@ int sch_add_mux(Scheduler *sch, SchThreadFunc func, int 
(*init)(void *),
  * Default size of a packet thread queue.  For muxing this can be overridden by
  * the thread_queue_size option as passed to a call to sch_add_mux().
  */
-#define DEFAULT_PACKET_THREAD_QUEUE_SIZE 8
+#define DEFAULT_PACKET_THREAD_QUEUE_SIZE 2
 
 /**
  * Default size of a frame thread queue.

-- 
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]

Reply via email to