ffmpeg 安装常见问题的解决

作者: 2hei 发表于2008年8月18日 22:18
版权声明: 可以转载, 转载时务必以超链形式标明文章原始出处和作者信息及版权声明
http://www.2hei.net/mt/2008/08/ffmpeg-3gp-install.html
网上广为流传的ffmpeg支持3gp解析的方法已经过时了,
amr-wb   amr-nb
比如下载26204-510.zip 和 26104-510.zip 文件到
libavcodec/amrwb_float/
libavcodec/amr_float/

现在升级后的正确安装方法是
到http://ftp.penguin.cz/pub/users/utx/amr/下载相关版本,来安装
或者到官网下载新版本
amr-wb
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-700.zip
amr-nb
http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-610.zip
单独进行安装即可

其他支持比较简单,不容易出错,这样ffmpeg的一切准备就绪,./configure 正常

# make
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/home/yujingtao/soft/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno       -c -o libavdevice/v4l.o libavdevice/v4l.c
In file included from libavdevice/v4l.c:32:
/usr/include/linux/videodev.h:55: error: syntax error before "ulong"
/usr/include/linux/videodev.h:71: error: syntax error before '}' token
libavdevice/v4l.c: In function `grab_read_header':
libavdevice/v4l.c:77: error: storage size of 'tuner' isn't known
libavdevice/v4l.c:141: error: invalid application of `sizeof' to incomplete type `video_tuner'
libavdevice/v4l.c:148: error: invalid application of `sizeof' to incomplete type `video_tuner'
libavdevice/v4l.c:77: warning: unused variable `tuner'
make: *** [libavdevice/v4l.o] 错误 1

试过了多种解决方法,比如添加
#include <sys/types.h>

但是还是有问题,经过不懈的努力终于找到问题所在:
vi /usr/include/linux/videodev.h

rangelow, rangehigh;      /* Tuner range */
把  ulong rangelow, rangehigh;      /* Tuner range */
改为:
     unsigned long rangelow, rangehigh;      /* Tuner range */

        


| | Comments (0) | TrackBacks (0)

发表一个评论

关于这篇文章

这篇文章由2hei2008年8月18日 22:18发布.

上一篇:二进制安装mysql的遇到的一些问题

下一篇:learn shell check_tcpconn.sh from nagios

回到首页 或者查看归档文章