Имеется AAC-файлик со звуком 256 кбит/сек, взято если что отсюда - берем, эксперементируем
Запускаем наш любимый Audacious, сразу пускаю его из консоли, если что, audacious-plugins собран с aac, в качестве декодера в нем судя по гуглу используется faad2, вкидываем песенку, и нет песенки:
ERROR aac.cc:381 [play]: No valid frame header found.
ERROR util.cc:180 [audgui_simple_message]: Ошибка открытия file:///blahblahblah.aac:
Неизвестная ошибка воспроизведения
Окей, может все дело в плагине AAC для audacious, но у нас же есть всемогущий ffmpeg и плагин в audacious под него, отрубаем все плагины, оставляем только ffmpeg, получаем дикую простыню, причем начало уплывает куда-то вверх, вот кусок:
WARNING ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> Sample rate index in program config element does not match the sample rate index configured by the container.
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> Inconsistent channel configuration.
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> get_buffer() failed
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> channel element 3.11 is not allocated
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> channel element 3.7 is not allocated
WARNING ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> Sample rate index in program config element does not match the sample rate index configured by the container.
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> Inconsistent channel configuration.
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> get_buffer() failed
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> channel element 2.2 is not allocated
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> channel element 1.14 is not allocated
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> channel element 2.12 is not allocated
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> channel element 3.6 is not allocated
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> channel element 2.9 is not allocated
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> Reserved bit set.
ERROR ffaudio-core.cc:129 [aac]: <0x7f5e400042d0> Number of scalefactor bands in group (62) exceeds limit (47).
WARNING ffaudio-core.cc:129 [aac]: <0x7f5e40002850> Estimating duration from bitrate, this may be inaccurate
WARNING ffaudio-core.cc:129 [aac]: <0x7f5e40002850> Could not find codec parameters for stream 0 (Audio: aac (SSR), 5.0, fltp, 88 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
ERROR util.cc:180 [audgui_simple_message]: Ошибка открытия file:///blahblahblah.aac:
Недопустимый аудио формат
Замечу, что ffmpeg умеет несколько реализаций AAC, пришлось поиграться. Данный кусок с собранным vo-aacenc, faac и fdk. Изначально было без fdk, потом были эксперименты только с fdk, теперь собраны все 3 варианта. В какой-то раз сыпала ошибка вида
ffaudio-core.cc:522 [play]: decode_audio() failed, code -1094995529
пересобирать снова ffmpeg и смотреть что было включено в этом случае уже лениво, суть в том, что нихрена не работало тоже
Что же получается? Audacious не умеет AAC? окай, ставим qmmp, запускаем, и...
OutputALSA: setupMixer()
OutputALSA: setupMixer() success
OutputALSA: setupMixer()
OutputALSA: setupMixer() success
InputSource: using file transport
ReplayGain: disabled
QmmpPluginCache: loaded plugin libaac.so
QmmpAudioEngine: selected decoder: aac
DecoderAAC: unsupported AAC file
QmmpAudioEngine: invalid file format
StateHandler: Current state: NormalError; previous state: Stopped
OutputALSA: setupMixer()
OutputALSA: setupMixer() success
StateHandler: Current state: Stopped; previous state: NormalError
OutputALSA: setupMixer()
OutputALSA: setupMixer() success
ДАЛАДНА???
Ну может попробовать ffplay?
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '[Trap] - Aero Chord - Surface [Monstercat Release].aac':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
creation_time : 2015-04-22 05:29:29
Duration: 00:04:14.19, start: 0.000000, bitrate: 255 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 253 kb/s (default)
работает. mpv? работает. mplayer? работает (через ffmpeg -> faac) даже в гуе smplayer (с бэкендом mplayer).
Пока экспериментировал еще поймал ругню вида, мол, большой битрейт мне суешь (в Audacious с нативным AAC), сейчас не могу воспроизвести, оно видимо умеет только LC-AAC до 128 кбит/сек), еще была ругня на тэги в том же Audacious, тоже не могу воспроизвести.
UPD: ругня была на другой AAC-файл, Audacious, AAC-декодер faad2 (встроенный):
Unable to find ADTS syncword.
ERROR aac.cc:445 [play]: Unable to find ADTS syncword.
ERROR aac.cc:445 [play]: Unable to find ADTS syncword.
ERROR aac.cc:445 [play]: Unable to find ADTS syncword.
ERROR aac.cc:445 [play]: Unable to find ADTS syncword.
ERROR aac.cc:445 [play]: PCE shall be the first element in a frame.
ERROR aac.cc:445 [play]: Unexpected channel configuration change.
ERROR aac.cc:445 [play]: Unexpected channel configuration change.
ERROR aac.cc:445 [play]: Bitstream value not allowed by specification.
ERROR aac.cc:445 [play]: Channel coupling not yet implemented.
ERROR aac.cc:445 [play]: Channel coupling not yet implemented.
ERROR aac.cc:445 [play]: Channel coupling not yet implemented.
ERROR aac.cc:445 [play]: Invalid number of channels.
ERROR aac.cc:445 [play]: Bitstream value not allowed by specification.
mplayer через ffmpeg -> faac играет отлично.