(2)libxvid库(x264库)

支持xvid x264,现在最流行的两种高质量的压缩格式,下载地址是:

http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz

解压后参考其readme文件,打开xvidcore/doc/INSTALL文件

基本上还是通常的三步曲,只不过configure文件换了个目录,在build\generic路径下

我们也看到库支持vs2008编译

./configure --prefix=/usr/local/arm --host=arm-none-linux-gnueabi

make

sudo make install

(3)FAAC库的编译安装(貌似不需要)

从网上下载的源码是faad2-2.0.tar,在Ubuntu上解压后,由于是DOS格式的,执行下面语句会出错

./bootstrap

我的执行步骤是

chmod +x bootstrap

dos2unix bootstrap

./bootstrap

报错:

# ./bootstrap

configure.in:38: warning: underquoted definition of MY_CHECK_TYPEDEF_FROM_INCLUDE

configure.in:38: run info '(automake)Extending aclocal'

configure.in:38: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal

./bootstrap: 5: ./bootstrap: libtoolize: not found

#

# apt-get install -y libtoolize

======================

./configure --prefix=/usr/local/arm --host=arm-none-linux-gnueabi

make

make install

然后

make

以root身份运行

make install

3 测试

将安装目录中的ffmpeg程序拷贝到设备上,测试从视频中截取一张图片

ffmpeg -i 12.mp4 -y -f image2 -ss 10.010 -t 0.001 -s 320x240 test.jpg

成功执行,说明ffmpeg交叉编译顺利完成。

莫听竹林打叶声,何妨吟啸且前行。竹杖芒鞋轻胜马,谁怕?一蓑烟雨任平生。

查看原文 >>
相关文章