I am trying to build the next branch (not exactly sure if that is stable or not) but that is what the wiki says
- Code: Select all
Scanning dependencies of target osgdb_ffmpeg
[ 85%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegClocks.o
[ 85%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o
[ 86%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o
[ 86%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderVideo.o
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp: In member function 'void osgFFmpeg::FFmpegDecoderVideo::open(AVStream*)':
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:74:46: error: 'PIX_FMT_YUVA420P' was not declared in this scope
m_alpha_channel = (m_context->pix_fmt == PIX_FMT_YUVA420P);
^~~~~~~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:74:46: note: suggested alternative: 'AV_PIX_FMT_YUVA420P'
m_alpha_channel = (m_context->pix_fmt == PIX_FMT_YUVA420P);
^~~~~~~~~~~~~~~~
AV_PIX_FMT_YUVA420P
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:98:19: error: 'avcodec_alloc_frame' was not declared in this scope
m_frame.reset(avcodec_alloc_frame());
^~~~~~~~~~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:98:19: note: suggested alternative: 'avcodec_send_frame'
m_frame.reset(avcodec_alloc_frame());
^~~~~~~~~~~~~~~~~~~
avcodec_send_frame
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:102:48: error: 'PIX_FMT_RGB24' was not declared in this scope
m_buffer_rgba[0].resize(avpicture_get_size(PIX_FMT_RGB24, width(), height()));
^~~~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:102:48: note: suggested alternative: 'AV_PIX_FMT_RGB24'
m_buffer_rgba[0].resize(avpicture_get_size(PIX_FMT_RGB24, width(), height()));
^~~~~~~~~~~~~
AV_PIX_FMT_RGB24
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:110:16: error: 'AVCodecContext' {aka 'struct AVCodecContext'} has no member named 'get_buffer'; did you mean 'get_buffer2'?
m_context->get_buffer = getBuffer;
^~~~~~~~~~
get_buffer2
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:111:16: error: 'AVCodecContext' {aka 'struct AVCodecContext'} has no member named 'release_buffer'; did you mean 'get_buffer2'?
m_context->release_buffer = releaseBuffer;
^~~~~~~~~~~~~~
get_buffer2
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp: In member function 'int osgFFmpeg::FFmpegDecoderVideo::convert(AVPicture*, int, AVPicture*, int, int, int)':
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:270:64: error: 'PixelFormat' was not declared in this scope
m_swscale_ctx = sws_getContext(src_width, src_height, (PixelFormat) src_pix_fmt,
^~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:270:64: note: suggested alternative: 'AVPixelFormat'
m_swscale_ctx = sws_getContext(src_width, src_height, (PixelFormat) src_pix_fmt,
^~~~~~~~~~~
AVPixelFormat
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp: In member function 'void osgFFmpeg::FFmpegDecoderVideo::publishFrame(double, bool)':
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:318:92: error: 'PIX_FMT_RGB24' was not declared in this scope
avpicture_fill((AVPicture *) (m_frame_rgba).get(), &(m_buffer_rgba[m_writeBuffer])[0], PIX_FMT_RGB24, width(), height());
^~~~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:318:92: note: suggested alternative: 'AV_PIX_FMT_RGB24'
avpicture_fill((AVPicture *) (m_frame_rgba).get(), &(m_buffer_rgba[m_writeBuffer])[0], PIX_FMT_RGB24, width(), height());
^~~~~~~~~~~~~
AV_PIX_FMT_RGB24
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:322:31: error: 'PIX_FMT_YUVA420P' was not declared in this scope
if (m_context->pix_fmt == PIX_FMT_YUVA420P)
^~~~~~~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:322:31: note: suggested alternative: 'AV_PIX_FMT_YUVA420P'
if (m_context->pix_fmt == PIX_FMT_YUVA420P)
^~~~~~~~~~~~~~~~
AV_PIX_FMT_YUVA420P
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp: In member function 'void osgFFmpeg::FFmpegDecoderVideo::yuva420pToRgba(AVPicture*, AVPicture*, int, int)':
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:352:18: error: 'PIX_FMT_RGB24' was not declared in this scope
convert(dst, PIX_FMT_RGB24, src, m_context->pix_fmt, width, height);
^~~~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:352:18: note: suggested alternative: 'AV_PIX_FMT_RGB24'
convert(dst, PIX_FMT_RGB24, src, m_context->pix_fmt, width, height);
^~~~~~~~~~~~~
AV_PIX_FMT_RGB24
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp: In static member function 'static int osgFFmpeg::FFmpegDecoderVideo::getBuffer(AVCodecContext*, AVFrame*)':
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:376:24: error: 'avcodec_default_get_buffer' was not declared in this scope
const int result = avcodec_default_get_buffer(context, picture);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:376:24: note: suggested alternative: 'avcodec_default_get_buffer2'
const int result = avcodec_default_get_buffer(context, picture);
^~~~~~~~~~~~~~~~~~~~~~~~~~
avcodec_default_get_buffer2
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp: In static member function 'static void osgFFmpeg::FFmpegDecoderVideo::releaseBuffer(AVCodecContext*, AVFrame*)':
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:392:5: error: 'avcodec_default_release_buffer' was not declared in this scope
avcodec_default_release_buffer(context, picture);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gcb/code/flightgear/superbuild/build/src/OSG/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:392:5: note: suggested alternative: 'avcodec_default_get_buffer2'
avcodec_default_release_buffer(context, picture);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avcodec_default_get_buffer2
make[5]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/build.make:102: src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderVideo.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:6246: src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
[ 86%] Building CXX object src/osgWrappers/deprecated-dotosg/osgVolume/CMakeFiles/osgdb_deprecated_osgvolume.dir/VolumeTile.o
[ 86%] Linking CXX shared module ../../../../lib/osgPlugins-3.2.3/osgdb_deprecated_osgvolume.so
[ 86%] Built target osgdb_deprecated_osgvolume
make[3]: *** [Makefile:130: all] Error 2
make[2]: *** [CMakeFiles/OSG.dir/build.make:112: src/OSG-stamp/OSG-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/OSG.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
If this is not easy to understand/fix, is there a way to disable video decoding? i do not plan to need it at all.
appreciate any help. thanks!