Opened 2 years ago

Last modified 19 months ago

#3361 new defect

aac_he mono not recogized (reported as stereo)

Reported by: blacktrash Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: aac regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

Channel count and channel layout for aac_he mono is always reported (decoded?) as stereo.

How to reproduce:

ffmpeg -i in.aiff -c:a libfdk_aac -profile:a aac_he -b:a 32k -ac 1 fdk-he-mono.m4a
ffmpeg version N-60230-gcfe282e Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 29 2014 14:17:03 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-network --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.101 / 55. 49.101
  libavformat    55. 28.101 / 55. 28.101
  libavdevice    55.  7.100 / 55.  7.100
  libavfilter     4.  1.101 /  4.  1.101
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, aiff, from 'in.aiff':
  Duration: 00:00:30.43, start: 0.000000, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, stereo, s16, 1411 kb/s
Output #0, ipod, to 'fdk-he-mono.m4a':
  Metadata:
    encoder         : Lavf55.28.101
    Stream #0:0: Audio: aac (libfdk_aac) (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, mono, s16, 32 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le -> libfdk_aac)
Press [q] to stop, [?] for help
size=     123kB time=00:00:30.44 bitrate=  33.0kbits/s
video:0kB audio:119kB subtitle:0 global headers:0kB muxing overhead 2.760628%
~/Music/Blacktrash$ ffprobe -show_streams fdk-he-mono.m4a 2>/dev/null | fgrep chan
channels=2
channel_layout=stereo

Mono in normal profile is recognized correctly:

ffmpeg -i in.aiff -c:a libfdk_aac -b:a 32k -ac 1 fdk-mono.m4a
ffmpeg version N-60230-gcfe282e Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 29 2014 14:17:03 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-network --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.101 / 55. 49.101
  libavformat    55. 28.101 / 55. 28.101
  libavdevice    55.  7.100 / 55.  7.100
  libavfilter     4.  1.101 /  4.  1.101
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, aiff, from 'in.aiff':
  Duration: 00:00:30.43, start: 0.000000, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, stereo, s16, 1411 kb/s
Output #0, ipod, to 'fdk-mono.m4a':
  Metadata:
    encoder         : Lavf55.28.101
    Stream #0:0: Audio: aac (libfdk_aac) (mp4a / 0x6134706D), 44100 Hz, mono, s16, 32 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le -> libfdk_aac)
Press [q] to stop, [?] for help
size=     125kB time=00:00:30.44 bitrate=  33.7kbits/s
video:0kB audio:119kB subtitle:0 global headers:0kB muxing overhead 4.902738%
ffprobe -show_streams fdk-mono.m4a 2>/dev/null | fgrep chan
channels=1
channel_layout=mono

I first believed this was a problem with fdk-aac, but a HE-AAC by iTunes yields the same:

$ ffprobe -show_streams itunes-he-mono.m4a 2>/dev/null | fgrep chan
channels=2
channel_layout=stereo

See also:
http://sourceforge.net/p/opencore-amr/mailman/message/31874638/
ff.
and:
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2014-January/019559.html

Note that profile is always diagnosed as unknown:

ffprobe -show_streams fdk-he-mono.m4a 2>/dev/null | fgrep profile
profile=unknown
ffprobe -show_streams fdk-mono.m4a 2>/dev/null | fgrep profile
profile=unknown
ffprobe -show_streams itunes-he-mono.m4a 2>/dev/null | fgrep profile
profile=unknown

Attachments (2)

fdk-he-mono.m4a (122.7 KB) - added by blacktrash 2 years ago.
aac_he mono created by ffmpeg + fdk-aac
test.ts (761.2 KB) - added by blacktrash 19 months ago.
aac_he mono

Download all attachments as: .zip

Change History (21)

comment:1 Changed 2 years ago by cehoyos

  • Keywords aac added

Please provide a short sample.

comment:2 Changed 2 years ago by blacktrash

Of the source or of the result? If the result, only the one created by ffmpeg/fdk-aac or also iTunes?

comment:3 Changed 2 years ago by cehoyos

