[FFmpeg-trac] #566(undetermined:new): Encoding AAC stereo audio which starts silently to mpeg-ts causes 0-channel audio output.
FFmpeg
trac at avcodec.org
Mon Oct 17 17:56:20 CEST 2011
#566: Encoding AAC stereo audio which starts silently to mpeg-ts causes 0-channel
audio output.
-------------------------------------+-------------------------------------
Reporter: tungj | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by tungj):
Replying to [comment:1 cehoyos]:
> Is this also reproducible with the native aac encoder (and libvo-aacenc
and libaacplus)?
libvo-aacenc correctly outputs two channels; while libaacplus gives an
'bad aac setting: br:40000, AACch:1, AACsr:22050' error for these
particular rates. The [comment:2 native aac encoder] gave output with 0
channels.
This was with libvo-aacenc 0.1.1 from http://sourceforge.net/projects
/opencore-amr/files/vo-aacenc/vo-aacenc-0.1.1.tar.gz/download and
libaacplus-2.0.2.tar.gz from http://tipok.org.ua/node/17
libaacplus:
{{{
tungj at tungj-ffmpeg:~/bugreport/aacplus$ ffmpeg -y -i 'initialSilence.mp4'
-f mpegts -t 10 -acodec libaacplus -ab 40k -ar 22050 initialSilence.ts
ffmpeg version N-33724-gefb1ce2, Copyright (c) 2000-2011 the FFmpeg
developers
built on Oct 17 2011 16:30:42 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-
amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-
libxvid --enable-x11grab --enable-libaacplus --enable-libvo-aacenc
libavutil 51. 21. 0 / 51. 21. 0
libavcodec 53. 20. 1 / 53. 20. 1
libavformat 53. 16. 0 / 53. 16. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'initialSilence.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.16.0
Duration: 00:00:10.02, start: 0.000000, bitrate: 84 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
200x200, 5 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
s16, 72 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
[buffer @ 0x95e5620] w:200 h:200 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:
libaacplus: bad aac setting: br:40000, AACch:1, AACsr:22050
[libaacplus @ 0x95e5120] libaacplus doesn't support this output format!
Output #0, mpegts, to 'initialSilence.ts':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.16.0
Stream #0:0(und): Video: mpeg2video, yuv420p, 200x200, q=2-31, 200
kb/s, 90k tbn, 25 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0:1(und): Audio: aac, 22050 Hz, stereo, s16, 40 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
Stream mapping:
Stream #0.0 -> #0.0 (h264 -> mpeg2video)
Stream #0.1 -> #0.1 (aac -> libaacplus)
Error while opening encoder for output stream #0.1 - maybe incorrect
parameters such as bit_rate, rate, width or height
}}}
libvo-aacenc gives 2 channels as expected:
{{{
tungj at tungj-ffmpeg:~/bugreport/libvo_aacenc$ ffmpeg -y -i
'initialSilence.mp4' -f mpegts -t 10 -acodec libvo_aacenc -ab 40k -ar
22050 initialSilence.ts
ffmpeg version N-33724-gefb1ce2, Copyright (c) 2000-2011 the FFmpeg
developers
built on Oct 17 2011 16:30:42 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-
amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-
libxvid --enable-x11grab --enable-libaacplus --enable-libvo-aacenc
libavutil 51. 21. 0 / 51. 21. 0
libavcodec 53. 20. 1 / 53. 20. 1
libavformat 53. 16. 0 / 53. 16. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'initialSilence.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.16.0
Duration: 00:00:10.02, start: 0.000000, bitrate: 84 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
200x200, 5 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
s16, 72 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
[buffer @ 0x9653620] w:200 h:200 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:
[mpegts @ 0x96536e0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt
every 40 pkts
Output #0, mpegts, to 'initialSilence.ts':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.16.0
Stream #0:0(und): Video: mpeg2video, yuv420p, 200x200, q=2-31, 200
kb/s, 90k tbn, 25 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0:1(und): Audio: aac, 22050 Hz, stereo, s16, 40 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
Stream mapping:
Stream #0.0 -> #0.0 (h264 -> mpeg2video)
Stream #0.1 -> #0.1 (aac -> libvo_aacenc)
Press [q] to stop, [?] for help
frame= 250 fps= 0 q=2.0 Lsize= 214kB time=00:00:09.96 bitrate=
175.9kbits/s
video:124kB audio:50kB global headers:0kB muxing overhead 23.044944%
tungj at tungj-ffmpeg:~/bugreport/libvo_aacenc$ ffprobe output.mp4
ffprobe version N-33724-gefb1ce2, Copyright (c) 2007-2011 the FFmpeg
developers
built on Oct 17 2011 16:30:42 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-
postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-
amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-
libxvid --enable-x11grab --enable-libaacplus --enable-libvo-aacenc
libavutil 51. 21. 0 / 51. 21. 0
libavcodec 53. 20. 1 / 53. 20. 1
libavformat 53. 16. 0 / 53. 16. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 6 / 2. 43. 6
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf53.16.0
Duration: 00:00:10.07, start: 0.000000, bitrate: 130 kb/s
Stream #0:0(und): Video: mpeg2video (Main) (mp4v / 0x7634706D),
yuv420p, 200x200 [SAR 1:1 DAR 1:1], 104857 kb/s, 25 fps, 25 tbr, 25 tbn,
50 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo,
s16, 25 kb/s
Metadata:
creation_time : 1970-01-01 00:00:00
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/566#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list