FFMPEG Summary (1) ---- download and compile, ffmpeg Summary

Source: Internet
Author: User

FFMPEG Summary (1) ---- download and compile, ffmpeg Summary

I recently started to study FFMPEG. I have debugged FFMPEG before, but I have not recorded it. There are many articles on ffmpeg on the forum. I want to record my work.


The first step begins with compilation.


I. Download source code

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

Ii. compiling environment: ubuntu 12.04


1: Download SDL for compiling ffplay (if you do not want to compile player, you can not download this)

  1. Wget http://libsdl.org/release/SDL-1.2.15.tar.gz
  2. Tar zxvf SDL-1.2.15.tar.gz
  3. Cd SDL-1.2.15
  4. ./Configure -- prefix =/usr
  5. Make-j16
  6. Sudo make install

2: Download yasm

Wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz

Tar xzvf yasm-1.2.0.tar.gz

Cd yasm-1.2.0

./Configure

Make

Make install

3: H.264 video encoder (H264 database of vlc)

Git clone -- depth 1 git: // git.videolan.org/x264.git

Cd x264

./Configure-- Enable-static

Make


Iii. Start Compilation

./Configure -- enable-gpl -- enable-nonfree -- enable-pthreads -- enable-libfaac -- enable-libx264

Make-j4


Iv. Results


Generate ffmpeg, ffplay, and ffserver .. Here I used ffplay and ffmpeg.

1: play a video

Upload an a.mp4 File

./Ffplay a.mp4

2: Video Conversion

Convert MP4 to AVI

./Ffmpeg-I a.mp4 B. avi




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.