Deployment of FFmpeg and AMR to mp3 method

Source: Internet
Author: User

Introduction: FFmpeg is a set of open-source computer programs that can be used to record, transform, and convert digital audio and video into streams. More information please Baidu


Environmental Centos6.7

Compiler: GCC


Installation steps:


1 steps: Install dependent environment

Yum install-y yasm automake autoconf libtool gcc gcc-c++


2 steps: Download the source package,

Cd/usr/local/src

wget http://jaist.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz # #下载lame源码包

wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz #下载amr源码包, want to convert AMR format to MP3 need to have a compile and install these two source packages

wget http://ffmpeg.org/download.html # #下载最新版ffmpeg源码包, I'm under the ffmpeg-2.6.2.tar.bz2


3-Step: Unzip the build installation

TAR-ZXVF opencore-amr-0.1.2.tar.gz #解压opencore-amr

CD opencore-amr-0.1.2

./configure

Make

Make install #没出现什么错误继续解压安装lame


Cd.. /

TAR-ZXVF lame-3.99.5.tar.gz #解压lame

CD lame-3.99.5

./configure


Make


Make install




Cd.. /

TAR-JXVF ffmpeg-2.6.2.tar.bz2 #解压编译安装ffmpeg, here to add compile parameters

CD./ffmpeg-3.0.2


./configure--enable-libmp3lame--enable-libopencore-amrnb--ENABLE-LIBOPENCORE-AMRWB--enable-version3-- Enable-shared


Make


Make install

#这个在云主机编译安装需要十来分钟时间, it's faster when the virtual machine is compiled and installed



4 Steps:

echo "/usr/local/lib" >>/etc/ld.so.conf



5 Steps: Update the Ld.so.cache for the changes to take effect.

Ldconfig

   


Step 6: test

FFmpeg # # Output version information indicates successful installation


7 steps: Verify, upload an AMR format file with, format: Ffmpeg-i file name after the transcoding file name, as follows

Ffmpeg-i 1.amr 1.mp3










This article is from the "Lmlinux" blog, make sure to keep this source http://1121914451.blog.51cto.com/11002746/1785646

Deployment of FFmpeg and AMR to mp3 method

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.