[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: working for wheezy-security until wheezy-lts starts



Moritz Muehlenhoff <jmm@inutil.org> writes:
> In general, all the libav transitions have been handled via the BTS, so patches
> should be found there. Some packages also ended up being incompatible/abandoned
> and were eventuall removed, so please also check whether any of the failing
> packages are actually still in jessie. Otherwise they should be EOLed.

I can't see any patches for opencv. Or should I jump straight to the
Jessie version?

Some problems are easy solved:

* Prefix CODEC_* macros with AV_
* CodecID --> AVCodecID
* Drop CODEC_ID_SNOW

However it looks like other problems are due to use of legacy APIs which
have been removed.

My current error/warning list is:

In file included from /<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function 'void CvCapture_FFMPEG::close()':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:457:31: error: 'av_close_input_file' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function 'bool CvCapture_FFMPEG::reopen()':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:488:27: error: 'av_close_input_file' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:491:52: error: 'av_open_input_file' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:492:27: error: 'av_find_stream_info' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:499:50: error: 'avcodec_thread_init' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:502:28: error: 'avcodec_open' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function 'bool CvCapture_FFMPEG::open(const char*)':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:529:63: error: 'av_open_input_file' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:534:33: error: 'av_find_stream_info' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:546:54: error: 'avcodec_thread_init' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:551:36: error: 'avcodec_open' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:555:23: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3211) [-Wdeprecated-declarations]
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:555:43: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3211) [-Wdeprecated-declarations]
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function 'double CvCapture_FFMPEG::getProperty(int)':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:734:74: error: 'AVStream' has no member named 'r_frame_rate'
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:770:34: error: 'AVStream' has no member named 'r_frame_rate'
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function 'bool CvCapture_FFMPEG::setProperty(int, double)':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:818:64: error: 'AVStream' has no member named 'r_frame_rate'
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In function 'AVFrame* icv_alloc_picture_FFMPEG(int, int, int, bool)':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1000:12: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3211) [-Wdeprecated-declarations]
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1000:32: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3211) [-Wdeprecated-declarations]
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In function 'AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, AVCodecID, int, int, int, double, int)':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1031:26: error: 'av_new_stream' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1117:21: error: 'AV_CODEC_FLAG_GLOBAL_HEADER' was not declared in this scope
In file included from /<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In function 'int icv_av_write_frame_FFMPEG(AVFormatContext*, AVStream*, uint8_t*, uint32_t, AVFrame*)':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1149:72: error: 'avcodec_encode_video' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function 'void CvVideoWriter_FFMPEG::close()':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1326:20: error: 'url_fclose' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function 'bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)':
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1439:35: error: 'av_set_parameters' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1443:35: error: 'dump_format' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1470:36: error: 'avcodec_open' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1507:42: error: 'URL_WRONLY' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1507:52: error: 'url_fopen' was not declared in this scope
/<<PKGBUILDDIR>>/modules/highgui/src/cap_ffmpeg_impl.hpp:1513:25: error: 'av_write_header' was not declared in this scope
make[3]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o] Error 1
-- 
Brian May <bam@debian.org>


Reply to: