#4698: Wrong channel layout for FLAC 3/1 channels on playback
---------------------------------+----------------------------------
Reporter: Mango | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: 2.6.3
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+----------------------------------
Summary of the bug:
The eac3to dev said this is an ffmpeg bug.
eac3to and ffmpeg both write correct channel layout tags to the FLAC when
converting from DTS-HDMA 3/1.
But ffmpeg 2.7 outputs this error while encoding :"Channel layout not
supported by Flac, output stream will have incorrect channel layout".
eac3to doesn't output such error and the dev said there is no reason to,
because this layout has been supported by FLAC for the past 9 years, since
since FLAC 1.1.3 (27-Nov-2006) changelog:
Encoder can now take WAVEFORMATEXTENSIBLE WAVE files as input; decoder
will output WAVEFORMATEXTENSIBLE WAVE files when necessary to conform to
the latest Microsoft specifications. Now properly supports AIFF and
WAVEFORMATEXTENSIBLE multichannel input, performing necessary channel
reordering both for encoding and decoding.
WAVEFORMATEXTENSIBLE channel mask is also saved to a tag on encoding
and restored on decoding for situations when there is no natural mapping
to FLAC channel assignments.
LAV filers and MPC-HC play this fine.
But kodi with ffmpeg 2.6.3 decodes a PCM 2/2 channels instead of 3/1. (as
said above, ffmpeg 2.7 writes the correct 3/1 channel tag, with Channel
positions: Front: L C R, Back: C).
FFMPEG should read this tag to properly playback a 3/1 channel FLAC. (this
may probably also concern some other non-default FLAC channel mappings).
How to reproduce:
Create a 3/1 channel FLAC with ffmpeg (tested 2.7) or eac3to. Channel
layout is written correctly by both.
Play back with an ffmpeg based player (tested 2.6.3). Channel layout on
playback is wrongly 2/2 PCM instead of 3/1.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4698>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac