{"id":46096,"date":"2024-04-06T15:46:12","date_gmt":"2024-04-06T15:46:12","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=46096"},"modified":"2026-04-30T13:21:52","modified_gmt":"2026-04-30T13:21:52","slug":"ffmpeg-7-0-ppa-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/04\/ffmpeg-7-0-ppa-ubuntu\/","title":{"rendered":"Install FFmpeg (8.1 Updated) via PPA in Ubuntu 26.04, 24.04, 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/02\/ffmpeg-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-37497\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/02\/ffmpeg-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/02\/ffmpeg-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/02\/ffmpeg-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/02\/ffmpeg-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/02\/ffmpeg-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/02\/ffmpeg-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>FFmpeg media library is now at version 8.1! Here&#8217;s how to install it in Ubuntu 22.04, Ubuntu 24.04, Ubuntu 26.04, Linux Mint 21\/22 from PPA.<\/p>\n<p>The new <a href=\"https:\/\/ffmpeg.org\/index.html#news\" target=\"_blank\" rel=\"noopener\">FFmpeg 8.0<\/a> version of this popular multi-media library came with name &#8220;Huffman&#8221;. It features native decoders for Samsung&#8217;s <b>Advanced Professional Video (APV)<\/b> codec, Apple&#8217;s <b>ProRes RAW<\/b>, Sanyo LD-ADPCM, RealVideo 6.0, G.728, and ADPCM IMA Xbox.<\/p>\n<p>It also added encoding support for APV (via libopenapv wrapper), libx265 alpha layer, and animated JPEG XL images (through libjxl), as well as Vulkan compute-based codecs support for FFv1 (encoding and decoding) and ProRes RAW (decode only).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51094\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg81-resolute-700x463.webp\" alt=\"\" width=\"610\" height=\"403\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg81-resolute-700x463.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg81-resolute-300x199.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg81-resolute-768x508.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg81-resolute.webp 947w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><br \/>\n<!--more--><\/p>\n<p>Other changes include hardware accelerated decoding for VP9 (Vulkan), VVC (VAAPI), hardware accelerated encoding for AV1 (Vulkan), and both <i>decoding<\/i> and <i>encoding<\/i> (hardware accelerated) for the OpenHarmony H264\/5 video codecs, and:<\/p>\n<ul>\n<li>improve VVC (aka H.266) support via all content of SCC (Screen Content Coding), including IBC (Inter Block Copy), Palette Mode and ACT (Adaptive Color Transform).<\/li>\n<li>New filters: colordetect, pad_cuda, scale_d3d11, Whisper, and others.<\/li>\n<li>APV in MP4\/ISOBMFF muxing and demuxing<\/li>\n<li>VVC in Matroska,<\/li>\n<li>CENC AV1 support in MP4 muxer.<\/li>\n<li>Enhanced FLV v2: Multitrack audio\/video, modern codec support.<\/li>\n<\/ul>\n<p>And, below are the changes in the last FFmpeg 7.1:<\/p>\n<ul>\n<li>Native decoder\/encoder for VVC (aka H.266).<\/li>\n<li>Read and write IAMF (Immersive Audio) files, and new <code>-stream_group<\/code> CLI option to configure the IAMF structure.<\/li>\n<li>CLI (command-line) tool now is <b>multi-threaded<\/b>.<\/li>\n<li>Encoding support for DXV DXT1.<\/li>\n<li>Decoding support for LEAD MCMP and QOA audio, xHE-AAC, MV-HEVC, and MediaCodec AAC\/AMR-NB\/AMR-WB\/MP3.<\/li>\n<li>Both encoding and decoding for MPEG-5 Essential Video Coding (EVC).<\/li>\n<li>aap, tiltandshift, qrencode filter and qrencodesrc source, quirc, fsync filter, showinfo bitstream filters.<\/li>\n<li>supports for reading QOA, DVD-Video, and writing AEA, Raw Captions with Time (RCWT) closed caption.<\/li>\n<li>D3D12VA hardware accelerated H264, HEVC, VP9, AV1, MPEG-2 and VC1 decoding.<\/li>\n<li>Vulkan accelerated H.264 and H.265 (HEVC) encoder.<\/li>\n<li>ffplay with hwaccel decoding support.<\/li>\n<li>Support for HEIF\/AVIF still images and tiled still images<\/li>\n<\/ul>\n<h3>How to Install FFmpeg (8.1 updated) in Ubuntu<\/h3>\n<p><b>NOTE: FFmpeg is an IMPORTANT library that many graphical apps depend on it. Update FFmpeg MAY run into dependency issue and even break your apps! You MUST know what you&#8217;re going to do, and use the PPA at your own risk!!!<\/b><\/p>\n<p>Besides building the media library from the <a href=\"https:\/\/ffmpeg.org\/download.html\" target=\"_blank\" rel=\"noopener\">source tarball<\/a>, I&#8217;ve upload the new release packages into this <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/ffmpeg8\" target=\"_blank\" rel=\"noopener\">unofficial PPA<\/a> for Ubuntu 26.04, Ubuntu 24.04 and Ubuntu 22.04 on x86_64 and arm64\/armhf platforms.<\/p>\n<p><b>1.<\/b> First, press <code>Ctrl+Alt+T<\/code> on keyboard to open up a terminal window. When it opens, run command to add the PPA:<\/p>\n<pre>sudo add-apt-repository ppa:ubuntuhandbook1\/ffmpeg8<\/pre>\n<p><i>Type user password (no asterisk feedback, just type in mind) when it asks and hit Enter to continue.<\/i><\/p>\n<p><b>Tips:<\/b> for Ubuntu 22.04\/24.04 users who need FFmpeg 7.1.1, add <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/ffmpeg7\" target=\"_blank\" rel=\"noopener\">this PPA<\/a> instead by replace <code>ffmpeg8<\/code> with <code>ffmpeg7<\/code> in last command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49546\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg8-ppa-700x365.webp\" alt=\"\" width=\"610\" height=\"318\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg8-ppa-700x365.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg8-ppa-300x156.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg8-ppa-768x400.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/ffmpeg8-ppa.webp 866w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>2.<\/b> Ubuntu now auto-refresh system package while adding PPA, but some Ubuntu based system may NOT. Just in case, you can run the command below to do the refresh manually:<\/p>\n<pre>sudo apt update<\/pre>\n<p><b>3.<\/b> Finally, run the command below to either install or upgrade to FFmpeg 8.1:<\/p>\n<pre>sudo apt install ffmpeg<\/pre>\n<p>Though it&#8217;s <strong>HIGHLY recommend to run <code>sudo apt upgrade<\/code> to update all the packages to the latest<\/strong> versions, to avoid in-completed installation.<\/p>\n<p><b>NOTE: For those who have Ubuntu Pro enabled, you need to specify package source (the PPA in the case) via the command below, or it&#8217;s always prior to install the one from Ubuntu ESM.<\/b><\/p>\n<pre>sudo apt install -t \"o=LP-PPA-ubuntuhandbook1-ffmpeg8\" ffmpeg<\/pre>\n<p><i>Also replace number 8 with 7 if you added the FFmpeg7 PPA and want to install v7.1.1 instead.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-upgrade-ffmpeg6.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44106\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-upgrade-ffmpeg6-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-upgrade-ffmpeg6-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-upgrade-ffmpeg6-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-upgrade-ffmpeg6-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-upgrade-ffmpeg6.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>4.<\/b> After installation, run the command below in terminal to verify:<\/p>\n<pre>ffmpeg --version<\/pre>\n<p>The package in this PPA is backported from <a href=\"https:\/\/deb-multimedia.org\/\" target=\"_blank\" rel=\"noopener\">Deb Multimedia<\/a> repository, with few modifications due to different dependency packages between Debian and Ubuntu.<\/p>\n<p>If you found missing features, feel free to leave comment below, I&#8217;ll try to update it if possible!<\/p>\n<h3>How to Downgrade FFmpeg:<\/h3>\n<p>In case you want to downgrade the FFmpeg library to the stock version available in system repository. Open terminal and run command:<\/p>\n<pre>sudo apt install ppa-purge &amp;&amp; sudo ppa-purge ppa:ubuntuhandbook1\/ffmpeg8<\/pre>\n<p><b>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.<\/b><\/p>","protected":false},"excerpt":{"rendered":"<p>FFmpeg media library is now at version 8.1! Here&#8217;s how to install it in Ubuntu 22.04, Ubuntu 24.04, Ubuntu 26.04, Linux Mint 21\/22 from PPA. The new FFmpeg 8.0 version of this popular multi-media library came with name &#8220;Huffman&#8221;. It features native decoders for Samsung&#8217;s Advanced Professional Video (APV) codec, Apple&#8217;s ProRes RAW, Sanyo LD-ADPCM, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":37497,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[594],"class_list":["post-46096","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-ffmpeg"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/46096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=46096"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/46096\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/37497"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=46096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=46096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=46096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}