[SOLVED] ffmpeg-7.0.2 woes: aegisub and ffms2
by kgha from LinuxQuestions.org on (#6PZ7B)
Noticed that aegisub needed recompiling after the ffmpeg upgrad in -current. However, build failed due to complaints about ffms2. So I tried to recompile ffms2, but:
Code:src/core/audiosource.cpp: In member function 'void FFMS_AudioSource::SetOutputFormat(const FFMS_ResampleOptions&)':
src/core/audiosource.cpp:209:95: error: 'av_get_channel_layout_nb_channels' was not declared in this scope
209 | per_sample(static_cast<AVSampleFormat>(opt.SampleFormat)) * av_get_channel_layout_nb_channels(opt.ChannelLayout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/audiosource.cpp:225:5: error: 'av_opt_set_channel_layout' was not declared in this scope; did you mean 'av_opt_set_chlayout'?
225 | av_opt_set_channel_layout(newContext.get(), "out_channel_layout", opt.ChannelLayout, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| av_opt_set_chlayout
src/core/audiosource.cpp: In member function 'void FFMS_AudioSource::OpenFile()':
src/core/audiosource.cpp:466:42: warning: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
466 | AVCodec *Codec = avcodec_find_decoder(FormatContext->streams[TrackNumber]->codecpar->codec_id);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const AVCodec*
make: *** [Makefile:716: src/core/audiosource.lo] Error 1(since this is not on a clean system, I don't want to post in the "SBo scripts not building on current" thread)
EDIT: built the latest ffms2-5.0 without glitches, now trying to recompile aegisub again, will see what happens...
EDIT2: after upgrading ffms2 to version 5.0 aegisub builds and runs just fine.
Code:src/core/audiosource.cpp: In member function 'void FFMS_AudioSource::SetOutputFormat(const FFMS_ResampleOptions&)':
src/core/audiosource.cpp:209:95: error: 'av_get_channel_layout_nb_channels' was not declared in this scope
209 | per_sample(static_cast<AVSampleFormat>(opt.SampleFormat)) * av_get_channel_layout_nb_channels(opt.ChannelLayout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/audiosource.cpp:225:5: error: 'av_opt_set_channel_layout' was not declared in this scope; did you mean 'av_opt_set_chlayout'?
225 | av_opt_set_channel_layout(newContext.get(), "out_channel_layout", opt.ChannelLayout, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| av_opt_set_chlayout
src/core/audiosource.cpp: In member function 'void FFMS_AudioSource::OpenFile()':
src/core/audiosource.cpp:466:42: warning: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
466 | AVCodec *Codec = avcodec_find_decoder(FormatContext->streams[TrackNumber]->codecpar->codec_id);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const AVCodec*
make: *** [Makefile:716: src/core/audiosource.lo] Error 1(since this is not on a clean system, I don't want to post in the "SBo scripts not building on current" thread)
EDIT: built the latest ffms2-5.0 without glitches, now trying to recompile aegisub again, will see what happens...
EDIT2: after upgrading ffms2 to version 5.0 aegisub builds and runs just fine.