A sample that is shown as "mono" in iTunes / QuickTime? but "stereo" by FFmpeg seems needed to me.

Of course it is *very* useful that you explained how the file was created that FFmpeg has a problem with (and it could be argued that we should do the work) but imo, a sample is generally needed for bug reports.

Changed 2 years ago by blacktrash

aac_he mono created by ffmpeg + fdk-aac

comment:4 Changed 2 years ago by blacktrash

Attached file is reported as mono by QuickTime?. You cannot import it into iTunes because for simplicity's sake it was not created with -signaling implicit which would open another can of worms, see: http://sourceforge.net/p/opencore-amr/mailman/message/31876971/ et al

comment:5 Changed 2 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords regression added
  • Priority changed from normal to important

Martin claims this is a libavcodec regression.

comment:6 follow-up: Changed 2 years ago by michael

This fixes it but breaks some reference aac bitstreams we have in fate

diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c
index 68448e6..e9b908d 100644
--- a/libavcodec/mpeg4audio.c
+++ b/libavcodec/mpeg4audio.c
@@ -142,6 +142,9 @@ int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf,
     //PS requires SBR
     if (!c->sbr)
         c->ps = 0;
+    if (c->sbr == 1 && c->ps == -1)
+        c->ps = 0;
+
     //Limit implicit PS to the HE-AACv2 Profile
     if ((c->ps == -1 && c->object_type != AOT_AAC_LC) || c->channels & ~0x01)
         c->ps = 0;

comment:7 in reply to: ↑ 6 Changed 2 years ago by blacktrash

Replying to michael:

This fixes it but breaks some reference aac bitstreams we have in fate

Are the streams in question aac_he_v2? If yes, the fix should probably contain an excluding conditional, as v2 cannot be mono, see: http://sourceforge.net/p/opencore-amr/mailman/message/31877351/

comment:8 Changed 2 years ago by michael

how do you detect v2 ?
if it requires decoding the whole stream that would be unpractical (for realtime streams for example)

See: fate-suite/aac/CT_DecoderCheck/sbr_bic-ps_i.3gp
for the file that does contain PS with similar header

comment:9 Changed 23 months ago by michael

is there any software that can detect that this is mono without (potentially) reading the whole file ?
also if this is a regression, with which version did it work ?

comment:10 Changed 23 months ago by cehoyos

If there is an issue, it is a regression since a2063901

comment:11 follow-up: Changed 19 months ago by michael

if theres no way to solve this except scanning the whole file then this is not really fixable and thus also not a bug and should be closed

comment:12 in reply to: ↑ 11 Changed 19 months ago by blacktrash

Replying to michael:

if theres no way to solve this except scanning the whole file then this is not really fixable and thus also not a bug and should be closed

Before closing it should be documented though, shouldn't it?

And: the original report is not about aac_he_v2, but aac_he.

comment:13 follow-up: Changed 19 months ago by blacktrash

With the fdk git HEAD and ffmpeg 7656c4c aac_he mono results

  1. are reported as profile=HE-AACv2
  2. ffplay'ing mpegts streams report [aac @ 0x7fab9a035800] ChannelElement 1.0 missing

where I guess 2. is a consequence of 1. because aac_he_v2 is indeed stereo only.

comment:14 in reply to: ↑ 13 ; follow-ups: Changed 19 months ago by cehoyos

Replying to blacktrash:

  1. ffplay'ing mpegts streams report [aac @ 0x7fab9a035800] ChannelElement 1.0 missing

Please provide command line and console output and a sample.

comment:15 in reply to: ↑ 14 Changed 19 months ago by blacktrash

Replying to cehoyos:

Replying to blacktrash:

  1. ffplay'ing mpegts streams report [aac @ 0x7fab9a035800] ChannelElement 1.0 missing

Please provide command line and console output and a sample.

Does not happen with mp4, but with mpegts:

