Skip to content

Fix deprecated/removed audio channel apis#147

Open
HO-COOH wants to merge 2 commits into
leandromoreira:masterfrom
HO-COOH:master
Open

Fix deprecated/removed audio channel apis#147
HO-COOH wants to merge 2 commits into
leandromoreira:masterfrom
HO-COOH:master

Conversation

@HO-COOH

@HO-COOH HO-COOH commented Mar 29, 2026

Copy link
Copy Markdown

This tutorial really helped me a lot, thanks. I am following along with the latest ffmpeg 8.1, and here are some code fix for the removed apis. This also closes #140

@leandromoreira

Copy link
Copy Markdown
Owner

thanks @HO-COOH I think we also must change the docker image, and maybe let it clear on documentation which version we're using, wdyt?

@leandromoreira

Copy link
Copy Markdown
Owner
[4](https://github.com/leandromoreira/ffmpeg-libav-tutorial/actions/runs/23700732682/job/69084070418?pr=147#step:3:35)
/files/0_hello_world.c: In function 'main':
/files/0_hello_world.c:123:82: error: 'AVCodecParameters' {aka 'struct AVCodecParameters'} has no member named 'ch_layout'; did you mean 'channel_layout'?
  123 |       logging("Audio Codec: %d channels, sample rate %d", pLocalCodecParameters->ch_layout.nb_channels, pLocalCodecParameters->sample_rate);
      |                                                                                  ^~~~~~~~~
      |                                                                                  channel_layout
      ````

@leandromoreira

Copy link
Copy Markdown
Owner

probably https://github.com/leandromoreira/ffmpeg-libav-tutorial/blob/master/Dockerfile#L19

@HO-COOH

HO-COOH commented Mar 30, 2026

Copy link
Copy Markdown
Author

thanks @HO-COOH I think we also must change the docker image, and maybe let it clear on documentation which version we're using, wdyt?

Yes that will be great. Please trigger the workflow, and if it success I will add some README about this

@leandromoreira

Copy link
Copy Markdown
Owner

I think I need to actually update Docker and push it, or use the local dockerfile

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

Successfully merging this pull request may close these issues.

pLocalCodecParameters->channel deprecated

2 participants