Opened 3 years ago
Last modified 7 months ago
#8618 open defect
FFmpeg fails to recognize this DTS 5.1 encoded WAV file
Reported by: | d4eva | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | spdif dca |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
FFmpeg fails to recognize this DTS encoded WAV file.
ffmpeg.exe -v 9 -loglevel 99 -i 1.wav
Full log:
ffmpeg version N-93300-g96451477b9 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20190212
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. 26.100 / 56. 26.100
libavcodec 58. 47.103 / 58. 47.103
libavformat 58. 26.101 / 58. 26.101
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input url with argument '1.wav'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input url 1.wav.
Successfully parsed a group of options.
Opening an input file: 1.wav.
[NULL @ 0000029387078f00] Opening '1.wav' for reading
[file @ 00000293870797c0] Setting default whitelist 'file,crypto'
Probing mp3 score:1 size:2048
Probing spdif score:12 size:2048
Probing wav score:99 size:2048
[wav @ 0000029387078f00] Format wav probed with size=2048 and score=99
[wav @ 0000029387078f00] Before avformat_find_stream_info() pos: 44 bytes read:65580 seeks:1 nb_streams:1
[wav @ 0000029387078f00] probing stream 0 pp:32
Probing mp3 score:1 size:1792
[wav @ 0000029387078f00] Probe with size=1792, packets=2469 detected mp3 with score=1
[wav @ 0000029387078f00] probing stream 0 pp:31
Probing mp3 score:1 size:3584
[wav @ 0000029387078f00] Probe with size=3584, packets=2470 detected mp3 with score=1
[wav @ 0000029387078f00] probing stream 0 pp:30
Probing mp3 score:1 size:5376
[wav @ 0000029387078f00] Probe with size=5376, packets=2471 detected mp3 with score=1
[wav @ 0000029387078f00] probing stream 0 pp:29
[wav @ 0000029387078f00] probing stream 0 pp:28
Probing mp3 score:1 size:8960
[wav @ 0000029387078f00] Probe with size=8960, packets=2473 detected mp3 with score=1
[wav @ 0000029387078f00] probing stream 0 pp:27
[wav @ 0000029387078f00] probing stream 0 pp:26
[wav @ 0000029387078f00] probing stream 0 pp:25
[wav @ 0000029387078f00] probing stream 0 pp:24
[wav @ 0000029387078f00] probing stream 0 pp:23
Probing dts score:51 size:17920
[wav @ 0000029387078f00] Probe with size=17920, packets=2478 detected dts with score=51
[wav @ 0000029387078f00] probed stream 0
[wav @ 0000029387078f00] decoding for stream 0 failed
[wav @ 0000029387078f00] Estimating duration from bitrate, this may be inaccurate
[wav @ 0000029387078f00] stream 0: start_time: -209146758205323.719 duration: 0.427
[wav @ 0000029387078f00] format: start_time: -9223372036854.775 duration: 0.427 bitrate=1412 kb/s
[wav @ 0000029387078f00] Could not find codec parameters for stream 0 (Audio: dts (dca) (DTS) ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, 1411 kb/s): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[wav @ 0000029387078f00] After avformat_find_stream_info() pos: 75360 bytes read:140896 seeks:1 frames:36
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from '1.wav':
Duration: 00:00:00.43, bitrate: 1412 kb/s
Stream #0:0, 36, 1/44100: Audio: dts (DTS) ([1][0][0][0] / 0x0001), 44100 Hz, stereo, 1411 kb/s
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0000029387082280] Statistics: 140896 bytes read, 1 seeks
When I try to decode it I get lots of
Failed to decode block code(s) and no output file is created.
libdcadec (one, which is now merged into FFmpeg) recognizes this file correctly:
dcadec.exe 1.wav
DTS Core Audio: 5.1 ch, 44 kHz, 16 bit, 1411 kbps
Attachments (1)
Change History (5)
by , 3 years ago
comment:1 by , 3 years ago
Summary: | FFmpeg fails to recognize this DTS encoded WAV file → FFmpeg fails to recognize this DTS 5.1 encoded WAV file |
---|
comment:2 by , 3 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | spdif dca added |
Version: | unspecified → git-master |
comment:3 by , 3 years ago
comment:4 by , 7 months ago
Status: | new → open |
---|
Still broken and mpv/ffplay too.
[wav @ 000001e3572c3680] Could not find codec parameters for stream 0 (Audio: dts (dca) (DTS) ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, 1411 kb/s): unspecified sample format Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, wav, from '1.wav': Duration: 00:00:11.89, bitrate: 1411 kb/s Stream #0:0: Audio: dts (DTS) ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, 1411 kb/s [abuffer @ 000001e3572c9c80] Unable to parse option value "(null)" as sample format [abuffer @ 000001e3572c9c80] Error setting option sample_fmt to value (null). [ffplay_abuffer @ 000001e3572d5240] Error applying options to the filter. Failed to open file '1.wav' or configure filtergraph
Is seems that spdif demuxer is to blame. When I rebuilt FFmpeg with --disable-demuxer=spdif, file was detected correctly.