$ ffmpeg -i BigBuckBunny_640x360.m4v -c:v copy -c:a libfdk_aac -profile:a aac_he -b:a 64k -ac 1 test.mp4
ffmpeg version N-67514-g7656c4c Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 10 2014 20:00:06 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'BigBuckBunny_640x360.m4v':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V M4A mp42isom
    creation_time   : 2008-06-03 05:23:28
    copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
    title           : Big Buck Bunny
    artist          : Peach Open Movie Team
    composer        : Sacha Goedegebure / Ton Roosendaal
    date            : 2008
  Duration: 00:09:56.46, start: 0.000000, bitrate: 1626 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2008-06-03 05:23:28
      handler_name    : Apple Sound Media Handler
    Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 640x360, 1495 kb/s, 24 fps, 24 tbr, 2400 tbn, 4800 tbc (default)
    Metadata:
      creation_time   : 2008-06-03 05:23:28
      handler_name    : Apple Video Media Handler
Output #0, mp4, to 'test.mp4':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V M4A mp42isom
    date            : 2008
    copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
    title           : Big Buck Bunny
    artist          : Peach Open Movie Team
    composer        : Sacha Goedegebure / Ton Roosendaal
    encoder         : Lavf56.12.103
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360, q=2-31, 1495 kb/s, 24 fps, 19200 tbn, 2400 tbc (default)
    Metadata:
      creation_time   : 2008-06-03 05:23:28
      handler_name    : Apple Video Media Handler
    Stream #0:1(eng): Audio: aac (libfdk_aac) (HE-AAC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 64 kb/s (default)
    Metadata:
      creation_time   : 2008-06-03 05:23:28
      handler_name    : Apple Sound Media Handler
      encoder         : Lavc56.12.100 libfdk_aac
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
frame=14316 fps=1979 q=-1.0 Lsize=  113804kB time=00:09:56.49 bitrate=1562.9kbits/s
video:108900kB audio:4661kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.214162%
$ ffprobe -v quiet -select_streams a -show_entries stream=profile test.mp4
[STREAM]
profile=HE-AAC
[/STREAM]
$ ffmpeg -i test.mp4 -c copy -bsf:v h264_mp4toannexb -map 0 test.ts
ffmpeg version N-67514-g7656c4c Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 10 2014 20:00:06 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Big Buck Bunny
    artist          : Peach Open Movie Team
    composer        : Sacha Goedegebure / Ton Roosendaal
    date            : 2008
    encoder         : Lavf56.12.103
    copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
  Duration: 00:09:56.59, start: 0.114694, bitrate: 1562 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 640x360, 1495 kb/s, 24 fps, 24 tbr, 19200 tbn, 38400 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, mpegts, to 'test.ts':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Big Buck Bunny
    artist          : Peach Open Movie Team
    composer        : Sacha Goedegebure / Ton Roosendaal
    date            : 2008
    copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
    encoder         : Lavf56.12.103
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 640x360, q=2-31, 1495 kb/s, 24 fps, 90k tbn, 19200 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 64 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=14316 fps=0.0 q=-1.0 Lsize=  124413kB time=00:09:56.61 bitrate=1708.3kbits/s
video:108879kB audio:4661kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.576361%
$ ffprobe -v quiet -select_streams a -show_entries stream=profile test.ts
[PROGRAM]
[STREAM]
profile=HE-AACv2
[/STREAM]
[/PROGRAM]
[STREAM]
profile=HE-AACv2
[/STREAM]
$ ffplay test.ts
ffplay version N-67514-g7656c4c Copyright (c) 2003-2014 the FFmpeg developers
  built on Nov 10 2014 20:00:06 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[h264 @ 0x7fd56a008800] non-existing SPS 0 referenced in buffering period
    Last message repeated 1 times
Input #0, mpegts, from 'test.ts':
  Duration: 00:09:56.61, start: 1.400000, bitrate: 1708 kb/s
  Program 1
    Metadata:
      service_name    : Big Buck Bunny
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m/smpte170m/bt709), 640x360, 24 fps, 24 tbr, 90k tbn, 180k tbc
    Stream #0:1[0x101](eng): Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 67 kb/s
[h264 @ 0x7fd56a80f200] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fd56a008800] non-existing SPS 0 referenced in buffering period
[aac @ 0x7fd56a01ba00] ChannelElement 1.0 missing
    Last message repeated 9 times
