dvdstyler won't build against latest ffmpeg-7.0.2
by kgha from LinuxQuestions.org on (#6PZ59)
Here's where the build goes awry:
Code:mediaenc_ffmpeg.cpp: In member function ibool wxFfmpegMediaEncoder::addVideoStream(int, VideoFormat, AspectRatio, int, bool)i:
mediaenc_ffmpeg.cpp:227:59: warning: iuint8_t* av_stream_new_side_data(AVStream*, AVPacketSideDataType, size_t)i is deprecated [-Wdeprecated-declarations]
227 | props = (AVCPBProperties*) av_stream_new_side_data(m_videoStm, AV_PKT_DATA_CPB_PROPERTIES, sizeof(*props));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from mediaenc_ffmpeg.cpp:29:
/usr/include/libavformat/avformat.h:2111:10: note: declared here
2111 | uint8_t *av_stream_new_side_data(AVStream *stream,
| ^~~~~~~~~~~~~~~~~~~~~~~
mediaenc_ffmpeg.cpp: In member function ibool wxFfmpegMediaEncoder::addAudioStream(int)i:
mediaenc_ffmpeg.cpp:300:12: error: iAVCodecContexti {aka istruct AVCodecContexti} has no member named ichannelsi
300 | c->channels = 2;
| ^~~~~~~~
mediaenc_ffmpeg.cpp:301:12: error: iAVCodecContexti {aka istruct AVCodecContexti} has no member named ichannel_layouti; did you mean ich_layouti?
301 | c->channel_layout = AV_CH_LAYOUT_STEREO;
| ^~~~~~~~~~~~~~
| ch_layout
mediaenc_ffmpeg.cpp:321:23: error: istruct AVFramei has no member named ichannel_layouti; did you mean ich_layouti?
321 | m_audioFrame->channel_layout = c->channel_layout;
| ^~~~~~~~~~~~~~
| ch_layout
mediaenc_ffmpeg.cpp:321:43: error: iAVCodecContexti {aka istruct AVCodecContexti} has no member named ichannel_layouti; did you mean ich_layouti?
321 | m_audioFrame->channel_layout = c->channel_layout;
| ^~~~~~~~~~~~~~
| ch_layout
mediaenc_ffmpeg.cpp:331:32: error: iAVCodecContexti {aka istruct AVCodecContexti} has no member named ichannelsi
331 | for (int i = 0; i < c->channels; i++) {
| ^~~~~~~~
mediaenc_ffmpeg.cpp: In member function ibool wxFfmpegMediaEncoder::writeAudioFrame()i:
mediaenc_ffmpeg.cpp:498:23: warning: ivoid av_init_packet(AVPacket*)i is deprecated [-Wdeprecated-declarations]
498 | av_init_packet(&pkt);
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/libavcodec/codec_par.h:33,
from /usr/include/libavformat/avformat.h:312:
/usr/include/libavcodec/packet.h:653:6: note: declared here
653 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
mediaenc_ffmpeg.cpp: In member function ibool wxFfmpegMediaEncoder::writeVideoFrame()i:
mediaenc_ffmpeg.cpp:528:23: warning: ivoid av_init_packet(AVPacket*)i is deprecated [-Wdeprecated-declarations]
528 | av_init_packet(&pkt);
| ~~~~~~~~~~~~~~^~~~~~
/usr/include/libavcodec/packet.h:653:6: note: declared here
653 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
make[2]: *** [Makefile:699: mediaenc_ffmpeg.o] Error 1
make[2]: Leaving directory '/home/kgha/Downloads/DVDStyler-3.3b3/src'
make[1]: *** [Makefile:733: all-recursive] Error 1
make[1]: Leaving directory '/home/kgha/Downloads/DVDStyler-3.3b3/src'
make: *** [Makefile:469: all-recursive] Error 1
Code:mediaenc_ffmpeg.cpp: In member function ibool wxFfmpegMediaEncoder::addVideoStream(int, VideoFormat, AspectRatio, int, bool)i:
mediaenc_ffmpeg.cpp:227:59: warning: iuint8_t* av_stream_new_side_data(AVStream*, AVPacketSideDataType, size_t)i is deprecated [-Wdeprecated-declarations]
227 | props = (AVCPBProperties*) av_stream_new_side_data(m_videoStm, AV_PKT_DATA_CPB_PROPERTIES, sizeof(*props));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from mediaenc_ffmpeg.cpp:29:
/usr/include/libavformat/avformat.h:2111:10: note: declared here
2111 | uint8_t *av_stream_new_side_data(AVStream *stream,
| ^~~~~~~~~~~~~~~~~~~~~~~
mediaenc_ffmpeg.cpp: In member function ibool wxFfmpegMediaEncoder::addAudioStream(int)i:
mediaenc_ffmpeg.cpp:300:12: error: iAVCodecContexti {aka istruct AVCodecContexti} has no member named ichannelsi
300 | c->channels = 2;
| ^~~~~~~~
mediaenc_ffmpeg.cpp:301:12: error: iAVCodecContexti {aka istruct AVCodecContexti} has no member named ichannel_layouti; did you mean ich_layouti?
301 | c->channel_layout = AV_CH_LAYOUT_STEREO;
| ^~~~~~~~~~~~~~
| ch_layout
mediaenc_ffmpeg.cpp:321:23: error: istruct AVFramei has no member named ichannel_layouti; did you mean ich_layouti?
321 | m_audioFrame->channel_layout = c->channel_layout;
| ^~~~~~~~~~~~~~
| ch_layout
mediaenc_ffmpeg.cpp:321:43: error: iAVCodecContexti {aka istruct AVCodecContexti} has no member named ichannel_layouti; did you mean ich_layouti?
321 | m_audioFrame->channel_layout = c->channel_layout;
| ^~~~~~~~~~~~~~
| ch_layout
mediaenc_ffmpeg.cpp:331:32: error: iAVCodecContexti {aka istruct AVCodecContexti} has no member named ichannelsi
331 | for (int i = 0; i < c->channels; i++) {
| ^~~~~~~~
mediaenc_ffmpeg.cpp: In member function ibool wxFfmpegMediaEncoder::writeAudioFrame()i:
mediaenc_ffmpeg.cpp:498:23: warning: ivoid av_init_packet(AVPacket*)i is deprecated [-Wdeprecated-declarations]
498 | av_init_packet(&pkt);
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/libavcodec/codec_par.h:33,
from /usr/include/libavformat/avformat.h:312:
/usr/include/libavcodec/packet.h:653:6: note: declared here
653 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
mediaenc_ffmpeg.cpp: In member function ibool wxFfmpegMediaEncoder::writeVideoFrame()i:
mediaenc_ffmpeg.cpp:528:23: warning: ivoid av_init_packet(AVPacket*)i is deprecated [-Wdeprecated-declarations]
528 | av_init_packet(&pkt);
| ~~~~~~~~~~~~~~^~~~~~
/usr/include/libavcodec/packet.h:653:6: note: declared here
653 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
make[2]: *** [Makefile:699: mediaenc_ffmpeg.o] Error 1
make[2]: Leaving directory '/home/kgha/Downloads/DVDStyler-3.3b3/src'
make[1]: *** [Makefile:733: all-recursive] Error 1
make[1]: Leaving directory '/home/kgha/Downloads/DVDStyler-3.3b3/src'
make: *** [Makefile:469: all-recursive] Error 1