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

Enforce eac3 to ac3 conversion is specified in the configuration #4909

Closed
edhelas opened this issue Sep 22, 2017 · 2 comments
Closed

Enforce eac3 to ac3 conversion is specified in the configuration #4909

edhelas opened this issue Sep 22, 2017 · 2 comments

Comments

@edhelas
Copy link

edhelas commented Sep 22, 2017

mpv version and platform

mpv 0.26.0 (C) 2000-2017 from Debian Testing repositories

Reproduction steps

audio-channels=2
audio-spdif=ac3,dts
af=scaletempo,lavcac3enc=yes:auto:3

Launch a video containing a eac3 soundtrack.

Expected behavior

Because eac3 is not put in audio-spdif, MPV should ask lavcac3enc to encode it in ac3 and then output it in SPDIF

Actual behavior

The eac3 soundtrack is actually downmixed to stereo.

Log file

Playing: file.mkv
 (+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
 (+) Audio --aid=1 --alang=eng (*) (eac3 6ch 48000Hz)
     Subs  --sid=1 --slang=eng (subrip)
AO: [pulse] 48000Hz stereo 2ch float
Using hardware decoding (vaapi).
VO: [opengl] 1920x1080 vaapi[nv12]
AV: 00:00:02 / 00:48:01 (0%) A-V:  0.000

Exiting... (Quit)

Having this feature could be really useful for people like me that have an amplifier that doesn't supports eac3 but only ac3.

@edhelas edhelas changed the title Enforce eac3… to ac3 conversion Enforce eac3 to ac3 conversion is specified in the configuration Sep 22, 2017
@ghost
Copy link

ghost commented Oct 17, 2017

audio-channels=2 will force codec downmix. Remove it and it should work.

@ghost ghost closed this as completed Oct 17, 2017
@ggogel
Copy link

ggogel commented Sep 10, 2020

I finally got it working with these settings

audio-spdif=ac3
af=lavcac3enc=yes:640:3

The audio channels shouldn't make any difference though, because AC3 is technically a surround format encoded in a stereo signal. I think the issue was caused by the auto bitrate.

This issue was closed.
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