[aac @ 0x7fd56a01ba00] ChannelElement 1.0 missing sq=    0B f=0/0
[aac @ 0x7fd56a01ba00] ChannelElement 1.0 missing sq=    0B f=0/0
    Last message repeated 1 times
[aac @ 0x7fd56a01ba00] ChannelElement 1.0 missing sq=    0B f=0/0
    Last message repeated 1 times
[aac @ 0x7fd56a01ba00] ChannelElement 1.0 missing sq=    0B f=0/0
[aac @ 0x7fd56a01ba00] ChannelElement 1.0 missing sq=    0B f=0/0
# [... and so on ...]

comment:16 in reply to: ↑ 14 Changed 19 months ago by blacktrash

Replying to cehoyos:

Replying to blacktrash:

  1. ffplay'ing mpegts streams report [aac @ 0x7fab9a035800] ChannelElement 1.0 missing

Please provide command line and console output and a sample.

Or, without intermediate bsf step:

$ ffmpeg -i BigBuckBunny_640x360.m4v -c:v libx264 -c:a libfdk_aac -profile:a aac_he -b:a 64k -ac 1 test.ts
ffmpeg version N-67514-g7656c4c Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 10 2014 20:00:06 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'BigBuckBunny_640x360.m4v':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V M4A mp42isom
    creation_time   : 2008-06-03 05:23:28
    copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
    title           : Big Buck Bunny
    artist          : Peach Open Movie Team
    composer        : Sacha Goedegebure / Ton Roosendaal
    date            : 2008
  Duration: 00:09:56.46, start: 0.000000, bitrate: 1626 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2008-06-03 05:23:28
      handler_name    : Apple Sound Media Handler
    Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 640x360, 1495 kb/s, 24 fps, 24 tbr, 2400 tbn, 4800 tbc (default)
    Metadata:
      creation_time   : 2008-06-03 05:23:28
      handler_name    : Apple Video Media Handler
