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

FFmpeg Channel Layout Changes Break Audio Output With video-sync=display-resample #13662

Closed
CounterPillow opened this issue Mar 7, 2024 · 3 comments · Fixed by #13665
Closed
Labels

Comments

@CounterPillow
Copy link
Contributor

Important Information

Provide following Information:

  • mpv version: mpv v0.37.0-514-g78447c4b91
  • Linux Distribution and Version: Arch btw, 6.7.8
  • Source of the mpv binary: mpv-build
  • Window Manager and version: kwin 6.0.1 (Wayland)
  • GPU model, driver and version: AMD Radeon Vega 10 Graphics, amdgpu, mesa 24.0.2

Reproduction steps

mpv --no-config --video-sync=display-resample https://www.youtube.com/watch?v=Wy6kZm-lC4g

Expected behavior

I hear the goose.

Actual behavior

No audio;

[ffmpeg] SWR: Input channel layout "" is invalid or unsupported.
[swresample] Cannot open Libavresample context.
[swresample] libswresample failed to initialize.
Cannot convert decoder/filter output to any format supported by the output.
Audio: no audio

in console.

Log file

https://overviewer.org/~pillow/up/4a35281ea6/penis.log

@CharlesMengCA
Copy link

Same error on window's build.

@Dudemanguy
Copy link
Member

This is because our usage of libswresample implicitly relied on the stuff ffmpeg just removed. The handling of it needs to be updated as well, namely the channel mappings.

Dudemanguy added a commit to Dudemanguy/mpv that referenced this issue Mar 8, 2024
These options were deprecated with the addition of the channel layout
API about a couple of years ago*. Unfortunately, we never saw the
deprecation messages so it went unnoticed until they were completely
removed with the recent major version bump. Fix this by setting
in_chlayout and out_chlayout instead if we have AV_CHANNEL_LAYOUT.

Fixes mpv-player#13662.

*: FFmpeg/FFmpeg@8a5896e
Dudemanguy added a commit to Dudemanguy/mpv that referenced this issue Mar 8, 2024
These options were deprecated with the addition of the channel layout
API about a couple of years ago*. Unfortunately, we never saw the
deprecation messages so it went unnoticed until they were completely
removed with the recent major version bump. Fix this by setting
in_chlayout and out_chlayout instead if we have AV_CHANNEL_LAYOUT.

Fixes mpv-player#13662.

*: FFmpeg/FFmpeg@8a5896e
Dudemanguy added a commit to Dudemanguy/mpv that referenced this issue Mar 8, 2024
These options were deprecated with the addition of the channel layout
API about a couple of years ago*. Unfortunately, we never saw the
deprecation messages so it went unnoticed until they were completely
removed with the recent major version bump. Fix this by setting
in_chlayout and out_chlayout instead if we have AV_CHANNEL_LAYOUT.

Fixes mpv-player#13662.

*: FFmpeg/FFmpeg@8a5896e
Dudemanguy added a commit to Dudemanguy/mpv that referenced this issue Mar 8, 2024
These options were deprecated with the addition of the channel layout
API about a couple of years ago*. Unfortunately, we never saw the
deprecation messages so it went unnoticed until they were completely
removed with the recent major version bump. Fix this by setting
in_chlayout and out_chlayout instead if we have AV_CHANNEL_LAYOUT.

Fixes mpv-player#13662.

*: FFmpeg/FFmpeg@8a5896e
Dudemanguy added a commit that referenced this issue Mar 8, 2024
These options were deprecated with the addition of the channel layout
API about a couple of years ago*. Unfortunately, we never saw the
deprecation messages so it went unnoticed until they were completely
removed with the recent major version bump. Fix this by setting
in_chlayout and out_chlayout instead if we have AV_CHANNEL_LAYOUT.

Fixes #13662.

*: FFmpeg/FFmpeg@8a5896e
@Hrxn
Copy link
Contributor

Hrxn commented Mar 9, 2024

Same error on window's build.

Yep..
FWIW, this is affected regardless of video-sync=display-resample on Win32 (cf. #13669)

Curious that these old channel layout options still worked on Linux without that option set, apparently.
Unless I've misunderstood this issue description here..

xrun1 pushed a commit to xrun1/mpv-svp-fix that referenced this issue Mar 12, 2024
These options were deprecated with the addition of the channel layout
API about a couple of years ago*. Unfortunately, we never saw the
deprecation messages so it went unnoticed until they were completely
removed with the recent major version bump. Fix this by setting
in_chlayout and out_chlayout instead if we have AV_CHANNEL_LAYOUT.

Fixes mpv-player#13662.

*: FFmpeg/FFmpeg@8a5896e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants