{"id":555,"date":"2023-04-01T06:00:20","date_gmt":"2023-04-01T06:00:20","guid":{"rendered":"https:\/\/www.dedicatedcore.com\/blog\/?p=555"},"modified":"2024-11-26T10:38:57","modified_gmt":"2024-11-26T10:38:57","slug":"installing-ffmpeg-ubuntu","status":"publish","type":"post","link":"https:\/\/www.dedicatedcore.com\/blog\/installing-ffmpeg-ubuntu\/","title":{"rendered":"How to Install FFmpeg on Ubuntu (using apt, snappy methods)"},"content":{"rendered":"<p>Users who install FFmpeg on Ubuntu have access to a robust multimedia framework that makes it simple to convert, record, and stream audio and video files. A versatile tool for developers, content creators, and multimedia fans alike, FFmpeg offers a wide range of features.\u00a0 This tutorial will walk you through the quick steps needed to install FFmpeg on your Ubuntu system, opening up a vast array of media processing and modification options.<\/p>\n<p>Experience the fastest and most secure online business with our dedicated server&#8217;s <a href=\"https:\/\/www.dedicatedcore.com\/dedicated-server-uk\/\" target=\"_blank\" rel=\"noopener\">pre-tested top-quality hardware<\/a> in UK which is the top choice provider. Multimedia content can be recorded, transcoded, mixed, formatted, and streamed using the command-line utility FFmpeg. The open-source, cross-platform frameworks libavutil, libavcodec, libavformat, libavdevice, libavfilter, libswscale, and libswresample freely distribute audio and video libraries to users. To set up a user-friendly and <a href=\"https:\/\/www.dedicatedcore.com\/blog\/install-vestacp-ubuntu\/\" target=\"_blank\" rel=\"noopener\">efficient web hosting control panel<\/a> on your server, explore our detailed manual on installing VestaCP on Ubuntu.<\/p>\n<p><iframe loading=\"lazy\" title=\"How to Install FFmpeg on Ubuntu\" width=\"719\" height=\"404\" src=\"https:\/\/www.youtube.com\/embed\/HWxcMo-MqGU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2>Install FFmpeg on Ubuntu using apt<\/h2>\n<p>The FFmpeg package is available in the Ubuntu repository, albeit it might not be the most recent version. Although it is one of the simplest ways to install FFmpeg on Ubuntu, apt is still often used. With vps hosting in USA you can <a href=\"https:\/\/www.dedicatedcore.com\/vps-hosting-usa\/\" target=\"_blank\" rel=\"noopener\">get quality server configuration<\/a> but colocates it for uninterrupted network and huge storage.<\/p>\n<h3>Step 1: Before you Start, the First thing to do is Update the Repository<\/h3>\n<p>To use the most recent FFmpeg version available in the repository, update and upgrade the system packages. Put this command into action:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt update &amp;&amp; sudo apt upgrade<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-559\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-apt-update-upgrade.png\" alt=\"command to update the repository\" width=\"800\" height=\"250\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-apt-update-upgrade.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-apt-update-upgrade-300x94.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-apt-update-upgrade-150x47.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-apt-update-upgrade-768x240.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-apt-update-upgrade-100x31.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-apt-update-upgrade-700x219.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>To continue Press y when prompted:<\/p>\n<h3>Step 2: After Successful with the First step, Install FFmpeg<\/h3>\n<p>Install FFmpeg by performing the following after updating the repository:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt install ffmpeg<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-560\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-running-command.png\" alt=\"after repository update install ffmpeg\" width=\"800\" height=\"351\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-running-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-running-command-300x132.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-running-command-150x66.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-running-command-768x337.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-running-command-100x44.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-running-command-700x307.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h3>Step 3: Check over the Installation<\/h3>\n<p>Verify that FFmpeg has been set up using:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ffmpeg -version<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-561\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-installation-ffmpeg-version.png\" alt=\"confirming ffmpeg has installed\" width=\"800\" height=\"290\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-installation-ffmpeg-version.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-installation-ffmpeg-version-300x109.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-installation-ffmpeg-version-150x54.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-installation-ffmpeg-version-768x278.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-installation-ffmpeg-version-100x36.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-installation-ffmpeg-version-700x254.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The command confirms that FFmpeg version 4.2.7 is installed. The most recent stable FFmpeg version in the Ubuntu 20.04 repositories is 4.2.7. However, the software in the Ubuntu repositories is only sometimes current.<\/p>\n<h2>Install FFmpeg with Snappy.<\/h2>\n<p>Utilize the Snap package manager (snappy) to download the most recent version of FFmpeg. A program and its dependencies are packaged together by the snap tool in a container known as a snap package that runs on any Linux system. Snaps are updated automatically and continuously, unlike FFmpeg packages in the official Ubuntu repository, guaranteeing users the most recent FFmpeg version.<\/p>\n<h3>Step 1: Set up Snap<\/h3>\n<p>As with Ubuntu, start by determining whether Snap is installed on the machine. Take the following actions:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">snap version<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-562\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-ubuntu-snappy.png\" alt=\"install ffmpeg with snappy\" width=\"800\" height=\"250\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-ubuntu-snappy.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-ubuntu-snappy-300x94.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-ubuntu-snappy-150x47.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-ubuntu-snappy-768x240.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-ubuntu-snappy-100x31.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-ubuntu-snappy-700x219.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The output demonstrates that Snap is operational. If Snap is not installed on Ubuntu, the following is printed by the command:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-563\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-snap-running-command.png\" alt=\"command shows if ubuntu have snap or not\" width=\"800\" height=\"191\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-snap-running-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-snap-running-command-300x72.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-snap-running-command-150x36.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-snap-running-command-768x183.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-snap-running-command-100x24.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-snap-running-command-700x167.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p><strong>Follow these Steps to Add Snap to the Device:<\/strong><\/p>\n<p>1. Improve and update the repository using:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt update &amp;&amp; sudo apt upgrade<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-564\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-snap-upgrade-repository.png\" alt=\"command to install snap and update repository\" width=\"800\" height=\"250\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-snap-upgrade-repository.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-snap-upgrade-repository-300x94.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-snap-upgrade-repository-150x47.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-snap-upgrade-repository-768x240.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-snap-upgrade-repository-100x31.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-snap-upgrade-repository-700x219.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>2. By Running the Command Install Snap<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt install snapd<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-565\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-snap-running-command.png\" alt=\"sudo apt install snapd output\" width=\"800\" height=\"169\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-snap-running-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-snap-running-command-300x63.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-snap-running-command-150x32.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-snap-running-command-768x162.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-snap-running-command-100x21.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-snap-running-command-700x148.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>3. Checking Installation:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">snap version<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-566\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verification-snap-version.png\" alt=\"command snap version to verify installation\" width=\"800\" height=\"249\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verification-snap-version.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verification-snap-version-300x93.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verification-snap-version-150x47.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verification-snap-version-768x239.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verification-snap-version-100x31.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verification-snap-version-700x218.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h3>Step 2: Install FFmpeg<\/h3>\n<p>Run the following command to install FFmpeg:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo snap install ffmpeg<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-567\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-sudo-snap.png\" alt=\"install ffmpeg with sudo snap command\" width=\"800\" height=\"149\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-sudo-snap.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-sudo-snap-300x56.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-sudo-snap-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-sudo-snap-768x143.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-sudo-snap-100x19.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-ffmpeg-sudo-snap-700x130.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The progress bar is shown on the terminal. When the installation is finished, the result appears as follows:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-568\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-installation-complete.png\" alt=\"output of complete installation\" width=\"800\" height=\"151\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-installation-complete.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-installation-complete-300x57.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-installation-complete-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-installation-complete-768x145.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-installation-complete-100x19.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-installation-complete-700x132.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h3>Step 3: Recheck the Installation<\/h3>\n<p>Run the following Command to recheck the Installation<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ffmpeg -version<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-569\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-ffmpeg-installation.png\" alt=\"verify ffmpeg is installed run command\" width=\"800\" height=\"189\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-ffmpeg-installation.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-ffmpeg-installation-300x71.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-ffmpeg-installation-150x35.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-ffmpeg-installation-768x181.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-ffmpeg-installation-100x24.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-ffmpeg-installation-700x165.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The FFmpeg version installed using Snap is 4.3.1, more recent than the version installed using apt (4.2.7).<\/p>\n<h4>Final Thoughts on Installing FFmpeg on Ubuntu<\/h4>\n<p>Ubuntu users have many options for productively working with multimedia files after installing FFmpeg. You can use FFmpeg to easily convert, record, and stream audio and video content. If you are looking to keep complicated data and <a href=\"https:\/\/www.dedicatedcore.com\/blog\/install-mongodb-ubuntu\/\" target=\"_blank\" rel=\"noopener\">construct scalable applications<\/a> installing MongoDB on Ubuntu will be useful.<\/p>\n<p>The adaptable features of FFmpeg will surely come in handy in your multimedia pursuits. Whether you&#8217;re a content creator, developer, or just someone who wishes to improve their media capabilities. Now that FFmpeg is up and running on Ubuntu. You should investigate its features to unleash your creativity and get the most out of your multimedia experience.<\/p>\n<h3>Frequently Asked Questions (FAQ)<\/h3>\n<p><strong>1. What is FFmpeg and why is it used?<\/strong><\/p>\n<p>FFmpeg is a powerful multimedia framework that allows you to do multiple tasks on almost any type of audio and video file. It\u2019s commonly used for video conversion, streaming, and editing.<\/p>\n<p><strong>2. What are the Prerequisites for Installing FFmpeg on Ubuntu?<\/strong><\/p>\n<p>With the below commands make sure your system is updated:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt update\r\nsudo apt upgrade\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Users who install FFmpeg on Ubuntu have access to a robust multimedia framework that makes it simple to convert, record, and stream audio and video&#8230;<\/p>\n","protected":false},"author":1,"featured_media":598,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/555"}],"collection":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/comments?post=555"}],"version-history":[{"count":19,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/555\/revisions"}],"predecessor-version":[{"id":2577,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/555\/revisions\/2577"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media\/598"}],"wp:attachment":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media?parent=555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/categories?post=555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/tags?post=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}