[libx264 @ 0x7fe66b800c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7fe66b800c00] profile High, level 3.0
Output #0, mpegts, to 'test.ts':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V M4A mp42isom
    date            : 2008
    copyright       : © 2008 Blender Foundation | www.bigbuckbunny.org
    title           : Big Buck Bunny
    artist          : Peach Open Movie Team
    composer        : Sacha Goedegebure / Ton Roosendaal
    encoder         : Lavf56.12.103
    Stream #0:0(eng): Video: h264 (libx264), yuv420p, 640x360, q=-1--1, 24 fps, 90k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2008-06-03 05:23:28
      handler_name    : Apple Video Media Handler
      encoder         : Lavc56.12.100 libx264
    Stream #0:1(eng): Audio: aac (libfdk_aac) (HE-AAC), 44100 Hz, mono, s16, 64 kb/s (default)
    Metadata:
      creation_time   : 2008-06-03 05:23:28
      handler_name    : Apple Sound Media Handler
      encoder         : Lavc56.12.100 libfdk_aac
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
frame=14316 fps=305 q=-1.0 Lsize=   48501kB time=00:09:56.49 bitrate= 666.1kbits/s
video:38402kB audio:4661kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 12.626186%
[libx264 @ 0x7fe66b800c00] frame I:154   Avg QP:17.40  size: 37747
[libx264 @ 0x7fe66b800c00] frame P:5550  Avg QP:22.44  size:  4792
[libx264 @ 0x7fe66b800c00] frame B:8612  Avg QP:27.20  size:   803
[libx264 @ 0x7fe66b800c00] consecutive B-frames: 12.4% 17.7% 13.4% 56.4%
[libx264 @ 0x7fe66b800c00] mb I  I16..4: 35.4% 26.7% 37.9%
[libx264 @ 0x7fe66b800c00] mb P  I16..4:  3.2%  4.2%  1.7%  P16..4: 33.3%  7.3%  4.9%  0.0%  0.0%    skip:45.3%
[libx264 @ 0x7fe66b800c00] mb B  I16..4:  0.2%  0.5%  0.2%  B16..8: 24.6%  1.7%  0.5%  direct: 0.8%  skip:71.6%  L0:49.5% L1:44.9% BI: 5.6%
[libx264 @ 0x7fe66b800c00] 8x8 transform intra:42.7% inter:49.6%
[libx264 @ 0x7fe66b800c00] coded y,uvDC,uvAC intra: 61.4% 65.7% 32.2% inter: 9.7% 10.2% 2.1%
[libx264 @ 0x7fe66b800c00] i16 v,h,dc,p: 22% 27% 23% 28%
[libx264 @ 0x7fe66b800c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 26%  4%  5%  7%  5%  6%  6%
[libx264 @ 0x7fe66b800c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 23% 19%  4%  6%  6%  6%  5%  5%
[libx264 @ 0x7fe66b800c00] i8c dc,h,v,p: 48% 23% 18% 11%
[libx264 @ 0x7fe66b800c00] Weighted P-Frames: Y:3.7% UV:2.4%
[libx264 @ 0x7fe66b800c00] ref P L0: 70.7% 13.5% 11.6%  4.2%  0.1%
[libx264 @ 0x7fe66b800c00] ref B L0: 91.2%  7.6%  1.2%
[libx264 @ 0x7fe66b800c00] ref B L1: 94.8%  5.2%
[libx264 @ 0x7fe66b800c00] kb/s:527.39
$ ffprobe -v quiet -select_streams a -show_entries stream=profile test.ts
[PROGRAM]
[STREAM]
profile=HE-AACv2
[/STREAM]
[/PROGRAM]
[STREAM]
profile=HE-AACv2
[/STREAM]
$ ffplay test.ts
ffplay version N-67514-g7656c4c Copyright (c) 2003-2014 the FFmpeg developers
  built on Nov 10 2014 20:00:06 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpegts, from 'test.ts':  0KB vq=    0KB sq=    0B f=0/0
  Duration: 00:09:56.61, start: 1.400000, bitrate: 665 kb/s
  Program 1
    Metadata:
      service_name    : Big Buck Bunny
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x360, 24 fps, 24 tbr, 90k tbn, 48 tbc
    Stream #0:1[0x101](eng): Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 64 kb/s
[aac @ 0x7fcfaa836800] ChannelElement 1.0 missing
    Last message repeated 9 times
[aac @ 0x7fcfaa836800] ChannelElement 1.0 missing sq=    0B f=0/0
[aac @ 0x7fcfaa836800] ChannelElement 1.0 missing sq=    0B f=0/0
[aac @ 0x7fcfaa836800] ChannelElement 1.0 missing sq=    0B f=0/0
    Last message repeated 1 times
[aac @ 0x7fcfaa836800] ChannelElement 1.0 missing sq=    0B f=0/0
    Last message repeated 1 times
[aac @ 0x7fcfaa836800] ChannelElement 1.0 missing sq=    0B f=0/0
[aac @ 0x7fcfaa836800] ChannelElement 1.0 missing sq=    0B f=0/0
# [... etc ...]

comment:17 Changed 19 months ago by cehoyos

Did you upload a (audio-only) sample?

Changed 19 months ago by blacktrash

aac_he mono

comment:18 Changed 19 months ago by blacktrash

Attached test.ts created with:

$ ffmpeg -i 03-ThreeJollyHuntsmen.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k -ac 1 test.ts
ffmpeg version N-67514-g7656c4c Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 10 2014 20:00:06 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --enable-shared --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from '03-ThreeJollyHuntsmen.wav':
  Duration: 00:01:25.52, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
Output #0, mpegts, to 'test.ts':
  Metadata:
    encoder         : Lavf56.12.103
    Stream #0:0: Audio: aac (libfdk_aac) (HE-AAC), 44100 Hz, mono, s16, 64 kb/s
    Metadata:
      encoder         : Lavc56.12.100 libfdk_aac
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
size=     761kB time=00:01:25.52 bitrate=  72.9kbits/s
video:0kB audio:669kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 13.774409%

comment:19 Changed 19 months ago by cehoyos

I created ticket #4106, thank you for the sample.

Note: See TracTickets for help on using tickets.