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