Install FFMPEG in Ubuntu server9.04

Source: Internet
Author: User

Previously, "Install FFMPEG in Ubuntu to support 3GP format" was installed in Ubuntu server8.04. With the upgrade of Ubuntu and the effectiveness of some libraries, there will be various errors during the installation process. Now I will refer to the article on installing FFMPEG in Ubuntu server9.04Article(From http://marshal.easymorse.com/archives/1635)

The Installation Steps mainly refer to fakeoutdoorsman's two posts:

    • Howto: install and use the latest FFMPEG and x264
    • Convert DVD to 3GP with FFMPEG?

In fact, the basic idea is to install libamrnb and libarmrwb libraries, re-compile FFMPEG, and open the options of these two libraries during compilation.

First, clear the following packages:

   Sudo Apt-Get purge FFMPEG x264 libx264-Dev

Then install the required tools and libraries for compilation:

 

Sudo Apt - Get install build - Essential subversion git - Core checkinstall yasm texi2html libfaac - Dev libfaad - Dev libmp 3lame - Dev libsdl1. 2 - Dev libtheora - Dev libx11 - Dev libxvidcore4 - Dev zlib1g - Dev

 

The following describes how to install libamrnb and libarmrwb. This is required in the 3GP format. The steps found in the documentation are generally installation:

   Sudo Apt-Get install libamrnb-Dev libamrwb-Dev

This requires the medibuntu source, because these two libraries are not open. For the setting method, see:

Https://help.ubuntu.com/community/Medibuntu

However, from a specific version of FFMPEG, the related implementations of opencore-AMR have been used to replace these two non-open libraries. See what diego biurrun said in the email list:

Http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-June/070819.html

The opencore-Amr library has been included in the Ubuntu 9.10 Library (released in 13 days). It can be seen here:

Http://packages.ubuntu.com/search? Suite = karmic & arch = i386 & searchon = names & KEYWORDS = libopencore

If Ubuntu 9.10 is released, you can install it as follows:

 

Sudo Apt - Get install libopencore - Amrnb - Dev libopencore - Amrwb - Dev

 

However, no versions earlier than 9.04 can be compiled and installed by yourself. You need to download opencore-AmrSource code:

Http://sourceforge.net/projects/opencore-amr/

Decompress and compile:

. / Configure
Make
Make install

Then, compile and install the x264 Library:

Git clone git: // Git.videolan.org/x264.git
CD x264
. / Configure
Make
Sudo checkinstall -- fstrans = No -- install = Yes -- pkgname = X264 -- pkgversion" 1 : 0 . SVN 'date + % Y % M % D' - 0 . 0ubuntu1 ″- Default

Compile and install FFMPEG:

Code
SVN checkout SVN: // Svn.ffmpeg.org/ffmpeg/trunk FFMPEG
CD FFMPEG
. / Configure -- enable - GPL -- enable - Nonfree -- enable - Pthreads -- enable - Libfaac -- enable - Libfaad -- enable - Libmp 3lame -- enable - Libtheora -- enable - Libx264 -- enable - Libxvid -- enable - X11grab -- enable - Libopencore - Amrnb -- enable - Libopencore - Amrwb -- enable - Libopencore - Amrnb -- enable - Version3
Make
Sudo checkinstall -- fstrans = No -- install = Yes -- pkgname = FFmpeg -- pkgversion" 3 : 0 . SVN 'date + % Y % M % D' - 12ubuntu3 ″- Default

After the installation is successful, you can convert the format into a 3GP file using a command similar to the following:

 

FFmpeg - I input. Avi - Y - B 20   - S sqcif - R 10   - Acodec amr_wb - AB 23.85   - AC 1   - Ar 16000 Out.3gp

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.