Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2472 closed defect (invalid)

ffmpeg support for libaacplus is broken

Reported by: DooMMasteR Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: libaacplus
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: any samplerate aside from 44.1 and 48kHz seems to fail and mess up the interface to libaacplus, also parametric stereo is never used (as far as I can check).
How to reproduce:

% dvgrab -noavc -f dv1 -| ffmpeg -v info -i - -map 0:0 -c:v:0 libx264 -strict -2 -acodec libaacplus -map 0:1 -ab 24k -ac 2 -ar 24000 -f mpegts udp://localhost:1234
ffmpeg version git-2013-04-15-41985cb
built on Apr 16 2013 00:57:06 with gcc 4.7 (Ubuntu/Linaro 4.7.2-23ubuntu2)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-libaacplus --enable-x11grab --cpu=native --arch=native --enable-libdc1394 --enable-swscale --enable-postproc --enable-zlib --enable-pthreads
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 56.101 /  3. 56.101
  libswscale      2.  2.100 /  2.  2.100  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, dv, from 'pipe:':
  Duration: N/A, start: 0.000000, bitrate: 28800 kb/s
    Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[libx264 @ 0x319a1d0] using SAR=16/15
[libx264 @ 0x319a1d0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[libx264 @ 0x319a1d0] profile High, level 3.0
libaacplus: bad aac setting: br:24000, AACch:1, AACsr:24000
[libaacplus @ 0x319b290] libaacplus doesn't support this output format!
Output #0, mpegts, to 'udp://localhost:1234':
    Stream #0:0: Video: h264, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=-1--1, 90k tbn, 25 tbc
    Stream #0:1: Audio: aac, 24000 Hz, stereo, s16, 24 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo -> libx264)
  Stream #0:1 -> #0:1 (pcm_s16le -> libaacplus)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

Change History (4)

comment:1 Changed 3 years ago by richardpl

  • Resolution set to invalid
  • Status changed from new to closed

It clearly says that it does not support that format. So I really do not see what is actual broken.
Feel free to clarify your bug report and reopen it.

comment:2 Changed 3 years ago by cehoyos

  • Keywords codec parameters removed

comment:3 Changed 3 years ago by DooMMasteR

ähm what? if I do exports the line, then use aacplusenc and then mux it later, it is all fine

but when doing it directly in FFMPEG I get some dubious errors, marking stereo as mono and other stuff

Version 0, edited 3 years ago by DooMMasteR (next)

comment:4 Changed 3 years ago by richardpl

I tried what you said:
Converted flac to wav with sample rate 24000.
Run aacplusenc: "aacplusenc 1.wav out.aac 24000 s"
It gave me same error as ffmpeg.

Note: See TracTickets for help on using tickets.