Compile ffmpeg in Ubuntu12.04

Source: Internet
Author: User
Recently I want to learn about ffmpeg, install the Virtual Machine VMware in Windows, and then install Ubuntu12.04LTS in the virtual machine. 1. Install git. Run the sudoapt-getinstallgit-core2 on the command line and download the latest ffmpeg version. Gitclonegit: // source.ffmpeg.org/ffmpeg.gitffmpeg3.pdf

Recently I want to learn about ffmpeg, install the Virtual Machine VMware in Windows, and then install Ubuntu 12.0 4LTS in the virtual machine.

1. Install git. Run sudo apt-get install git-core in the command line.

2. download the latest ffmpeg version. Git clone git: // source.ffmpeg.org/ffmpeg.git ffmpeg

3. Go to the ffmpeg directory and execute./configure. At this time, the system may prompt that there is no yasm and compilation is not allowed. You can download and install yasm, and sudo apt-get install yasm can also be executed. /When configure is added, the parameter-disable-yasm is directly executed. /configure-> make install; the compiled file is put under u sr/local/bin. If you want to change the installation address, you can add the parameter -- prefix = PREFIX when executing configure.

To specify a directory

4. After you execute./configure, a config. h file is generated,

View # define CONFIG_FFPLAY 0 if it is 0, it indicates that ffplay cannot be compiled, generally because the SDL library is missing,

Sudo apt-get install libsdl1.2-dev; Use this command to install the SDL Library

5. Go back to step 3. After configure is executed, it takes a long time to execute make. For about 10 minutes, you can have a cup of tea and click Weibo.

6. If no error is reported, congratulations. Execute make install.

7. Try to use ffplay to play a video. Command: ffplay videopath

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.