Opened 7 days ago

Last modified 7 days ago

#7487 new defect

-out_channel_layout and -ac don't work in AutioToolBox encoder

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

Description

-out_channel_layout and -ac don't work in AutioToolBox? encoder

I use the binary of https://ffmpeg.zeranoe.com/builds/.

ffmpeg -f lavfi -i anullsrc=cl=octagonal -c:a aac_at -out_channel_layout stereo -f null -
ffmpeg version N-92132-g0a41a8bf29 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 32.100 / 58. 32.100
  libavformat    58. 18.104 / 58. 18.104
  libavdevice    58.  4.105 / 58.  4.105
  libavfilter     7. 33.100 /  7. 33.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'anullsrc=cl=octagonal':
  Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
    Stream #0:0: Audio: pcm_u8, 44100 Hz, octagonal, u8, 2822 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_u8 (native) -> aac (aac_at))
Press [q] to stop, [?] for help
[aac_at @ 0x7fd81e80b400] Bitrate 128000 not allowed; changing to 256000
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf58.18.104
    Stream #0:0: Audio: aac (aac_at), 44100 Hz, octagonal, u8, 128 kb/s
    Metadata:
      encoder         : Lavc58.32.100 aac_at
size=N/A time=00:05:01.69 bitrate=N/A speed=71.7x    
video:0kB audio:9429kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
ffmpeg -f lavfi -i anullsrc=cl=octagonal -c:a aac_at -ac 6 -f null -
ffmpeg version N-92132-g0a41a8bf29 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 32.100 / 58. 32.100
  libavformat    58. 18.104 / 58. 18.104
  libavdevice    58.  4.105 / 58.  4.105
  libavfilter     7. 33.100 /  7. 33.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'anullsrc=cl=octagonal':
  Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
    Stream #0:0: Audio: pcm_u8, 44100 Hz, octagonal, u8, 2822 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_u8 (native) -> aac (aac_at))
Press [q] to stop, [?] for help
[aac_at @ 0x7fce92800000] Specified channel layout '5.1' is not supported
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

But this work.

ffmpeg -f lavfi -i anullsrc=cl=5.1 -c:a aac_at -f null -
ffmpeg version N-92132-g0a41a8bf29 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 32.100 / 58. 32.100
  libavformat    58. 18.104 / 58. 18.104
  libavdevice    58.  4.105 / 58.  4.105
  libavfilter     7. 33.100 /  7. 33.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'anullsrc=cl=5.1':
  Duration: N/A, start: 0.000000, bitrate: 2116 kb/s
    Stream #0:0: Audio: pcm_u8, 44100 Hz, 5.1, u8, 2116 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_u8 (native) -> aac (aac_at))
Press [q] to stop, [?] for help
[aac_at @ 0x7fd0d5005600] Bitrate 128000 not allowed; changing to 160000
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf58.18.104
    Stream #0:0: Audio: aac (aac_at), 44100 Hz, 5.1(side), u8, 128 kb/s
    Metadata:
      encoder         : Lavc58.32.100 aac_at
size=N/A time=00:05:55.21 bitrate=N/A speed=93.3x    
video:0kB audio:6938kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Change History (2)

comment:1 Changed 7 days ago by Nock

This works, too.

ffmpeg -f lavfi -i anullsrc=cl=octagonal -c:a aac_at -af aresample=out_channel_layout=stereo -f null -
ffmpeg version N-92132-g0a41a8bf29 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 32.100 / 58. 32.100
  libavformat    58. 18.104 / 58. 18.104
  libavdevice    58.  4.105 / 58.  4.105
  libavfilter     7. 33.100 /  7. 33.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'anullsrc=cl=octagonal':
  Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
    Stream #0:0: Audio: pcm_u8, 44100 Hz, octagonal, u8, 2822 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_u8 (native) -> aac (aac_at))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf58.18.104
    Stream #0:0: Audio: aac (aac_at), 44100 Hz, stereo, u8, 128 kb/s
    Metadata:
      encoder         : Lavc58.32.100 aac_at
size=N/A time=01:07:40.19 bitrate=N/A speed= 224x    
video:0kB audio:63441kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown}}}

comment:2 Changed 7 days ago by cehoyos

  • Keywords audiotoolbox added
  • Version changed from unspecified to git-master
Note: See TracTickets for help on using tickets.