[FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg: add an option for writing pre-muxing stats

Anton Khirnov anton at khirnov.net
Wed Feb 8 18:10:59 EET 2023


Quoting Devin Heitmueller (2023-02-08 16:59:43)
> On Wed, Feb 8, 2023 at 8:54 AM Anton Khirnov <anton at khirnov.net> wrote:
> > Muxers are fundamentally consume-only, I don't see what stats could
> > possibly be printed after muxing, even conceptually.
> 
> I can offer some examples, in particular because I generate lots of
> such statistics after muxing in my private tree.
> 
> - Decklink output statistics - late arrival and drop counts for audio
> and video packets, pipeline latency (time between submission to the
> hardware and the callback indicating frame was played out), FIFO
> levels within the module, video frames actually played out in last
> second, audio samples played out in last second.
> 
> - SRT output - various SRT related statistics (lost packets,
> retransmits, connection RTT, etc)
> 
> - HLS output - counters for various HTTP recoverable events (HTTP
> redirects, resends, etc), packets written

Hmm, I have not considered it but you're right that this information
could be exported via AVOptions and printed by ffmpeg CLI.

I'll send a patch with the renames then.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list