Opened 4 years ago

Closed 4 years ago

#4906 closed defect (worksforme)

Wrong channel mapping

Reported by: cgbug Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: flac
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Change History (3)

comment:1 Changed 4 years ago by cehoyos

Please add a simple ffmpeg command line that allows to reproduce the issue together with its complete, uncut console output to make this a valid ticket and please explain what is wrong with the output file.
If you want to report an issue that is only reproducible with ffplay please say so and add command line and complete, uncut console output but please understand that SDL does not support 7.1 afaict.

comment:2 Changed 4 years ago by cgbug

The files contain an audible description of the channels. So you can easily check if it is working on your system.

Command line:
ffplay -report surround-7-1-test.flac
ffplay version N-75746-g84b4998 Copyright (c) 2003-2015 the FFmpeg developers

built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 2.100 / 55. 2.100
libavcodec 57. 4.100 / 57. 4.100
libavformat 57. 3.100 / 57. 3.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 10.100 / 6. 10.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100

nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0

[flac @ 04d745c0] Format flac probed with size=2048 and score=50
[flac @ 04d745c0] Before avformat_find_stream_info() pos: 194 bytes read:32768 seeks:0
[flac @ 04d745c0] All info found
[flac @ 04d745c0] After avformat_find_stream_info() pos: 120832 bytes read:131072 seeks:0 frames:1
Input #0, flac, from 'surround-7-1-test.flac':

Metadata:

track : 1
TITLE : 7.1 Surround Test
DATE : 2015
ARTIST : Surround Test
COMMENTS : phoenixdigital

Duration: 00:00:36.09, start: 0.000000, bitrate: 1290 kb/s

Stream #0:0, 1, 1/44100: Audio: flac, 44100 Hz, 7.1, s16

detected 8 logical cores
[ffplay_abuffer @ 04e1ff40] Setting 'sample_rate' to value '44100'
[ffplay_abuffer @ 04e1ff40] Setting 'sample_fmt' to value 's16'
[ffplay_abuffer @ 04e1ff40] Setting 'channels' to value '8'
[ffplay_abuffer @ 04e1ff40] Setting 'time_base' to value '1/44100'
[ffplay_abuffer @ 04e1ff40] Setting 'channel_layout' to value '0x63f'
[ffplay_abuffer @ 04e1ff40] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x63f
[AVFilterGraph @ 04e1f9e0] query_formats: 2 queried, 3 merged, 0 already done, 0 delayed
SDL_OpenAudio (8 channels, 44100 Hz): 1 (mono) and 2 (stereo) channels supported
SDL_OpenAudio (6 channels, 44100 Hz): DirectSound? CreateSoundBuffer?: Invalid parameter
SDL_OpenAudio (4 channels, 44100 Hz): DirectSound? CreateSoundBuffer?: Invalid parameter
Audio frame changed from rate:44100 ch:8 fmt:s16 layout:7.1 serial:-1 to rate:44100 ch:8 fmt:s16 layout:7.1 serial:1
[ffplay_abuffer @ 06501d80] Setting 'sample_rate' to value '44100'
[ffplay_abuffer @ 06501d80] Setting 'sample_fmt' to value 's16'
[ffplay_abuffer @ 06501d80] Setting 'channels' to value '8'
[ffplay_abuffer @ 06501d80] Setting 'time_base' to value '1/44100'
[ffplay_abuffer @ 06501d80] Setting 'channel_layout' to value '0x63f'
[ffplay_abuffer @ 06501d80] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x63f
[ffplay_abuffersink @ 06501e00] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 04d7d920] query_formats: 2 queried, 1 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 06501ee0] [SWR @ 06510c60] Using s16p internally between filters
0.320377 0.000000 0.226541 0.000000 0.226541 0.000000 0.226541 0.000000
0.000000 0.320377 0.226541 0.000000 0.000000 0.226541 0.000000 0.226541
[auto-inserted resampler 0 @ 06501ee0] ch:8 chl:7.1 fmt:s16 r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz

comment:3 Changed 4 years ago by cehoyos

  • Keywords flac added
  • Resolution set to worksforme
  • Status changed from new to closed

I don't think there is a bug but please reopen this ticket if you can provide a ffmpeg (not ffplay) command line that allows to reproduce the issue together with its complete, uncut console output and an explanation why you think that the output is wrong. The explanation should not be I hear wrong channel descriptions but flac 1.3.1 produces different output than FFmpeg.

Note: See TracTickets for help on using tickets.