当前位置: 首页 > OpenSource > 正文

ffmpeg 安装常见问题的解决

网上广为流传的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 */

        

本文固定链接: https://www.2hei.net/2008/08/18/ffmpeg_3gp_install/ | 2hei.net

该日志由 u2 于2008年08月18日发表在 OpenSource 分类下,
原创文章转载请注明: ffmpeg 安装常见问题的解决 | 2hei.net
关键字:

报歉!评论已关闭.