#6179 closed defect (fixed)
ffmpeg cannot recognize an wave file PCM detected as mp1
Reported by: | lesterkong | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avformat |
Version: | git-master | Keywords: | mp3 probe wav regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Summary of the bug:when i use ffmpeg convert an wave file,the ffmpeg cannot recognize my file and probe result is mp1
How to reproduce:
% ./ffmpeg -i wav_format_recongnize_error.wav out.wav ffmpeg version is 3.2.4 built with gcc 4.1.2 (GCC) 20070115 (prerelease) (SUSE Linux)
The full report is below:
ffmpeg started on 2017-02-22 at 22:00:00 Report written to "ffmpeg-20170222-220000.log" Command line: ./ffmpeg -report -v 9 -loglevel 99 -i wav_format_recongnize_error.wav out.wav ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.1.2 (GCC) 20070115 (prerelease) (SUSE Linux) configuration: --prefix=/data/AutoBuild/src/isd_musicadmin_proj/trunk/biz_pack/lesterkong/ffmpeg_3.2.4_video --disable-yasm --enable-static --disable-shared --enable-libx264 --enable-gpl --extra-cflags=-I/data/AutoBuild/src/isd_musicadmin_proj/trunk/biz_pack/lesterkong/x264_static/include --extra-ldflags=-L/data/AutoBuild/src/isd_musicadmin_proj/trunk/biz_pack/lesterkong/x264_static/lib --extra-libs='-lx264 -ldl' --enable-cross-compile --arch=i486 --target-os=linux libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 / 57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100 Splitting the commandline. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. 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 'wav_format_recongnize_error.wav'. Reading option 'out.wav' ... matched as output url. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Applying option v (set logging level) with argument 9. Applying option loglevel (set logging level) with argument 99. Successfully parsed a group of options. Parsing a group of options: input url wav_format_recongnize_error.wav. Successfully parsed a group of options. Opening an input file: wav_format_recongnize_error.wav. [file @ 0x97cfb20] Setting default whitelist 'file,crypto' [wav @ 0x97cf400] Format wav probed with size=2048 and score=99 [wav @ 0x97cf400] Before avformat_find_stream_info() pos: 44 bytes read:65580 seeks:1 nb_streams:1 [wav @ 0x97cf400] probing stream 0 pp:32 [wav @ 0x97cf400] probing stream 0 pp:31 [wav @ 0x97cf400] probing stream 0 pp:30 [wav @ 0x97cf400] probing stream 0 pp:29 [wav @ 0x97cf400] Probe with size=16384, packets=2472 detected mp3 with score=25 [wav @ 0x97cf400] probing stream 0 pp:28 [wav @ 0x97cf400] probing stream 0 pp:27 [wav @ 0x97cf400] probing stream 0 pp:26 [wav @ 0x97cf400] probing stream 0 pp:25 [wav @ 0x97cf400] Probe with size=32768, packets=2476 detected mp3 with score=25 [wav @ 0x97cf400] probing stream 0 pp:24 [wav @ 0x97cf400] probing stream 0 pp:23 [wav @ 0x97cf400] probing stream 0 pp:22 [wav @ 0x97cf400] probing stream 0 pp:21 [wav @ 0x97cf400] probing stream 0 pp:20 [wav @ 0x97cf400] probing stream 0 pp:19 [wav @ 0x97cf400] probing stream 0 pp:18 [wav @ 0x97cf400] probing stream 0 pp:17 [wav @ 0x97cf400] Probe with size=65536, packets=2484 detected mp3 with score=25 [wav @ 0x97cf400] probing stream 0 pp:16 [wav @ 0x97cf400] probing stream 0 pp:15 [wav @ 0x97cf400] probing stream 0 pp:14 [wav @ 0x97cf400] probing stream 0 pp:13 [wav @ 0x97cf400] probing stream 0 pp:12 [wav @ 0x97cf400] probing stream 0 pp:11 [wav @ 0x97cf400] probing stream 0 pp:10 [wav @ 0x97cf400] probing stream 0 pp:9 [wav @ 0x97cf400] probing stream 0 pp:8 [wav @ 0x97cf400] probing stream 0 pp:7 [wav @ 0x97cf400] probing stream 0 pp:6 [wav @ 0x97cf400] probing stream 0 pp:5 [wav @ 0x97cf400] probing stream 0 pp:4 [wav @ 0x97cf400] probing stream 0 pp:3 [wav @ 0x97cf400] probing stream 0 pp:2 [wav @ 0x97cf400] probing stream 0 pp:1 [wav @ 0x97cf400] Probe with size=131072, packets=2500 detected mp3 with score=50 [wav @ 0x97cf400] probed stream 0 [mp1 @ 0x97d0500] Header missing [mp1 @ 0x97d0500] Header missing [wav @ 0x97cf400] All info found [wav @ 0x97cf400] Estimating duration from bitrate, this may be inaccurate [wav @ 0x97cf400] After avformat_find_stream_info() pos: 131116 bytes read:196652 seeks:1 frames:50 Input #0, wav, from 'wav_format_recongnize_error.wav': Duration: 00:00:58.05, bitrate: 1411 kb/s Stream #0:0, 50, 1/44100: Audio: mp1 ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16p, 1411 kb/s Successfully opened the file. Parsing a group of options: output url out.wav. Successfully parsed a group of options. Opening an output file: out.wav. [file @ 0x97d3760] Setting default whitelist 'file,crypto' Successfully opened the file. detected 6 logical cores [graph 0 input from stream 0:0 @ 0x980dec0] Setting 'time_base' to value '1/48000' [graph 0 input from stream 0:0 @ 0x980dec0] Setting 'sample_rate' to value '48000' [graph 0 input from stream 0:0 @ 0x980dec0] Setting 'sample_fmt' to value 's16p' [graph 0 input from stream 0:0 @ 0x980dec0] Setting 'channel_layout' to value '0x4' [graph 0 input from stream 0:0 @ 0x980dec0] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x4 [audio format for output stream 0:0 @ 0x97e5700] Setting 'sample_fmts' to value 's16' [audio format for output stream 0:0 @ 0x97e5700] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0' [AVFilterGraph @ 0x98036e0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed [auto-inserted resampler 0 @ 0x97d0b60] [SWR @ 0x9817580] Using s16p internally between filters [auto-inserted resampler 0 @ 0x97d0b60] ch:1 chl:mono fmt:s16p r:48000Hz -> ch:1 chl:mono fmt:s16 r:48000Hz Output #0, wav, to 'out.wav': Metadata: ISFT : Lavf57.56.101 Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s Metadata: encoder : Lavc57.64.101 pcm_s16le Stream mapping: Stream #0:0 -> #0:0 (mp1 (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) [mp1 @ 0x97d31c0] Header missing Error while decoding stream #0:0: Invalid data found when processing input cur_dts is invalid (this is harmless if it occurs once at the start per stream) [mp1 @ 0x97d31c0] Header missing Error while decoding stream #0:0: Invalid data found when processing input cur_dts is invalid (this is harmless if it occurs once at the start per stream) [mp1 @ 0x97d31c0] Header missing ..... Error while decoding stream #0:0: Invalid data found when processing input [mp1 @ 0x97d31c0] Header missing Error while decoding stream #0:0: Invalid data found when processing input [output stream 0:0 @ 0x97d2340] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. size= 620kB time=00:00:06.61 bitrate= 767.0kbits/s speed=7.94x video:0kB audio:620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.012296% Input file #0 (wav_format_recongnize_error.wav): Input stream #0:0 (audio): 4837 packets read (10239956 bytes); 827 frames decoded (317568 samples); Total: 4837 packets (10239956 bytes) demuxed Output file #0 (out.wav): Output stream #0:0 (audio): 826 frames encoded (317184 samples); 826 packets muxed (634368 bytes); Total: 826 packets (634368 bytes) muxed 827 frames successfully decoded, 4010 decoding errors [AVIOContext @ 0x97e0a60] Statistics: 4 seeks, 829 writeouts [AVIOContext @ 0x97d7cc0] Statistics: 10305536 bytes read, 1 seeks Conversion failed!}}}
Attachments (1)
Change History (6)
by , 7 years ago
Attachment: | wav_format_recongnize_error.wav added |
---|
comment:1 by , 7 years ago
Summary: | ffmpeg cannot recognize an wave file → ffmpeg cannot recognize an wave file PCM detected as mp1 |
---|
comment:2 by , 7 years ago
if I modify libavformat/wavdec.c line 157 st->probe_packets = FFMIN(st->probe_packets, 32);
to st->probe_packets = FFMIN(st->probe_packets, 14);
it's ok
comment:3 by , 7 years ago
Keywords: | wav regression added; Wave Format Cannot recognize removed |
---|---|
Priority: | normal → important |
Reproduced by developer: | set |
Status: | new → open |
Version: | → git-master |
Regression since 40a3e1e9c54997e4dfc7802b5a758b68ceb64982, see ticket #6106.
comment:4 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Issue has been fixed (I have not tried to determine when).
comment:5 by , 4 years ago
Keywords: | mp3 probe added |
---|
Fixed by Limin Wang in c22665ae691ca313793330bfa7c9a2b70d53cbdf
Note:
See TracTickets
for help on using tickets.
the ffmpeg version 3.2.4 cannot recognize this wave file format