FFmpeg install with libx264 (h264)

Source: Internet
Author: User
FFmpeg install with libx264 (h264)

The information for this is very sparse, so here is a summary of what I have found.

Install libx264

Get the libx264 package from here:

Http://www.videolan.org/developers/x264.html

Extracts the bz2 File

tar -xjvf /path/to/x264-snapshot-20080805-2245.tar.bz2

And now the useual

cd /path/to/x264-dir./configure --enable-sharedmakemake installldconfig

Get a nice error message:

[root@dev01 x264-snapshot-20080805-2245]# ./configureNo suitable assembler found.  Install 'yasm' to get MMX/SSE optimized code.If you really want to compile without asm, configure with --disable-asm.

You do want MMX/SSE at somepoint for the time being I am disabling this though (lack of time to find a valid RHEL source). So I added the disable ASM line.

Install FFMPEG

For this I use subversion.

cd /path/to/where/I/want/sourcessvn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpegcd /path/to/where/I/want/sources/ffmpeg./configure --enable-libx264 --enable-gpl --enable-sharedmakemake install

Et voila FFmpeg is now installed with libx264 (h264 ).

Error while loading shared libraries: libavdevice. so.52: cannot open shared object file: no such file or directory

To fix this:

vi /etc/ld.so.conf.d/custom-libs.conf

Add the line:/usr/local/lib

And run ldconfig.

Update:I am writing a full set of notes blog entry for installing FFMPEG with codecs on RHEL4

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.