{"id":1129,"date":"2018-12-25T14:45:29","date_gmt":"2018-12-25T14:45:29","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=1129"},"modified":"2021-11-14T23:11:39","modified_gmt":"2021-11-14T23:11:39","slug":"how-to-install-ffmpeg-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/","title":{"rendered":"How to Install and Use FFmpeg on Ubuntu 18.04 \/ 16.04"},"content":{"rendered":"<p><strong>FFmpeg<\/strong> is a very popular, cross-platform, free and open-source multimedia framework, used for transcoding multimedia files. FFmpeg is actually a collection of different projects for manipulating multimedia files. It&#8217;s not only used by users to handle media files, but it&#8217;s quite often used by many softwares, behind the scenes. You may have used it before without knowing.<\/p>\n<p>In this tutorial we&#8217;ll focus on installing the stable version (<strong>3.x<\/strong>), and the latest version (<strong>4.x<\/strong>) of FFmpeg on <strong>Ubuntu 18.04<\/strong> or <strong>Ubuntu 16.04<\/strong> (The same steps apply for both).<\/p>\n<p>Furthermore, we&#8217;ll get into using the <strong>FFmpeg command-line tool<\/strong>, which is only a single part of the entire FFmpeg project.<\/p>\n\n<h3 id=\"prerequisites\">Prerequisites<\/h3>\n<ul>\n<li>This tutorial works for when you&#8217;re <code>root<\/code>, but we recommend you use a <code>non-root sudo user<\/code>when making changes to your system. To create a <code>sudo<\/code> user, and read why it&#8217;s recommended that you use one, you can follow our tutorial: <a href=\"https:\/\/draculaservers.com\/tutorials\/create-sudo-user-ubuntu\/\" target=\"_blank\" rel=\"noopener\">How to Create a Sudo User on Ubuntu<\/a><\/li>\n<\/ul>\n<p>Currently, the stable version is <strong>FFmpeg 3.x<\/strong>, but the latest version is <strong>FFmpeg 4.x<\/strong>.<\/p>\n<p>We&#8217;ll see how to install both of them, and you can choose which one fits your needs.<\/p>\n<h2 id=\"install-ffmpeg-3-x-on-ubuntu\">Install FFmpeg 3.x on Ubuntu<\/h2>\n<p>At the time of writing, the latest stable version is <strong>FFmpeg 3.4.4<\/strong>.<\/p>\n<h3 id=\"step-1-install-ffmpeg-3-x\">Step 1 \u2013 Install FFmpeg 3.x<\/h3>\n<p>To install it, update your package index then install FFmpeg by using the <code>apt<\/code> package manager:<\/p>\n<pre><code lang=\"shell\">$ sudo apt-get update\n$ sudo apt-get install ffmpeg<\/code><\/pre>\n<h3 id=\"step-2-check-ffmpeg-version\">Step 2 \u2013 Check FFmpeg Version<\/h3>\n<p>Let&#8217;s check that FFmpeg is properly installed by checking its&#8217; version:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -version<\/code><\/pre>\n<p>Here&#8217;s my output:<\/p>\n<pre><code lang=\"shell\">ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers\nbuilt with gcc 7 (Ubuntu 7.3.0-16ubuntu3)<\/code><\/pre>\n<p>That&#8217;s it. Installing the stable version is that simple, and you start using it.<\/p>\n<h2 id=\"install-ffmpeg-4-x-on-ubuntu\">Install FFmpeg 4.x on Ubuntu<\/h2>\n<p>FFmpeg 4.x is the newest major release, and it&#8217;s packed with new features. You can check them out and the latest changes to FFmpeg on <a href=\"https:\/\/www.ffmpeg.org\/#news\" target=\"_blank\" rel=\"noopener\">their website in the News subsection<\/a>.<\/p>\n<h3 id=\"step-1-add-the-ffmpeg-unofficial-ppa\">Step 1 \u2013 Add the FFmpeg Unofficial PPA<\/h3>\n<p>The latest version of FFmpeg is 4.x. It&#8217;s currently not in the Official Ubuntu Repositories, so to install it you&#8217;ll have to configure PPA on your system. To do this, add Jonathon F&#8217;s PPA repository by running the following command:<\/p>\n<pre><code lang=\"shell\">$ sudo add-apt-repository ppa:jonathonf\/ffmpeg-4<\/code><\/pre>\n<blockquote class=\"note\"><p><small>If you get you get the error <code>sudo: add-apt-repository: command not found<\/code> when running the above command, then just install <code>software-properties-common<\/code> and try adding the PPA again:<\/small><br \/>\n<code>$ sudo apt-get install software-properties-common<\/code><\/p><\/blockquote>\n<h3 id=\"step-2-install-ffmpeg-4-x\">Step 2 \u2013 Install FFmpeg 4.x<\/h3>\n<p>With the unofficial PPA added, we can proceed with the installation. Update your package index and install FFmpeg via the <code>apt<\/code> package manager:<\/p>\n<pre><code lang=\"shell\">$ sudo apt-get update\n$ sudo apt-get install ffmpeg<\/code><\/pre>\n<h3 id=\"step-3-check-the-ffmpeg-version\">Step 3 \u2013 Check the FFmpeg Version<\/h3>\n<p>To make sure that the installation was successful run the following command to check our FFmpeg version:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -version<\/code><\/pre>\n<p>Here&#8217;s my output:<\/p>\n<pre><code lang=\"shell\">ffmpeg version 4.0.3-1~18.04.york0 Copyright (c) 2000-2018 the FFmpeg developers\nbuilt with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)<\/code><\/pre>\n<p>Well done. The installation was successful and now you can start using the latest version of FFmpeg.<\/p>\n<h2 id=\"ffmpeg-examples-basic-commands\">FFmpeg Examples &amp; Basic Commands<\/h2>\n<p>If you&#8217;re just starting out, these examples will hopefully give you a feel of how FFmpeg works.<\/p>\n<p>For the purposes of this tutorial, we&#8217;ll quickly download a sample video file to play with, from here <a class=\"url\" href=\"https:\/\/sample-videos.com\" target=\"_blank\" rel=\"noopener\">https:\/\/sample-videos.com<\/a>. You&#8217;ll find a list of videos, of different sizes, formats and resolutions.<\/p>\n<pre><code lang=\"shell\">$ wget https:\/\/sample-videos.com\/video123\/mp4\/480\/big_buck_bunny_480p_20mb.mp4<\/code><\/pre>\n<blockquote class=\"note\"><p><small><strong>NOTE:<\/strong> There are many command options we could talk about, but it is beyond the scope of this tutorial. For a thorough understanding of <code>FFmpeg<\/code> we suggest you read the FFmpeg documentation on their <a href=\"https:\/\/ffmpeg.org\/ffmpeg.html\" target=\"_blank\" rel=\"noopener\">website<\/a> or their <a href=\"https:\/\/trac.ffmpeg.org\/wiki\" target=\"_blank\" rel=\"noopener\">wiki<\/a> ( which is very well organized and we strongly recommend ).<\/small><\/p><\/blockquote>\n<h3 id=\"01-help\" class=\"subsection-heading\"><strong>01. Help<\/strong><\/h3>\n<p>You can see a list of command options by using:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -h<\/code><\/pre>\n<h3 id=\"02-get-file-info\" class=\"subsection-heading\"><strong>02. Get file info<\/strong><\/h3>\n<p>With the file downloaded, use the <code>-i<\/code> command option will display the to display information on the video file:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i big_buck_bunny_480p_20mb.mp4<\/code><\/pre>\n<h3 id=\"03-convert-files\" class=\"subsection-heading\"><strong>03. Convert files<\/strong><\/h3>\n<p>Most people need FFmpeg to easily convert files. This process is typically complex when done manually, but FFmpeg makes this easy by automatically selecting the correct codecs and container.<\/p>\n<h4 id=\"convert-video-files\" class=\"subsection-heading negate-padding-top\"><strong>Convert Video Files<\/strong><\/h4>\n<p>Say you have an <code>mp4<\/code> video file and you want to convert it to <code>webm<\/code>. To do this we simply run:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i big_buck_bunny_480p_20mb.mp4 big_buck_bunny_480p_20mb.webm<\/code><\/pre>\n<p>The syntax of this command basically looks like this:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i [input_file.current_format] [output_file.desired_format] <\/code><\/pre>\n<h4 id=\"convert-audio-files\" class=\"subsection-heading\"><strong>Convert Audio Files<\/strong><\/h4>\n<p>The basic conversion of audio files looks exactly the same. We don&#8217;t have an audio file available so we&#8217;ll just leave the example. Say we have <code>Despacito.mp3<\/code> \u02b0\u1d43\u02b0\u1d43 and we need to convert it to <code>ogg<\/code><\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i Despacito.mp3 Despacito.ogg<\/code><\/pre>\n<h4 id=\"convert-video-to-audio-files\" class=\"subsection-heading\"><strong>Convert Video to Audio Files<\/strong><\/h4>\n<p>In the same fashion, you can convert a video file to an audio file. Some would call this <strong>extracting audio<\/strong>.<\/p>\n<p>Say you&#8217;ve downloaded the <code>Despacito<\/code> video, in <code>flv<\/code> format, from somewhere, and you want to convert it to an <code>mp3<\/code>. To do that you&#8217;d simply run:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i Despacito.flv -vn Despacito.mp3<\/code><\/pre>\n<p><code>-vn<\/code> &#8211; means that we&#8217;ve disabled video in the output file<\/p>\n<p>To see a list of supported formats by FFmpeg, run:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -formats<\/code><\/pre>\n<p>The following examples don&#8217;t cover all of the cases you&#8217;ll encounter, and you may not understand some options we&#8217;re adding and it may be confusing to go through the all the <a href=\"https:\/\/trac.ffmpeg.org\/wiki\" target=\"_blank\" rel=\"noopener\">docs<\/a>.<\/p>\n<h3 id=\"04-compress-media-files\" class=\"subsection-heading\"><strong>04. Compress Media Files<\/strong><\/h3>\n<p>As you probably know, compressing files means to reduce their size.<\/p>\n<h4 id=\"compressing-video-files\" class=\"subsection-heading negate-padding-top\"><strong>Compressing Video Files<\/strong><\/h4>\n<p>One of the reasons for the docs being confusing is that many encoders have their own separate <strong>&#8220;private options&#8221;<\/strong>.<\/p>\n<p>A good thing is that we find that the codec most used when dealing with video files is <strong>libx264<\/strong>, and we believe you can get a good understanding of it from the following FFmpeg Wiki Page, without having to go through all of the documentation &#8211; <a href=\"https:\/\/trac.ffmpeg.org\/wiki\/Encode\/H.264\" target=\"_blank\" rel=\"noopener\">H.264 Video Encoding Guide<\/a>.<\/p>\n<p>For other codecs, the FFmpeg Wiki has a nice <a href=\"https:\/\/trac.ffmpeg.org\/wiki#Encoding\" target=\"_blank\" rel=\"noopener\">Encoding Subsection<\/a> where you&#8217;ll find the guides for different codecs.<\/p>\n<p>In this example, we&#8217;ll compress an <code>mp4<\/code>using the <code>libx264<\/code> codec (this may take a few minutes):<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i big_buck_bunny_480p_20mb.mp4 -vf scale=360:-1 -c:v libx264 -preset veryslow -crf 24 compressed_big_buck_bunny_480p_20mb.mp4<\/code><\/pre>\n<p>Let&#8217;s see what all that means:<\/p>\n<p><code>ffmpeg<\/code> &#8211; we used FFmpeg<\/p>\n<p><code>-i<\/code>&#8211; the input file<\/p>\n<p><code>big_buck_bunny_480p_20mb.mp4<\/code> &#8211; the path to our input file<\/p>\n<p><code>-vf scale=360:-1<\/code>&#8211; this is the scale filter ( <a href=\"https:\/\/trac.ffmpeg.org\/wiki\/Scaling\" target=\"_blank\" rel=\"noopener\">FFmpeg Wiki &#8211; Scaling<\/a> ). We scaled the video to 360px width, and the <code>-1<\/code> mean that we want to preserve the aspect ratio. So FFmpeg will set the height accordingly, without us having to calculate, so the video keeps it&#8217;s aspect ratio. For example, if we wanted we could set the height ourselves by using <code>-vf scale=360:240<\/code> or any other values.<\/p>\n<p><code>-c:v libx264<\/code>&#8211; encodes all video streams with <code>libx264<\/code> and copies all audio streams<\/p>\n<p><code>-preset veryslow<\/code> &#8211; to quote the <a href=\"https:\/\/trac.ffmpeg.org\/wiki\/Encode\/H.264#Preset\" target=\"_blank\" rel=\"noopener\">FFmpeg Docs &#8211; Preset Subsection<\/a>, &#8220;A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize). This means that, for example, if you target a certain file size or constant bit rate, you will achieve better quality with a slower preset. Similarly, for constant quality encoding, you will simply save bitrate by choosing a slower preset.&#8221;<\/p>\n<p><code>-crf 24<\/code> &#8211; this is the <strong>Constant Rate Factor<\/strong>. To put it simply, you can set it from 0 to 51, and the lower it is, the higher quality the output video will be. It is generally accepted to set it between 18-24, so that there isn&#8217;t much visible loss of quality. You can find the detailed explanation here <a href=\"https:\/\/trac.ffmpeg.org\/wiki\/Encode\/H.264#crf\" target=\"_blank\" rel=\"noopener\">FFmpeg Docs &#8211; Constant Rate Factor (CRF) Subsection<\/a><\/p>\n<p><code>compressed_big_buck_bunny_480p_20mb.mp4<\/code> &#8211; our output file<\/p>\n<h4 id=\"compressing-audio-files\" class=\"subsection-heading\"><strong>Compressing Audio Files<\/strong><\/h4>\n<p>Let&#8217;s say you have a 320kbps bitrate <code>Despacito.mp3<\/code>. You can compress it by lowering the bitrate, as follows:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i Despacito.mp3 -ab 128 compressed_Despacito.mp3<\/code><\/pre>\n<p><code>ffmpeg<\/code> &#8211; we used FFmpeg<\/p>\n<p><code>-i<\/code>&#8211; the input file<\/p>\n<p><code>Despacito.mp3<\/code> &#8211; the path to our input file<\/p>\n<p><code>-ab<\/code> &#8211; audio bitrate, and another form of <code>-b:a<\/code> ( <a href=\"https:\/\/trac.ffmpeg.org\/wiki\/Encode\/MP3\" target=\"_blank\" rel=\"noopener\">Docs &#8211; Encoding MP3<\/a> )<\/p>\n<p><code>compressed_Despacito.mp3<\/code> &#8211; our output file<\/p>\n<h3 id=\"05-removing-video-audio-streams\" class=\"subsection-heading\"><strong>05. Removing Video\/Audio Streams<\/strong><\/h3>\n<h4 id=\"remove-audio-from-media-file\" class=\"subsection-heading  negate-padding-top\"><strong>Remove Audio From Media File<\/strong><\/h4>\n<p>If you want to remove audio from a video, then you can remove it using the <code>-an<\/code> option. We&#8217;ll use our <code>big_buck_bunny_480p_20mb.mp4<\/code> file for our example:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i big_buck_bunny_480p_20mb.mp4 -an nosound_big_buck_bunny_480p_20mb.mp4<\/code><\/pre>\n<p><code>-an<\/code> &#8211; using this option disables the audio recording in the output file<\/p>\n<h4 id=\"remove-video-from-media-file\" class=\"subsection-heading\"><strong>Remove Video from Media File<\/strong><\/h4>\n<p>We&#8217;ve mentioned this before, but mentioning this again to keep our article somewhat organized. To remove video from a media file, and leave only the audio stream, we use the <code>-vn<\/code> option. Again, we&#8217;ll use our <code>big_buck_bunny_480p_20mb.mp4<\/code> example:<\/p>\n<pre><code lang=\"shell\">$ ffmpeg -i big_buck_bunny_480p_20mb.mp4 -vn big_buck_bunny_480p_20mb.mp3<\/code><\/pre>\n<p><code>-vn<\/code> &#8211; we use this option to disable video recording in the output file<\/p>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>There are many more ways you can manipulate media files using FFmpeg, but doing so is beyond the scope of this tutorial.<\/p>\n<p>Some other common things that you can do include:<\/p>\n<ul>\n<li>Converting videos to GIFs<\/li>\n<li>Creating videos\/gifs from multiple images<\/li>\n<li>Extracting frames (images) from video files<\/li>\n<li>Cropping videos<\/li>\n<li>Adding watermark to videos<\/li>\n<li>Adding an <strong>album cover<\/strong> ( the image that shows in the media player ) to media files<\/li>\n<li>Stream videos ( like streaming to Youtube, Facebook etc)<\/li>\n<li>Download live streaming videos ( by using Gstreamer )<\/li>\n<\/ul>\n<p>Those are just a few other things that you can do with FFmpeg, and it&#8217;s capable of doing a whole lot more. No wonder it&#8217;s so popular solution, and used by other software.<\/p>\n<p>Hopefully you were able to install FFmpeg 3.x or FFmpeg 4.x on Ubuntu 18.04 or 16.04 and this tutorial has given you a little bit of insight to be able to navigate through the FFmpeg documentation and other FFmpeg guides.<\/p>\n<p>If you have any questions or you believe there is anything incorrect in this article, please let us know and we&#8217;ll get back to you ASAP.<\/p>\n<p>If you&#8217;re in the market for affordable VPS that are high on resources, then do check out our <a href=\"https:\/\/draculaservers.com\" target=\"_blank\" rel=\"noopener\">KVM or Windows VPS<\/a> plans for some sweet server deals. To give you a sense of our pricing\/performance ration, our smallest plan is <strong>1GB RAM at only $9.99\/mo<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FFmpeg is a very popular, cross-platform, free and open-source multimedia framework, used for transcoding multimedia files. FFmpeg is actually a collection of different projects for manipulating multimedia files. It&#8217;s not only used by users to handle media files, but it&#8217;s quite often used by many softwares, behind the scenes. You may have used it before [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1158,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[58,57,59],"class_list":["post-1129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ffmpeg","tag-media","tag-utilities"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"featured_image_urls_v2":{"full":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png",1024,512,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04-300x150.png",300,150,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04-768x384.png",768,384,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png",1024,512,false],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png",1024,512,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png",1024,512,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>FFmpeg is a very popular, cross-platform, free and open-source multimedia framework, used for transcoding multimedia files. FFmpeg is actually a collection of different projects for manipulating multimedia files. It&#8217;s not only used by users to handle media files, but it&#8217;s quite often used by many softwares, behind the scenes. You may have used it before without knowing. In this tutorial we&#8217;ll focus on installing the stable version (3.x), and the latest version (4.x) of FFmpeg on Ubuntu 18.04 or Ubuntu 16.04 (The same steps apply for both). Furthermore, we&#8217;ll get into using the FFmpeg command-line tool, which is only a&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/ubuntu\/\" rel=\"category tag\">Ubuntu<\/a>","author_info_v2":{"name":"Vlad","url":"https:\/\/draculaservers.com\/tutorials\/author\/vlad\/"},"comments_num_v2":"0 comments","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install and Use FFmpeg on Ubuntu 18.04 \/ 16.04 - Dracula Servers Tutorials<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Use FFmpeg on Ubuntu 18.04 \/ 16.04 - Dracula Servers Tutorials\" \/>\n<meta property=\"og:description\" content=\"FFmpeg is a very popular, cross-platform, free and open-source multimedia framework, used for transcoding multimedia files. FFmpeg is actually a collection of different projects for manipulating multimedia files. It&#8217;s not only used by users to handle media files, but it&#8217;s quite often used by many softwares, behind the scenes. You may have used it before [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-25T14:45:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-14T23:11:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vlad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vlad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Vlad\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/931f7fa8b2126ace6edfb82775e0ec0e\"},\"headline\":\"How to Install and Use FFmpeg on Ubuntu 18.04 \\\/ 16.04\",\"datePublished\":\"2018-12-25T14:45:29+00:00\",\"dateModified\":\"2021-11-14T23:11:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/\"},\"wordCount\":1505,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png\",\"keywords\":[\"FFmpeg\",\"Media\",\"Utilities\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/\",\"name\":\"How to Install and Use FFmpeg on Ubuntu 18.04 \\\/ 16.04 - Dracula Servers Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png\",\"datePublished\":\"2018-12-25T14:45:29+00:00\",\"dateModified\":\"2021-11-14T23:11:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png\",\"width\":1024,\"height\":512,\"caption\":\"install_use_ffmpeg_ubuntu_18_04_16_04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-install-ffmpeg-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Use FFmpeg on Ubuntu 18.04 \\\/ 16.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"name\":\"Dracula Servers Tutorials\",\"description\":\"Dedicated Servers\",\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\",\"name\":\"Dracula Servers\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"width\":1625,\"height\":200,\"caption\":\"Dracula Servers\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/931f7fa8b2126ace6edfb82775e0ec0e\",\"name\":\"Vlad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"caption\":\"Vlad\"},\"description\":\"Tech Support\",\"sameAs\":[\"https:\\\/\\\/draculaservers.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Use FFmpeg on Ubuntu 18.04 \/ 16.04 - Dracula Servers Tutorials","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Use FFmpeg on Ubuntu 18.04 \/ 16.04 - Dracula Servers Tutorials","og_description":"FFmpeg is a very popular, cross-platform, free and open-source multimedia framework, used for transcoding multimedia files. FFmpeg is actually a collection of different projects for manipulating multimedia files. It&#8217;s not only used by users to handle media files, but it&#8217;s quite often used by many softwares, behind the scenes. You may have used it before [&hellip;]","og_url":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2018-12-25T14:45:29+00:00","article_modified_time":"2021-11-14T23:11:39+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png","type":"image\/png"}],"author":"Vlad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vlad","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/"},"author":{"name":"Vlad","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/931f7fa8b2126ace6edfb82775e0ec0e"},"headline":"How to Install and Use FFmpeg on Ubuntu 18.04 \/ 16.04","datePublished":"2018-12-25T14:45:29+00:00","dateModified":"2021-11-14T23:11:39+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/"},"wordCount":1505,"commentCount":0,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png","keywords":["FFmpeg","Media","Utilities"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/","url":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/","name":"How to Install and Use FFmpeg on Ubuntu 18.04 \/ 16.04 - Dracula Servers Tutorials","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png","datePublished":"2018-12-25T14:45:29+00:00","dateModified":"2021-11-14T23:11:39+00:00","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/How-to-Install-and-Use-FFmpeg-on-Ubuntu-18.04-_-16.04.png","width":1024,"height":512,"caption":"install_use_ffmpeg_ubuntu_18_04_16_04"},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/how-to-install-ffmpeg-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Install and Use FFmpeg on Ubuntu 18.04 \/ 16.04"}]},{"@type":"WebSite","@id":"https:\/\/draculaservers.com\/tutorials\/#website","url":"https:\/\/draculaservers.com\/tutorials\/","name":"Dracula Servers Tutorials","description":"Dedicated Servers","publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/draculaservers.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/draculaservers.com\/tutorials\/#organization","name":"Dracula Servers","url":"https:\/\/draculaservers.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","width":1625,"height":200,"caption":"Dracula Servers"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/931f7fa8b2126ace6edfb82775e0ec0e","name":"Vlad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","caption":"Vlad"},"description":"Tech Support","sameAs":["https:\/\/draculaservers.com"]}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=1129"}],"version-history":[{"count":1,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1129\/revisions"}],"predecessor-version":[{"id":2243,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1129\/revisions\/2243"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/1158"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}