Build problems with recent FFMpeg
Posted: Sun Jul 10, 2005 9:35 pm
I have the 20050701 tarball for FFmpeg (not ffmpeg-devel, which I cannot locate).
One issue (resolved) is that there is no include subdirectory. Instead, the .h files are in libavcodec and libavformat. I solved this issue by creating an include/ffmpeg directory and copying all the .h files into it.
A more serious problem is that zm 1.21.2 appears to have been built with an earlier version of FFmpeg. I get
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int, int, int)':
zm_mpeg.cpp:88: error: 'struct AVCodecContext' has no member named 'frame_rate'
zm_mpeg.cpp:89: error: 'struct AVCodecContext' has no member named 'frame_rate_base'
and indeed looking at the definition of this structure in avcodec.h those fields have either been removed or renamed.
What level of FFMpeg should I be using?
Thanks.
One issue (resolved) is that there is no include subdirectory. Instead, the .h files are in libavcodec and libavformat. I solved this issue by creating an include/ffmpeg directory and copying all the .h files into it.
A more serious problem is that zm 1.21.2 appears to have been built with an earlier version of FFmpeg. I get
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int, int, int)':
zm_mpeg.cpp:88: error: 'struct AVCodecContext' has no member named 'frame_rate'
zm_mpeg.cpp:89: error: 'struct AVCodecContext' has no member named 'frame_rate_base'
and indeed looking at the definition of this structure in avcodec.h those fields have either been removed or renamed.
What level of FFMpeg should I be using?
Thanks.