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)
- Wget http://libsdl.org/release/SDL-1.2.15.tar.gz
- Tar zxvf SDL-1.2.15.tar.gz
- Cd SDL-1.2.15
- ./Configure -- prefix =/usr
- Make-j16
- 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