Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can someone support compiling with ffmpeg 7.0 which supports vvc/h.266 decoding? #312

Open
chencuber opened this issue Jul 26, 2024 · 1 comment

Comments

@chencuber
Copy link

There are a lot of errors compiling with ffmpeg 7.0 as follows:

316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc: In member function ‘void decord::AudioReader::HandleFrame(AVCodecContext*, AVFrame*)’:
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:232:99: error: ‘AVFrame’ {aka ‘struct AVFrame’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
#0 316.5 232 | int outNumChannels = av_get_channel_layout_nb_channels(mono ? AV_CH_LAYOUT_MONO : pFrame->channel_layout);
#0 316.5 | ^~~~~~~~~~~~~~
#0 316.5 | ch_layout
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:232:30: error: ‘av_get_channel_layout_nb_channels’ was not declared in this scope
#0 316.5 232 | int outNumChannels = av_get_channel_layout_nb_channels(mono ? AV_CH_LAYOUT_MONO : pFrame->channel_layout);
#0 316.5 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc: In member function ‘void decord::AudioReader::InitSWR(AVCodecContext*)’:
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:284:28: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
#0 316.5 284 | if (pCodecContext->channel_layout == 0) {
#0 316.5 | ^~~~~~~~~~~~~~
#0 316.5 | ch_layout
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:285:28: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
#0 316.5 285 | pCodecContext->channel_layout = av_get_default_channel_layout( pCodecContext->channels );
#0 316.5 | ^~~~~~~~~~~~~~
#0 316.5 | ch_layout
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:285:91: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channels’
#0 316.5 285 | pCodecContext->channel_layout = av_get_default_channel_layout( pCodecContext->channels );
#0 316.5 | ^~~~~~~~
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:285:45: error: ‘av_get_default_channel_layout’ was not declared in this scope
#0 316.5 285 | pCodecContext->channel_layout = av_get_default_channel_layout( pCodecContext->channels );
#0 316.5 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:287:83: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
#0 316.5 287 | av_opt_set_channel_layout(this->swr, "in_channel_layout", pCodecContext->channel_layout, 0);
#0 316.5 | ^~~~~~~~~~~~~~
#0 316.5 | ch_layout
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:287:9: error: ‘av_opt_set_channel_layout’ was not declared in this scope; did you mean ‘av_opt_set_chlayout’?
#0 316.5 287 | av_opt_set_channel_layout(this->swr, "in_channel_layout", pCodecContext->channel_layout, 0);
#0 316.5 | ^~~~~~~~~~~~~~~~~~~~~~~~~
#0 316.5 | av_opt_set_chlayout
#0 316.5 /home/RedVQA/docker/decord/src/audio/audio_reader.cc:288:110: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
#0 316.5 288 | av_opt_set_channel_layout(this->swr, "out_channel_layout", mono ? AV_CH_LAYOUT_MONO : pCodecContext->channel_layout, 0);
#0 316.5 | ^~~~~~~~~~~~~~
#0 316.5 | ch_layout
#0 316.7 make[2]: *** [CMakeFiles/decord.dir/build.make:63: CMakeFiles/decord.dir/src/audio/audio_interface.cc.o] Error 1
#0 316.7 make[2]: *** Waiting for unfinished jobs....
#0 316.7 make[2]: *** [CMakeFiles/decord.dir/build.make:76: CMakeFiles/decord.dir/src/audio/audio_reader.cc.o] Error 1
#0 319.6 make[1]: *** [CMakeFiles/Makefile2:161: CMakeFiles/decord.dir/all] Error 2
#0 319.6 make: *** [Makefile:130: all] Error 2

@chencuber chencuber changed the title Can some support compiling with ffmpeg 7.0 which supports vvc/h.266 encoding? Can someone support compiling with ffmpeg 7.0 which supports vvc/h.266 encoding? Jul 26, 2024
@chencuber chencuber changed the title Can someone support compiling with ffmpeg 7.0 which supports vvc/h.266 encoding? Can someone support compiling with ffmpeg 7.0 which supports vvc/h.266 decoding? Jul 26, 2024
@pedroeagle
Copy link

have you solved this? I'm facing similar problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants