{"id":636,"date":"2016-06-28T08:11:03","date_gmt":"2016-06-28T02:41:03","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=636"},"modified":"2026-09-12T12:32:29","modified_gmt":"2026-09-12T07:02:29","slug":"install-ffmepg-on-ubuntu-server","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/install-ffmepg-on-ubuntu-server\/","title":{"rendered":"How to Install FFmpeg on Ubuntu Server"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This post guides you through the process of installing FFmpeg on an Ubuntu server. FFmpeg is a powerful multimedia framework that can be used to record, convert, and stream audio and video files. The following steps explain how to install the required dependencies, download the necessary libraries, compile FFmpeg, and make the FFmpeg binary available from the executable path.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before proceeding with the installation, make sure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An Ubuntu server.<\/li>\n\n\n\n<li>Root or sudo access to the server.<\/li>\n\n\n\n<li>A stable internet connection.<\/li>\n\n\n\n<li>Sufficient disk space to download and compile the required packages.<\/li>\n\n\n\n<li>Basic knowledge of Linux commands.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n<p>This post guides you through installing FFmpeg on Ubuntu Server.<\/p>\n<p>Let&#8217;s update all the repos on the host.<\/p>\n<pre>apt-get update<\/pre>\n<p>Install the required packages using apt-get install.<\/p>\n<pre><span style=\"font-weight: 400;\">apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev\u00a0yasm <\/span><span style=\"line-height: 1.625;\">libx264-dev\u00a0<span style=\"font-weight: 400;\">unzip libopus-dev\u00a0<\/span><\/span><span style=\"line-height: 1.625;\">libmp3lame-dev<\/span><\/pre>\n<p>Create an FFmpeg installation directory.<\/p>\n<pre>mkdir \/usr\/local\/src\/ffmpeg\n\ncd\u00a0\/usr\/local\/src\/ffmpeg<\/pre>\n<p>Download and install.<\/p>\n<pre><span style=\"font-weight: 400;\">wget -O fdk-aac.zip https:\/\/github.com\/mstorsjo\/fdk-aac\/zipball\/master<\/span>\n\n<span style=\"font-weight: 400;\">unzip fdk-aac.zip<\/span>\n\n<span style=\"font-weight: 400;\">cd mstorsjo-fdk-aac*<\/span>\n\n<span style=\"font-weight: 400;\">autoreconf -fiv<\/span>\n\n<span style=\"font-weight: 400;\">.\/configure --prefix=\"$HOME\/ffmpeg_build\" --disable-shared<\/span>\n\n<span style=\"font-weight: 400;\">make<\/span>\n<span style=\"font-weight: 400;\">make install<\/span><\/pre>\n<p>Install the libpvx package.<\/p>\n<pre><span style=\"font-weight: 400;\">wget http:\/\/webm.googlecode.com\/files\/libvpx-v1.3.0.tar.bz2<\/span>\n\n<span style=\"font-weight: 400;\">tar xjvf libvpx-v1.3.0.tar.bz2<\/span>\n\n<span style=\"font-weight: 400;\">cd libvpx-v1.3.0<\/span>\n\n<span style=\"font-weight: 400;\">PATH=\"$HOME\/bin:$PATH\" .\/configure --prefix=\"$HOME\/ffmpeg_build\" --disable-examples<\/span>\n\n<span style=\"font-weight: 400;\">PATH=\"$HOME\/bin:$PATH\" make<\/span>\n\n<span style=\"font-weight: 400;\">make install<\/span><\/pre>\n<p>Install the libogg package.<\/p>\n<pre><span style=\"font-weight: 400;\">curl -O http:\/\/downloads.xiph.org\/releases\/ogg\/libogg-1.3.2.tar.gz<\/span>\n\n<span style=\"font-weight: 400;\">tar xzvf libogg-1.3.2.tar.gz<\/span>\n\n<span style=\"font-weight: 400;\">cd libogg-1.3.2<\/span>\n\n<span style=\"font-weight: 400;\">.\/configure --prefix=\"$HOME\/ffmpeg_build\" --disable-shared<\/span>\n\n<span style=\"font-weight: 400;\">make<\/span>\n<span style=\"font-weight: 400;\">make install<\/span><\/pre>\n<p>Install the ffmpeg package.<\/p>\n<pre><span style=\"font-weight: 400;\">wget http:\/\/ffmpeg.org\/releases\/ffmpeg-snapshot.tar.bz2<\/span>\n\n<span style=\"font-weight: 400;\">tar xjvf ffmpeg-snapshot.tar.bz2<\/span>\n\n<span style=\"font-weight: 400;\">cd ffmpeg<\/span>\n\n<span style=\"font-weight: 400;\">PATH=\"$HOME\/bin:$PATH\" PKG_CONFIG_PATH=\"$HOME\/ffmpeg_build\/lib\/pkgconfig\" .\/configure --prefix=\"$HOME\/ffmpeg_build\" --extra-cflags=\"-I$HOME\/ffmpeg_build\/include\" \u00a0--extra-ldflags=\"-L$HOME\/ffmpeg_build\/lib\" \u00a0--bindir=\"$HOME\/bin\" \u00a0--enable-gpl \u00a0--enable-libass \u00a0--enable-libfdk-aac \u00a0\u00a0--enable-libfreetype \u00a0--enable-libmp3lame \u00a0--enable-libopus \u00a0\u00a0--enable-libtheora \u00a0--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree<\/span>\n\n<span style=\"font-weight: 400;\">PATH=\"$HOME\/bin:$PATH\" make<\/span>\n\n<span style=\"font-weight: 400;\">make install<\/span><\/pre>\n<p>Copy the binary to the executable path<\/p>\n<pre>cp \/usr\/local\/src\/ffmpeg \/usr\/sbin<\/pre>\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">By following the above steps, you can install FFmpeg and its required libraries on an Ubuntu server. First, install the required dependencies, then compile and install the supporting libraries and FFmpeg. Once you copy the binary to the executable path, you can access and use FFmpeg for multimedia processing on the server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is FFmpeg?<\/strong><br>FFmpeg is a multimedia framework used to process, convert, record, and stream audio and video files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How do you check the FFmpeg version?<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ffmpeg -version<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How do you convert a video using FFmpeg?<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ffmpeg -i input.mp4 output.avi<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-avideo-youphptube-on-ubuntu-server\/\">How to Install AVideo\/YouPHPTube on Ubuntu Server<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to our experts<br><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for the right technology solution for your business?. Our experts can help with\u00a0web hosting, domain registration, DevOps and cloud, software development, web applications, mobile applications, and enterprise solutions. Get in touch with our team <a href=\"https:\/\/pheonixsolutions.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This post guides you through the process of installing FFmpeg on an Ubuntu server. FFmpeg is a powerful multimedia [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-636","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-ag","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=636"}],"version-history":[{"count":4,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/636\/revisions"}],"predecessor-version":[{"id":11706,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/636\/revisions\/11706"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}