编译FFmpeg时 x264错误 解决
之前终于搭建成功PHPmotion,不过有问题支持的视频格式太少了,不能支持3GP,而且没有声音,于是重新编译FFmpeg;编译x264的时候,直接去 ftp://ftp.videolan.org/pub/videolan/x264/snapshots/ 下了最新的源码包,结果编译FFmpeg的时候出现错误:
x264.c: In function ‘X264_init’:
x264.c:145: error: ‘struct <anonymous>’ has no member named ‘i_rf_constant’
x264.c:151: error: ‘struct <anonymous>’ has no member named ‘b_cbr’
make[1]: *** [x264.o] Error 1
据说是x264版本太新了,改变了之前的api,以至于出现错误
抱歉,暂停评论。