[FFmpeg-trac] #7956(avformat:new): asf container - HE-AAC stream detected as "unknown: none"

FFmpeg trac at avcodec.org
Mon Jun 24 08:13:21 EEST 2019


#7956: asf container - HE-AAC stream detected as "unknown: none"
-------------------------------------+------------------------------------
             Reporter:  Djfe         |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  asf aac      |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by Djfe):

 Ok, done.

 The patch allows ffmpeg to detect the stream as HE-AAC now,
 the bitrate is wrong though (the number 1536kb/s makes it seem like it's
 pcm)

 decoding audio-only appears to be working fine (the file is playable and
 has the correct length)
 {{{
 .\ffmpeg -i .\h1_av_175_H.asf -map 0:2 -c:a aac test.m4a
 }}}

 The console output is spammed massively by these two kinds of warnings
 though:
 {{{
 [aac @ 03a01f00] Queue input is backward in time
 [ipod @ 04852400] Non-monotonous DTS in output stream 0:0; previous:
 290926768, current: 290925744; changing to 290926769. This may result in
 incorrect timestamps in the output file.
 }}}


 copying the audio stream doesn't work at all, yet.
 {{{
 .\ffmpeg -i .\h1_av_175_H.asf -map 0:2 -c:a copy test.m4a
 ffmpeg version N-94089-gbc3306fd5b Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7.3-win32 (GCC) 20180312
   configuration: --arch=x86 --target-os=mingw32 --cross-
 prefix=i686-w64-mingw32-
   libavutil      56. 29.100 / 56. 29.100
   libavcodec     58. 53.100 / 58. 53.100
   libavformat    58. 28.100 / 58. 28.100
   libavdevice    58.  7.100 / 58.  7.100
   libavfilter     7. 55.100 /  7. 55.100
   libswscale      5.  4.101 /  5.  4.101
   libswresample   3.  4.100 /  3.  4.100
 Input #0, asf, from '.\h1_av_175_H.asf':
   Metadata:
     WMFSDKNeeded    : 0.0.0.0000
     WMFSDKVersion   : 10.00.00.4066
     IsVBR           : 1
   Duration: 01:41:01.03, start: 0.031000, bitrate: 1290 kb/s
     Stream #0:0(chi): Video: h264 (High) (H264 / 0x34363248),
 yuv420p(progressive), 1920x1080, 1080 kb/s, 1k tbr, 1k tbn, 2k tbc
     Stream #0:1(chi): Video: h264 (High) (H264 / 0x34363248),
 yuv420p(progressive), 1920x1080, 23 kb/s, 1k tbr, 1k tbn, 2k tbc
     Stream #0:2(chi): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 1536
 kb/s
     Stream #0:3(chi): Video: h264 (High) (H264 / 0x34363248),
 yuv420p(progressive), 1920x1080, 20 kb/s, 1k tbr, 1k tbn, 2k tbc
 File 'test2.m4a' already exists. Overwrite ? [y/N] y
 Output #0, ipod, to 'test2.m4a':
   Metadata:
     WMFSDKNeeded    : 0.0.0.0000
     WMFSDKVersion   : 10.00.00.4066
     IsVBR           : 1
     encoder         : Lavf58.28.100
     Stream #0:0(chi): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 1536 kb/s
 Stream mapping:
   Stream #0:2 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=   95047kB time=01:41:00.95 bitrate= 128.5kbits/s speed=9.07e+003x
 video:0kB audio:94363kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.724151%
 }}}
 {{{
 .\ffprobe test.m4a
 ffprobe version N-94089-gbc3306fd5b Copyright (c) 2007-2019 the FFmpeg
 developers
   built with gcc 7.3-win32 (GCC) 20180312
   configuration: --arch=x86 --target-os=mingw32 --cross-
 prefix=i686-w64-mingw32-
   libavutil      56. 29.100 / 56. 29.100
   libavcodec     58. 53.100 / 58. 53.100
   libavformat    58. 28.100 / 58. 28.100
   libavdevice    58.  7.100 / 58.  7.100
   libavfilter     7. 55.100 /  7. 55.100
   libswscale      5.  4.101 /  5.  4.101
   libswresample   3.  4.100 /  3.  4.100
 [aac @ 03951100] Number of bands (54) exceeds limit (47).
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test2.m4a':
   Metadata:
     major_brand     : M4A
     minor_version   : 512
     compatible_brands: isomiso2
     encoder         : Lavf58.28.100
   Duration: 01:41:01.00, start: 0.000000, bitrate: 128 kb/s
     Stream #0:0(chi): Audio: aac (Main) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 126 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 }}}
 the (copied) audio stream is undecodable and isn't recognized as HE-AAC
 (by ffprobe), (actual decoding with ffmpeg -i results in errors)

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7956#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list