1,lame下低点的版本,比如 lame-3.93.1
2,x264下载列表:ftp://ftp.videolan.org/pub/videolan/x264/snapshots [每天一个版本]
3,make版本要3.81以上:ftp://ftp.gnu.org/gnu/
4,今天在公司编译ffmpeg,结果./configure 正常,但是在make的时候出现了下面的错误,在网上寻找,居然找到了解决办法,特转过来作为自己的总结,方便日后查看

# 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


vi /usr/include/linux/videodev.h

查找rangelow, rangehigh;      /* Tuner range */这一行
把  ulong rangelow, rangehigh;      /* Tuner range */
改为:
     unsigned long rangelow, rangehigh;      /* Tuner range */

参考:
http://www.2hei.net/mt/2008/08/ffmpeg-3gp-install.html