Skip to main content

Measures of Encoding and Decoding of Videos

[license GPLv3] [linting: ruff] [versions] [downloads] [documentation]

Useful links: Binary Installers | Source Repository | Documentation on RTD | Documentation on INRIA |

Description

Context

This module is developed by the Rennes IRISA/INRIA COMPACT and MAGELAN team, as part of the VideoImpact project.

Project

This Python module performs energy consumption and video metrics measurements for both video encoding and decoding workflows. It includes comprehensive ready-to-use datasets, available as exhaustive SQL databases and lightweight JSON representations, as well as pretrained predictive models for energy and quality estimation. The framework provides advanced visualization tools for generating complex matplotlib figures, executable from a single command-line interface.

It manages the following parameters:

  1. It supports the libx264, libopenh264, libx265, libvpx-vp9, libaom-av1, libsvtav1, librav1e and libvvenc cpu encoders.

  2. It supports the h264_nvenc, hevc_nvenc, av1_nvenc and *_vaapi gpu encoders.

  3. Distortions are measured using the lpips, psnr, ssim, vif and vmaf metrics.

  4. Complexity metrics are measured using the rms_sobel, rms_time_diff, spatial_dct and temporal_dct metrics.

  5. Encoding efforts are fast, medium and slow.

  6. It handles color-related parameters, including color range, transfer characteristics, and color primaries (range, transfer and primaries).

  7. Iterate over different effort, encoder, mode, quality, threads, fps, resolution and pix_fmt.

  8. Energy measurements are captured with RAPL for cpu and nvidia-ml-py for gpu, and an external ADEC wattmeter on Grid'5000 and dell laptop.

  9. Monitor CPU, GPU, and RAM utilization, as well as system temperature.

  10. Get a full environment context, including hardware and software version.

  11. It supports the mode (constant quality) crf, (constant bitrate) cbr and (constant quantization) qp.

  12. Ability to modify ffmpeg commands on the fly to perform specific tests, giving your own defined callback function.

  13. It takes care to transfer files to RAM if possible to avoid biases related to storage space access.

  14. Provides a guide to compile ffmpeg with all optimizations in order to compare encoders/decoders at their limits.

Pipeline

This is the pipeline used for measurements:

Pipeline diagram

Example of result

Download and merge two datasets with this bash command:

mendevi merge svtav1_vs_rav1e_vs_aom.db x264_vs_openh264.db -o /tmp/av1_h264.db

Example of energy and rate distortion video encoding, on a single video for several profiles:

mendevi plot /tmp/av1_h264.db -x rate -x energy -y vmaf -c encoder -m effort -wy profile -f "ref_stem=='park_joy'"
Example plot

Alternatives

  1. The GREEM video encoding measurement tool.

  2. The MVCD database also includes video encoding and decoding energy measurements.

  3. The COCONUT database also includes video decoding measurements.

  4. The SEED and VEED dataset offers a comprehensive LCA and GPU measurements.

Citation

If this work is helpful for your research, please consider citing it.

@software{mendevi,
    author = {Robin Richard and Thomas Maugey and Anne-Cecile Orgerie},
    title = {{Mendevi}: Measures of Encoding and Decoding of Videos},
    date = {2026-10-01},
    url = {https://gitlab.inria.fr/rrichard/mendevi},
    version = {1.4.0},
    license = {GPLv3},
    note = {Python software and dataset for measuring video encoding and decoding},
    keywords = {video encoding, video decoding, energy, complexity, quality, dataset},
    organization = {Inria},
    location = {Rennes, France},
}

Metadata

Release files for mendevi 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mendevi 1.4.0
File Size Uploaded Provenance Actions
mendevi-1.4.0.tar.gz 7.1 MB Without provenance Details for mendevi-1.4.0.tar.gz

Release files / mendevi-1.4.0.tar.gz

Download URL mendevi-1.4.0.tar.gz
Size 7.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ab37b2a11f5b1c7982847d09c2d7f61445c0dbd128ce79402082ae287c72dfa1
BLAKE2b-256 checksum
How to use checksums
eb76632851270c343fc47c4291da2a29540026cae694c00ad85ef2758691cabd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0rc2

Security for mendevi 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page