Skip to content

Optional display of CPU and GPU used, speed of encoding and decoding - #509

Merged
JeromeMartinez merged 2 commits into
MediaArea:mainfrom
JeromeMartinez:ShowStats
Oct 28, 2026
Merged

JeromeMartinez merged 2 commits into
MediaArea:mainfrom
JeromeMartinez:ShowStats

Conversation

@JeromeMartinez

Copy link
Copy Markdown
Member

New --show-stats option, showing which hardware is used and how fast encoding and decoding are.

GPU selection: when the FFmpeg decoder with Vulkan is selected (--decoder auto or vulkan), an info line gives the device name, and says when it is a CPU implementation (e.g. lavapipe).
Encoding speed: speed of the FFmpeg encoding compared to the duration of the content, with the encoder name and the GPU (ffv1_vulkan with vk:0) or CPU name.
Decoding speed: speed of the decoding (decode, --check, or the check after encoding) compared to the duration of the content, with the decoder name, or the share of each decoder when several decoders run in parallel.

Example:

Info: Encoding: 2.31x realtime, FFmpeg ffv1_vulkan.
      GPU: NVIDIA GeForce RTX 3050.

Info: GPU detected and selected for decoding: NVIDIA GeForce RTX 3050.

Info: Reversibility was checked, no issue detected.
Info: Decoding: 2.95x realtime (GPU 57% / CPU 43%).
      GPU: NVIDIA GeForce RTX 3050.
      CPU: Intel(R) Core(TM) i7-7800X CPU @ 3.50GHz (12 threads).

Frame rate from dwRate/dwScale of the video stream header.
Info when a Vulkan device is selected for decoding, with its name.
Speed of the encoding (FFmpeg) and of the decoding, compared to the
duration of the content (frames per second if unknown), with the CPU
and the GPU names and the share of each decoder if several decoders are
used in parallel (e.g. GPU 57% / CPU 43%), also during the decoding in
the progress indicator, which is erased at the end.
@JeromeMartinez
JeromeMartinez merged commit a80835b into MediaArea:main Oct 28, 2026
3 checks passed
@JeromeMartinez
JeromeMartinez deleted the ShowStats branch October 28, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants