System environment: Linux inbank-gz 2.6.24-16-generic #1 SMP Thu Apr 13:23:42 UTC i686 gnu/linux Ubuntu 8.04 Genuine Intel (R) CPU 1250 @ 1.73GHz * 2 1G Memory
Target: Can play the H264 format HD video with MPlayer |
Download related software Mplayer1.1 version (includes FFmpeg) All kinds of decoding package codes x264 Yasm + FAAC + Faad
You can download all the packages here http://down.51cto.com/data/1861780
|
2. Compiling related software
Copy files to the new/usr/local/lib/codecs directory after extracting all-20110131
Compiling yasm + FAAC + Faad ./configure && make && make install
Compiling x264
./configure--enable-shared && make && make install
|
3.mplayer command operation
If the command line operation is in the background, you must first tap the command export display=:0.0 Then Mplayer-vo x11-fixed-vo-geometry 0:0-quiet-slave-demuxer lavf fenggu.mpg |
4.FAQ
to first tap export display=:0.0
-
Error" /OPT/MP layer-1.0rc4/libavcodec/libx264.c:305:undefined reference to ' x264_encoder_headers ' Collect2:ld returned 1 Exit status Make: * * * [mplayer] Error 1
Add the appropriate library at compile time --extra-li bs= "-LX264-LFAAC"
|
This article is from the "Chengwei" blog, make sure to keep this source http://licheng1987.blog.51cto.com/9141096/1539020