Opened 10 years ago

Closed 10 years ago

#4171 closed defect (invalid)

avformat_find_stream_info fail because Could not find codec parameters for stream 0 (Audio: mp3): unspecified frame size

Reported by: l68874 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: mp3
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: I want upload ffmpeg from 0.5 vesion to new version,only use ffmpeg to decode media file. By using the new version 2.5 to decode mp3,
avformat_find_stream_info fail because Could not find codec parameters for stream 0 (Audio: mp3): unspecified frame size and avformat_find_stream_info return < 0 . but the same mp3 file can be decode sccess by ffmpeg version 0.5. and I try to decode many mp3 file ,its all failed with version 2.5.
Why? thanks for your help

How to reproduce:

# /bin/ffmpeg -v 9 -loglevel 99  -i /var/fff.mp3  /var/fff.wav
ffmpeg version 2.5 Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec  6 2014 17:13:10 with gcc 4.4.6 (crosstool-NG 1.13.2 - hsan-5115)
  configuration: --enable-cross-compile --arch=arm --target-os=linux --cpu=cortex-a9 --cross-prefix=/opt/tooin_hisi_ipsec/arm-hsan-linux-uclibcgnueabi/bin/arm-hsan-linux-uclibcgnueabi- --enable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-ffplay --disable-ffserver --disable-network --disable-ffprobe -able-avdevice --disable-swscale --disable-postproc --disable-w32threads --disable-os2threads --disable-runtime-cpudetect --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --disable-fft --disable-mdct --disable-rdft --disable-encoders --disable-mux--disable-devices --disable-filters --disable-bsfs --enable-protocol=file --enable-demuxer=rm --enable-ffmpeg --enable-demuxer=matroska --enable-demuxer=mov --enable-demuxer=mp3 --enable-demuxer=aac --enable-demuxer=amr --enable-demuxer=avi --enable-demuxef --enable-demuxer=mpegps --enable-demuxer=mpegts --enable-demuxer=mpegtsraw --enable-demuxer=rawvideo --enable-demuxer=wav --enable-demuxer=mpegvideo --enable-demuxer=image2 --enable-decoder=mjpeg --enable-decoder=png --enable-decoder=gif --enable-parser=video --enable-parser=mpegaudio --enable-shared --extra-libs=-lz --enable-zlib --enable-small --extra-ldflags=-L/usr1/home/lijie/R5_1202_255s/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/lib --extra-cflags=-I/usr1/home/lijie/R5_1202_255s/output//usr/include
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavfilter     5.  2.103 /  5.  2.103
  libswresample   1.  1.100 /  1.  1.100
Splitting the commandline[0mReading 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  ... matched as input file with argument '/var/fff.mp3'.
Reading option '/var/fff.wav' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
lying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file /var/fff.mp3.
Successfully parsed a group of options.
Opening an input file:r/fff.mp3.
[mp3 @ 0x3b0c0] Format mp3 probed with size=131072 and score=50
[mp3 @ 0x3b0c0] id3v2 ver:3 flags:00 len:246
[mp3 @ 0x3b0c0] id3v2 ver:4 flags:00 len:1131
[mp3 @ 0x3b0c0] pad 576 1600
[mp3 @ 0x3b0c0] Before avformat_find_stream_info() pos: 1814 bytes read:131072 seeks:0
[mp3 @ 0x3b0c0] demuxer injecting skip 1105
[mp3 @ 0x3b0c0] max_analyze_duration 5000000 reached at 5015510 microseconds
[mp3 @ 0x3b0c0] Could not find codec parameters for stream 0 (Audio: mp3, 44100 Hz, 2 channels, 128 kb/s): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mp3 @ 0x3b0c0] After avformat_find_stream_info() pos: 83734 bytes read:131072 seeks:0 frames:194
/var/fff.mp3: could not find codec parameters
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, mp3, from '/var/fff.mp3':
  Metadata:
    title           : 沙滩
    artist          : 陶喆
    album           : Ultrasound 乐之路1997-2003(新曲加精选)
  Duration: 00:03:59.73, start: 0.025057, bitrate: 128 kb/s
    Stream #0:0, 194, 1/14112000: Audio: mp3, 44100 Hz, 2 channels, 128 kb/s
    Metadata:
      encoder         : LAME3.97 
Successfully opened the file.
Parsing a group of options: output file /var/fff.wav.
Successfully parsed a group of options.
Opening an output file: /var/fff.wav.
[NULL @ 0x7d010] Unable to find a suitable output format for '/var/fff.wav'
/var/fff.wav: Invalid argument
[AVIOContext @ 0x43920] Statistics: 131072 bytes read, 0 seeks}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (1)

comment:1 by Carl Eugen Hoyos, 10 years ago

Keywords: unspecified frame size removed
Priority: importantnormal
Resolution: invalid
Status: newclosed

Please test with a configure line that does not contain any --disable-* options. If it still fails, please reopen this ticket.
If you need support with your configure line, please ask on the user mailing list.

Note: See TracTickets for help on using tickets.