{"id":43738,"date":"2023-03-01T13:05:06","date_gmt":"2023-03-01T13:05:06","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43738"},"modified":"2023-11-13T06:06:56","modified_gmt":"2023-11-13T06:06:56","slug":"ffmpeg-6-0-released-how-to-install-in-ubuntu-22-04-20-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/03\/ffmpeg-6-0-released-how-to-install-in-ubuntu-22-04-20-04\/","title":{"rendered":"FFmpeg 6.0 Released! How to Install in Ubuntu 22.04 [New PPA Updated]"},"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>The popular FFmpeg multimedia library announced the new major 6.0 (updated to v6.1). Here are the new features and how to install guide for Ubuntu 22.04, Ubuntu 20.04, and Ubuntu 18.04.<\/p>\n<p>FFmpeg 6.0, code name &#8220;Von Neumann&#8221;, features <b>new decoders<\/b> support, including <b>Bonk<\/b>, <b>Micronas SC-4<\/b>, <b>APAC<\/b>, <b>ViewQuest VQC<\/b>, <b>RKA<\/b>, <b>Radiance<\/b>, <b>WavArc<\/b>, <b>CBD2 DPCM<\/b> and a few <b>ADPCM<\/b> formats.<\/p>\n<p>There are also <b>QSV<\/b> and <b>NVenc AV1 encoding<\/b>, <b>VAAPI and QSV decoding and encoding<\/b> for 10\/12bit 422, 10\/12bit 444 HEVC and VP9.<\/p>\n<p>Other changes <a href=\"https:\/\/ffmpeg.org\/\" target=\"_blank\" rel=\"noopener\">FFmpeg<\/a> 6.0 include:<\/p>\n<ul>\n<li>New audio and video filters, such as adrc, afdelaysrc, corr, showcwt, backgroundkey, a3dscope, ddagrab, ssim360, hstack_qsv, vstack_qsv and xstack_qsv filters<\/li>\n<li>Radiance HDR image support<\/li>\n<li>Add new mode to cropdetect filter to detect crop-area based on motion vectors and edges<\/li>\n<li>WBMP (Wireless Application Protocol Bitmap) image format<\/li>\n<li>LAF, SDNS demuxer<\/li>\n<li>DTS to PTS reorder bsf<\/li>\n<li>backgroundkey filter, showcwt multimedia filter<\/li>\n<li>hstack_vaapi, vstack_vaapi and xstack_vaapi filters<\/li>\n<li>MediaCodec decoder via NDKMediaCodec and encoder<\/li>\n<li>oneVPL support for QSV<\/li>\n<li>ffmpeg CLI new options: -stats_enc_pre[_fmt], -stats_enc_post[_fmt], -stats_mux_pre[_fmt]<\/li>\n<li>media100 to mjpegb bsf<\/li>\n<li>ffmpeg CLI new option: -fix_sub_duration_heartbeat<\/li>\n<li>CrystalHD decoders deprecated<\/li>\n<li>RKA, WavArc, XMD ADPCM, WADY DPCM decoder and demuxer<\/li>\n<li>filtergraph syntax in ffmpeg CLI now supports passing file contents as option values<\/li>\n<\/ul>\n<p><b><u>NOTE: Upgrade FFmpeg library in Ubuntu may break other apps and\/or run into dependency issue!! You must know how to restore. And don&#8217;t do it in production machine!!<\/u><\/b><\/p>\n<h3>How to Install FFmpeg (6.1 Updated) via PPA in Ubuntu:<\/h3>\n<p>As many users reported, the <a href=\"https:\/\/launchpad.net\/~savoury1\/+archive\/ubuntu\/ffmpeg6\" target=\"_blank\" rel=\"noopener\">Rob Savoury&#8217;s PPA<\/a> seems broken due to dependency issue.<\/p>\n<p>So, I upload the\u00a0 FFmpeg 6 and its dependency libraries into this <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/ffmpeg6\" target=\"_blank\" rel=\"noopener\">unofficial PPA<\/a> for those need FFmpeg 6.<\/p>\n<p><b>NOTE: 1. The PPA so far is for Ubuntu 22.04 only!<\/b><br \/>\n<b>NOTE: 2. The packages seem working good in my case. But it may or may not work for you! Use it at your own risk!<\/b><\/p>\n<p><b>1.<\/b> First, press <b>Ctrl+Alt+T<\/b> on keyboard to open a terminal window. When it opens, run command to add the PPA:<\/p>\n<pre>sudo add-apt-repository ppa:ubuntuhandbook1\/ffmpeg6<\/pre>\n<p><i>Type user password (no asterisk feedback) when it asks and hit Enter to continue.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/ffmpeg6-ppa-jammy.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44107\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/ffmpeg6-ppa-jammy-600x224.webp\" alt=\"\" width=\"600\" height=\"224\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/ffmpeg6-ppa-jammy-600x224.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/ffmpeg6-ppa-jammy-300x112.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/ffmpeg6-ppa-jammy-768x287.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/ffmpeg6-ppa-jammy.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>2.<\/b> For Linux Mint 21, you need to manually refresh package cache after adding PPA. To do so, run command:<\/p>\n<pre>sudo apt update<\/pre>\n<p><b>3.<\/b> Finally, run the command below to either install or upgrade to FFmpeg 6.1:<\/p>\n<pre>sudo apt install ffmpeg<\/pre>\n<p>In case of in-complete installation, it&#8217;s <strong>HIGHLY recommend to run <code>sudo apt upgrade<\/code> to upgrade all the packages to the latest<\/strong> versions.<\/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><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/verify-ffmpeg6.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43740\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/verify-ffmpeg6-600x453.webp\" alt=\"\" width=\"600\" height=\"453\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/verify-ffmpeg6-600x453.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/verify-ffmpeg6-300x227.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/verify-ffmpeg6-768x580.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/verify-ffmpeg6.webp 849w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>How to Downgrade FFmpeg library:<\/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\/ffmpeg6<\/pre>\n<p><b>NOTE: Keep an eye on terminal output before answering yes to confirm! It MAY remove some other useful app packages.<\/b><\/p>","protected":false},"excerpt":{"rendered":"<p>The popular FFmpeg multimedia library announced the new major 6.0 (updated to v6.1). Here are the new features and how to install guide for Ubuntu 22.04, Ubuntu 20.04, and Ubuntu 18.04. FFmpeg 6.0, code name &#8220;Von Neumann&#8221;, features new decoders support, including Bonk, Micronas SC-4, APAC, ViewQuest VQC, RKA, Radiance, WavArc, CBD2 DPCM and a [&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":[1154],"class_list":["post-43738","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-multimedia"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43738","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=43738"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43738\/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=43738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}