[FFmpeg-trac] #9964(avcodec:new): ffplay: wrong channel mapping in decoded 5.1 ATRAC3plus stream
FFmpeg
trac at avcodec.org
Sat Oct 8 15:54:05 EEST 2022
#9964: ffplay: wrong channel mapping in decoded 5.1 ATRAC3plus stream
-------------------------------------+-------------------------------------
Reporter: ptalarbvorm | Type: defect
Status: new | Priority: normal
Component: avcodec | Version:
Keywords: atrac3plus, | unspecified
multichannel, channel-layout | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
When decoding a 5.1 atrac3plus stream (container = .WAV),
ffplay sends the last 3 channels to the wrong speakers:
the back-left channel is sent to the LFE speaker, the back-right channel
to the back-left speaker, and the LFE channel goes to the back-right
speaker.
I've uploaded an archive containing a test file and its uncompressed-PCM
source to MediaFire:
https://www.mediafire.com/file/qazbkif0xwf60fp/atrac3plus-
multichsample.7z/file
How to reproduce:
{{{
% ffplay ATRAC3plus-5p1.wav -autoexit
ffplay version N-108492-gb92e14147f-20221004 Copyright (c) 2003-2022 the
FFmpeg developers
built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32-
--arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3
--disable-debug --disable-w32threads --enable-pthreads --enabl
e-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-
libfribidi --enable-gmp --enable-lzma --enable-fontconfig -
-enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf
--disable-libxcb --disable-xlib --enable-amf --enable-liba
om --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-
libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cu
da-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-
libass --enable-libbluray --enable-libjxl --enable-libmp3la
me --enable-libopus --enable-librist --enable-libssh --enable-libtheora
--enable-libvpx --enable-libwebp --enable-lv2 --enable-l
ibmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libopenh264 --enable-libopenjpeg --enable-libopenmpt --enab
le-librav1e --enable-librubberband --enable-schannel --enable-sdl2
--enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-
libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-
libvidstab --enable-vulkan --enable-libshaderc --enable-
libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-
libxvid --enable-libzimg --enable-libzvbi --extra-cflags
=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-
ldexeflags= --extra-libs=-lgomp --extra-version=20221004
libavutil 57. 38.100 / 57. 38.100
libavcodec 59. 50.100 / 59. 50.100
libavformat 59. 34.100 / 59. 34.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 49.101 / 8. 49.101
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100
Input #0, wav, from 'ATRAC3plus-5p1.wav':= 0KB sq= 0B f=0/0
Duration: 00:00:05.84, bitrate: 517 kb/s
Stream #0:0: Audio: atrac3p, 48000 Hz, 5.1, fltp, 513 kb/s
5.82 M-A: -0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9964>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list