.. _x264_vs_openh264_dataset: libx264 vs libopenh264 Dataset ============================== Compare the **libx264** and the **libopenh264** encoders. Download -------- .. code:: shell mendevi download x264_vs_openh264.db.xz.torrent * `x264_vs_openh264.json.xz `_ (18 Mo). * `x264_vs_openh264.db.xz.torrent `_ (6.8 Go). Plots ----- Distortion as a function of bitrate ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code:: shell mendevi plot '' -x rate -y psnr -y vmaf -wx category -c '(encoder, profile)' -m effort .. image:: /_static/media/x264_vs_openh264_bdr.svg :alt: Distortion as a function of bitrate Consumption as a function of bitrate ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code:: shell mendevi plot '' -x rate -y energy -wx category -wy profile -c encoder -m effort -f "category in {'4K-TV', 'Gaming'}" .. image:: /_static/media/x264_vs_openh264_energy.svg :alt: Consumption as a function of bitrate Compression efficiency for PSNR=35dB ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code:: shell mendevi plot '' -x rate -y energy -c '(encoder, profile)' -m category -f '34.5' -x rate -y energy -c '(encoder, profile)' -m category -f '1.8e6' -x rate -y psnr -wx 'round(energy/nbr_frames, 1)' -c encoder -m '(profile, effort)' -f "0.29`_ (Performance comparison among popular implementations of H.264 encoders) compare the distortion of that codecs. Reproduce --------- .. code:: shell for video in ctc/*.mkv; do mendevi prepare $video -p sd mendevi prepare $video -p fhd done mendevi encode reference* -e fast -e medium -e slow -m cbr -m vbr -c libx264 -c libopenh264 mendevi probe sample* --psnr --ssim --vif --vmaf