Install FFmpeg under Linux

Source: Internet
Author: User
Tags bz2

1, official website download: http://ffmpeg.org/download.html

2, decompression. tar.bz2 bag TAR-JXVF xx.tar.bz2

3, because the official website only provide source code, so need to compile into the FFmpeg directory./configure--enable-shared--disable-yasm--prefix=/usr/local/ffmpeg (Yasm is a compilation of dependencies You can choose to compile after installation, or add--disable-yasm directly. For convenience I was directly added)

4. Make && make install

5. You need to add the dynamic library configuration after compiling and installing. vim/etc/ld.so.conf add/usr/local/ffmpeg/lib to the last row

Then execute the ldconfig to take effect, and of course there are other methods, such as modifying environment variables.

6. Test the first frame of the captured video.

Commands are the same as under Windows.

At this point, the environment is not a problem, the test is OK.

Install FFmpeg under Linux

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.