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

Libopus does not encode 5.1ch(side) / data loss when encoding from 5.1 ch -> 5.1(side) ch #357

Open
solomoncyj opened this issue Jul 9, 2024 · 0 comments

Comments

@solomoncyj
Copy link

wehn encoding a file with 5.1(side) ch with the channel layout C L R Ls Rs LFE to normal 5.1ch L R C Lb Rb LFE via fmpeg, with the command

 ffmpeg -i out.dts -c:a libopus -b:a 160k  -af "channelmap=channel_layout=5.1(side)"  out.opus

the following errors are produced:

[libopus @ 0x561fbbfb0740] Invalid channel layout 5.1(side) for specified mapping family -1.
[aost#0:0/libopus @ 0x561fbbfb0480] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
Error while filtering: Invalid argument
[out#0/opus @ 0x561fbbfad6c0] Nothing was written into output file, because at least one of its streams received no packets.

if the following command is issued however, the encode would be successful, however, no sound would be played when playing the file in vlc. libopus should ensure that channels are properly mapped during transcoding

fmpeg -i out.dts -c:a libopus -b:a 160k -af "channelmap=channel_layout=5.1" out.opus
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

1 participant