[FFmpeg-trac] #7956(undetermined:new): asf container - HE-AAC stream detected as "unknown: none"
FFmpeg
trac at avcodec.org
Fri Jun 14 08:01:03 EEST 2019
#7956: asf container - HE-AAC stream detected as "unknown: none"
-------------------------------------+-------------------------------------
Reporter: Djfe | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
ok, so I'm a student and I help at my university with video recordings.
They have a system in one of their buildings for their beamers to record
all inputs and the microphones' audio.
The system outputs an asf container that contains 3 AVC streams and one
HE-AAC audio stream.
FFmpeg isn't able to determine the codec type of the audio stream, yet.
It's possible to use FFmpeg to extract the audio with "-y -copy_unknown -f
data" into an .m4a container
Once the stream is in an m4a container FFmpeg is able to determine the
codec type.
I'll attach an affected file, so this can be improved in a future version
of ffmpeg.
terminal output:
{{{
ffprobe '.\ASF Container - HE-AAC-Stream type unknown none.asf'
ffprobe version N-94030-gcaabe1b495 Copyright (c) 2007-2019 the FFmpeg
developers
built with gcc 8.3.1 (GCC) 20190414
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
--enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-
nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 28.100 / 56. 28.100
libavcodec 58. 53.100 / 58. 53.100
libavformat 58. 27.103 / 58. 27.103
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
libpostproc 55. 4.100 / 55. 4.100
[asf @ 000002835cd2c200] Could not find codec parameters for stream 2
(Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, asf, from '.\ASF Container - HE-AAC-Stream type unknown
none.asf':
Metadata:
WMFSDKNeeded : 0.0.0.0000
WMFSDKVersion : 10.00.00.4066
IsVBR : 1
Duration: 00:00:03.36, start: 0.016000, bitrate: 2238 kb/s
Stream #0:0(chi): Video: h264 (High) (H264 / 0x34363248),
yuv420p(progressive), 1920x1080, 23 kb/s, 1k tbr, 1k tbn, 2k tbc
Stream #0:1(chi): Video: h264 (High) (H264 / 0x34363248),
yuv420p(progressive), 1920x1080, 1743 kb/s, 1k tbr, 1k tbn, 2k tbc
Stream #0:2(chi): Unknown: none
Stream #0:3(chi): Video: h264 (High) (H264 / 0x34363248),
yuv420p(progressive), 1920x1080, 19 kb/s, 1k tbr, 1k tbn, 2k tbc
Unsupported codec with id 0 for input stream 2
}}}
{{{
ffmpeg -i '.\ASF Container - HE-AAC-Stream type unknown none.asf' -y
-copy_unknown -map 0:2 -vn -c copy -f data audio.m4a
ffmpeg version N-94030-gcaabe1b495 Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 8.3.1 (GCC) 20190414
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
--enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-
nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 28.100 / 56. 28.100
libavcodec 58. 53.100 / 58. 53.100
libavformat 58. 27.103 / 58. 27.103
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
libpostproc 55. 4.100 / 55. 4.100
[asf @ 000002418e768f40] Could not find codec parameters for stream 2
(Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, asf, from '.\ASF Container - HE-AAC-Stream type unknown
none.asf':
Metadata:
WMFSDKNeeded : 0.0.0.0000
WMFSDKVersion : 10.00.00.4066
IsVBR : 1
Duration: 00:00:03.36, start: 0.016000, bitrate: 2238 kb/s
Stream #0:0(chi): Video: h264 (High) (H264 / 0x34363248),
yuv420p(progressive), 1920x1080, 23 kb/s, 1k tbr, 1k tbn, 2k tbc
Stream #0:1(chi): Video: h264 (High) (H264 / 0x34363248),
yuv420p(progressive), 1920x1080, 1743 kb/s, 1k tbr, 1k tbn, 2k tbc
Stream #0:2(chi): Unknown: none
Stream #0:3(chi): Video: h264 (High) (H264 / 0x34363248),
yuv420p(progressive), 1920x1080, 19 kb/s, 1k tbr, 1k tbn, 2k tbc
Output #0, data, to 'audio.m4a':
Metadata:
WMFSDKNeeded : 0.0.0.0000
WMFSDKVersion : 10.00.00.4066
IsVBR : 1
encoder : Lavf58.27.103
Stream #0:0(chi): Unknown: none
Stream mapping:
Stream #0:2 -> #0:0 (copy)
Press [q] to stop, [?] for help
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 234 >= 234
Last message repeated 3 times
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 359 >= 359
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 484 >= 484
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 750 >= 750
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 875 >= 875
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 1047 >= 1047
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 1265 >= 1265
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 1390 >= 1390
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 1859 >= 1859
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 1984 >= 1984
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 2250 >= 2250
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 2672 >= 2672
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 2797 >= 2797
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 2937 >= 2937
[data @ 000002418f8693c0] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 3093 >= 3093
size= 52kB time=00:00:03.29 bitrate= 129.2kbits/s speed= 207x
video:0kB audio:0kB subtitle:0kB other streams:52kB global headers:0kB
muxing overhead: 0.000000%
}}}
{{{
ffprobe .\audio.m4a
ffprobe version N-94030-gcaabe1b495 Copyright (c) 2007-2019 the FFmpeg
developers
built with gcc 8.3.1 (GCC) 20190414
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
--enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-
nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 28.100 / 56. 28.100
libavcodec 58. 53.100 / 58. 53.100
libavformat 58. 27.103 / 58. 27.103
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
libpostproc 55. 4.100 / 55. 4.100
[aac @ 0000021d8f1bc100] Estimating duration from bitrate, this may be
inaccurate
Input #0, aac, from '.\audio.m4a':
Duration: 00:00:03.33, bitrate: 128 kb/s
Stream #0:0: Audio: aac (HE-AAC), 48000 Hz, stereo, fltp, 128 kb/s
}}}
My guess is that the demuxer isn't able to determine the codec type. Maybe
aac in asf isn't even standardized. I actually don't know much about the
asf container besides that it's from Microsoft.
The audio itself is mostly noise and some buzzing sound that is probably
caused by the recording hardware.
If you need another larger sample file and/or someone talking on the mic,
then just ask. I can provide those :)
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7956>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list