{"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-08-30T18:18:09","modified_gmt":"2026-08-30T12:48:09","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 to install ffmpeg on ubuntu server.<\/p>\n<p>Let&#8217;s update all the repo&#8217;s on the host.<\/p>\n<pre>\r\napt-get update<\/pre>\n<p>&nbsp;<\/p>\n<p>Install the required package 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 a ffmpeg installation directory.<\/p>\n<pre>mkdir \/usr\/local\/src\/ffmpeg\r\n\r\ncd\u00a0\/usr\/local\/src\/ffmpeg<\/pre>\n<p>&nbsp;<\/p>\n<p>Download and install.<\/p>\n<pre>\r\n<span style=\"font-weight: 400;\">wget -O fdk-aac.zip https:\/\/github.com\/mstorsjo\/fdk-aac\/zipball\/master<\/span>\r\n\r\n<span style=\"font-weight: 400;\">unzip fdk-aac.zip<\/span>\r\n\r\n<span style=\"font-weight: 400;\">cd mstorsjo-fdk-aac*<\/span>\r\n\r\n<span style=\"font-weight: 400;\">autoreconf -fiv<\/span>\r\n\r\n<span style=\"font-weight: 400;\">.\/configure --prefix=\"$HOME\/ffmpeg_build\" --disable-shared<\/span>\r\n\r\n<span style=\"font-weight: 400;\">make<\/span>\r\n\r\n<span style=\"font-weight: 400;\">make install<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>Install libpvx package.<\/p>\n<pre><span style=\"font-weight: 400;\">wget http:\/\/webm.googlecode.com\/files\/libvpx-v1.3.0.tar.bz2<\/span>\r\n\r\n<span style=\"font-weight: 400;\">tar xjvf libvpx-v1.3.0.tar.bz2<\/span>\r\n\r\n<span style=\"font-weight: 400;\">cd libvpx-v1.3.0<\/span>\r\n\r\n<span style=\"font-weight: 400;\">PATH=\"$HOME\/bin:$PATH\" .\/configure --prefix=\"$HOME\/ffmpeg_build\" --disable-examples<\/span>\r\n\r\n<span style=\"font-weight: 400;\">PATH=\"$HOME\/bin:$PATH\" make<\/span>\r\n\r\n<span style=\"font-weight: 400;\">make install<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>Install 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>\r\n\r\n<span style=\"font-weight: 400;\">tar xzvf libogg-1.3.2.tar.gz<\/span>\r\n\r\n<span style=\"font-weight: 400;\">cd libogg-1.3.2<\/span>\r\n\r\n<span style=\"font-weight: 400;\">.\/configure --prefix=\"$HOME\/ffmpeg_build\" --disable-shared<\/span>\r\n\r\n<span style=\"font-weight: 400;\">make<\/span>\r\n\r\n<span style=\"font-weight: 400;\">make install<\/span><\/pre>\n<p>Install ffmpeg package.<\/p>\n<pre><span style=\"font-weight: 400;\">wget http:\/\/ffmpeg.org\/releases\/ffmpeg-snapshot.tar.bz2<\/span>\r\n\r\n<span style=\"font-weight: 400;\">tar xjvf ffmpeg-snapshot.tar.bz2<\/span>\r\n\r\n<span style=\"font-weight: 400;\">cd ffmpeg<\/span>\r\n\r\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>\r\n\r\n<span style=\"font-weight: 400;\">PATH=\"$HOME\/bin:$PATH\" make<\/span>\r\n\r\n<span style=\"font-weight: 400;\">make install<\/span><\/pre>\n<p>Copy the binary to executable path<\/p>\n<pre>cp \/usr\/local\/src\/ffmpeg \/usr\/sbin<\/pre>\n<p>&nbsp;<\/p>\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. The required dependencies are installed first, followed by the compilation and installation of the supporting libraries and FFmpeg. Once the binary is copied to the executable path, FFmpeg can be accessed and used for multimedia processing on the server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/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_feature_clip_id":0,"_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":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/636\/revisions"}],"predecessor-version":[{"id":11176,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/636\/revisions\/11176"}],"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}]}}