One of the fms2 streaming media servers in Linux-FFMPEG Installation

Source: Internet
Author: User
I have been in contact with fms2 for some time. Some time ago I tried playing with a Streaming Media Server. The functions include video conversion (convert all formats to FLV), video playback, and video recording, although not perfect
There are many defects, but the basic functions are also available. I have no retained here, so I will make public all the source code and learning experience. On the one hand, I hope that experts can help me solve several problems in it. On the other hand, I also hope that
It can be helpful to new users and avoid detours. Some of the content in it is not original, but is expressed simply and more systematically by referring to others' documents and combining their own experiences.

To use fms2 as a streaming media server, you must use two tools to convert video files in other formats to FLV. They are FFMPEG and mencoder,
FFmpeg is mainly responsible for converting various formats except RM, rmvb, and wmv9 to FLV, while mencoder converts RM, rmvb, and wmv9
FLV. Here we will first talk about the installation of FFMPEG:

Required software packages include FFMPEG, lame, Ogg Vorbis, NASM, x264, Xvid, libdts, faac, faad2, and 3GP.

1, FFMPEG, download FFMPEG, unzip: Tar jxvf ffmpeg-checkout-20070130.tar.bz2

2. Lame, download lame, install:./configure -- prefix =/usr -- enable-shared, make, make install

3. Ogg Vorbis, which comes with a general RedHat and does not need to be downloaded. You can check whether/usr/lib/libvorbis. A is absent. If not, you can run Yum install or apt-Get install.

4. NASM, download NASM, install: rpm-IVH nasm-0.98.39-1.i386.rpm

5. Download x264 and install:./configure -- prefix =/usr -- enable-shared, make, make install.

6. XviD, download Xvid, install:./configure -- prefix =/usr -- enable-shared, make, make install

7. Download libdts and install:./configure -- prefix =/usr -- enable-shared, make, make install

8. faac. Download faac and install:./configure -- prefix =/usr -- enable-shared, make, make install.

9. faad2, download faad2, install:./configure -- prefix =/usr -- enable-shared, make, make install

10. 3GP, including two packages: Download amrwb_float and download amr_float,
Install: unzip the FFMPEG source package, go to the ffmpeg-checkout-20070130/libavcodec/, create two new directories
Amrwb_float and amr_float, decompress the two packages, copy all the files in amrwb_float to amrwb_float, and
Copy all amr_float files to amr_float

Now you can compile and install FFMPEG,

./Configuration -- enable-GPL -- enable-shared -- enable-mp3lame
-- Enable-amr_nb -- enable-amr_wb -- enable-amr_if2 -- enable-libogg
-- Enable-Vorbis -- enable-Xvid -- enable-a52 -- enable-a52bin
-- Enable-faadbin -- enable-DTS -- enable-PP -- enable-faad -- enable-faac
-- Enable-x264 -- enable-pthreads -- disable-ffserver
-- Disable-ffplay -- prefix =/usr -- extra-cflags =-I/local/include
-- Extra-ldflags =-L/local/lib

Make

Make install

Related Article

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.