PPA Updated for Installing FFmpeg 6.1 in Ubuntu 22.04

Last updated: November 13, 2023 — 7 Comments

FFmpeg multi-media library updated to version 6.1, code-name “Heaviside”, few days ago!

According to the FFmpeg release page, the new 6.1 release features new libaribcaption decoder, RivaTuner video decoder, Playdate video decoder and demuxer, vMix video decoder, OSQ demuxer and decoder, as well as Microsoft RLE video encoder and VAAPI AV1 encoder.

The release also includes some new filters, including arls filter, afireqsrc audio source filter, color_vulkan filter, bwdif_vulkan filter, nlmeans_vulkan filter, zoneplate video source filter, xfade_vulkan filter, apsnr and asisdr audio filters, bwdif_cuda filter.

Other changes include:

  • CRI USM demuxer
  • Raw AC-4 muxer and demuxer
  • Raw VVC bitstream parser, muxer and demuxer
  • Extend VAAPI support for libva-win32 on Windows
  • ffmpeg CLI new option: -readrate_initial_burst
  • command support in the setpts and asetpts filters
  • Vulkan decode hwaccel, supporting H264, HEVC and AV1
  • Essential Video Coding parser, muxer and demuxer
  • Essential Video Coding frame merge bsf
  • Bitstream filter for editing metadata in VVC streams
  • Bitstream filter for converting VVC from MP4 to Annex B
  • scale_vt filter for videotoolbox
  • transpose_vt filter for videotoolbox
  • support for the P_SKIP hinting to speed up libx264 encoding
  • Support HEVC,VP9,AV1 codec in enhanced flv format
  • Support HEVC,VP9,AV1 codec fourcclist in enhanced rtmp protocol
  • ffmpeg CLI ‘-top’ option deprecated in favor of the setfield filter
  • ffprobe XML output schema changed to account for multiple variable-fields elements within the same parent element
  • ffprobe -output_format option added as an alias of -of

Install FFmpeg 6.1 in Ubuntu 22.04

NOTE: FFmpeg is an important media library that many apps depend on it. Install newer FFmpeg in Ubuntu may cause dependency issues (or even break your system). Use it at your own risk!!

I’ve made the new release package into this unofficial PPA for Ubuntu 22.04 LTS only, with x86_64, and 32/64-bit Arm architectures support.

1. First, press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg6

Type user password (no asterisk feedback) when it asks and hit Enter to continue.

2. For Linux Mint 21, you need to manually refresh package cache after adding PPA. To do so, run command:

sudo apt update

3. Finally, run the command below to either install or upgrade to FFmpeg 6.1:

sudo apt install ffmpeg

In case of in-complete installation, it’s HIGHLY recommend to run sudo apt upgrade to update all the packages to the latest versions.

4. After installation, run the command below in terminal to verify:

ffmpeg --version

How to Downgrade FFmpeg library:

In case you want to downgrade the FFmpeg library to the stock version available in system repository. Open terminal and run command:

sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1/ffmpeg6

NOTE: Keep an eye in terminal output before answering yes to confirm! It MAY remove some other useful app packages, though it should be able to install them back later.

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

7 responses to PPA Updated for Installing FFmpeg 6.1 in Ubuntu 22.04

  1. Problem with libavcodec60 and libjxl0.7 on 22.04

    • Could you provide more info about the issue, so we can help. And, did you try sudo apt upgrade to do a full update.

      • Hi,
        I did a full update.
        It seems there is a conflict between libjxl0.7 and the jpeg-xl 0.7.0-20220426.105500-0xiota0~ubuntu22.04 package from the Apps PPA, which is needed by gthumb.

        • Thanks for your report. I’ll try to fix the issue.

          UPDATE: rebuilt gthumb with libjxl0.7, please remove the old gthumb package as well as jpeg-xl 0.7.0, then re-install the new version to workaround the dependency issue.

  2. I get really strange error when using hevc_qsv decoder. The same command was working on stock ffmpeg that ships with 22.04.
    [AVHWDeviceContext @ 0x7fff5801b740] libva: This version of libva doesn’t support retrieving the device information from the driver. Please consider to upgrade libva to support VA-API 1.15.0
    Everything seems updated.
    Trying display: wayland
    Trying display: x11
    libva info: VA-API version 1.19.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_19
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.19 (libva 2.19.0)
    vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics – 23.3.2 ()

    • I can’t help for FFmpeg commands (I’m not expert on it). But, FFmpeg 6.1 in the PPA is built with Intel oneVPL, while FFmpeg 4.4 in system repository uses Intel® Media SDK (no longer maintained).

      The switch from Intel Media SDK (libmfx) to Intel oneVPL (libvpl) could be the reason, though the PPA also disabled AV1 encoding via rav1e, due to so much dependency mis-match.

      If you can’t figure out the issue, try the testffmpeg PPA which has rebuilt FFmpeg 6.1 with the old Intel Media SDK (libmfx).

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*