[FFmpeg-user] Unable to analyze/transcode mp3
Joakim Simonsson
nospam at joakims.com
Mon Dec 3 16:42:10 CET 2012
Hi,
I have some issues with the following mp3:
http://nl.nrk.no/podkast/aps/10908/nrk_radioresepsjonen_2012-1129-0325_6348979963.mp3
It plays, without any problems in vlc. However, both ffmpeg and ffprobe
have problems processing the file. I am using ffmpeg static build
(N-47112-gec51b33,
20121126)
> ffprobe -show_format -show_streams -of json -v 2 input.mp3
{
"streams": [
{
"index": 0,
"codec_name": "mp3",
"codec_long_name": "MP3 (MPEG audio layer 3)",
"codec_type": "audio",
"codec_time_base": "1/0",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "s16",
"sample_rate": "0",
"channels": 0,
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/14112000",
"start_pts": 0,
"start_time": "0.000000",
.
.
.
As you see, there are no channels reported and 0 sample_rate.
And for ffmpeg:
----
> ./ffmpeg -i ~/snd/input.mp3 /tmp/out.ts
ffmpeg version N-47112-gec51b33 Copyright (c) 2000-2012 the FFmpeg
developers
built on Nov 26 2012 14:02:57 with gcc 4.7 (Debian 4.7.2-4)
configuration: --extra-cflags=-I../static/include
--extra-ldflags='-L../static/lib -static' --enable-gpl --enable-version3
--enable-static --disable-shared --disable-debug --enable-runtime-cpudetect
--disable-x11grab --enable-libmp3lame --enable-libx264 --enable-libspeex
--enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libxvid
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs
--enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-gray --enable-libopenjpeg --disable-ffserver
libavutil 52. 9.102 / 52. 9.102
libavcodec 54. 77.100 / 54. 77.100
libavformat 54. 37.100 / 54. 37.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 23.102 / 3. 23.102
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 17.101 / 0. 17.101
libpostproc 52. 2.100 / 52. 2.100
[mp3 @ 0x27468c0] Format mp3 detected only with low score of 24,
misdetection possible!
[mp3 @ 0x27468c0] Stream #0: not enough frames to estimate rate; consider
increasing probesize
[mp3 @ 0x27468c0] Stream #1: not enough frames to estimate rate; consider
increasing probesize
[mp3 @ 0x27468c0] Stream #2: not enough frames to estimate rate; consider
increasing probesize
[mp3 @ 0x27468c0] Could not find codec parameters for stream 0 (Audio: mp3,
0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mp3 @ 0x27468c0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from '/home/joakim/snd/input.mp3':
Metadata:
title : 29.11.2012 Radioresepsjonen
album : NRK P3 - Radioresepsjonen
artist : NRK P3 - Radioresepsjonen
genre : Podcast
date : 2012
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: mp3, 0 channels, s16p
Stream #0:1: Video: bmp, bgr24, 1200x1200, 90k tbr, 90k tbn, 90k tbc
Metadata:
title :
comment : Cover (front)
Stream #0:2: Video: bmp, bgr24, 1200x1200, 90k tbr, 90k tbn, 90k tbc
Metadata:
title :
comment : Cover (front)
Output #0, mpegts, to '/tmp/out.ts':
Metadata:
title : 29.11.2012 Radioresepsjonen
album : NRK P3 - Radioresepsjonen
artist : NRK P3 - Radioresepsjonen
genre : Podcast
date : 2012
encoder : Lavf54.37.100
Stream #0:0: Video: mpeg2video, yuv420p, 1200x1200, q=2-31, 200 kb/s,
90k tbn, 240 tbc
Metadata:
title :
comment : Cover (front)
Stream mapping:
Stream #0:1 -> #0:0 (bmp -> mpeg2video)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=7.9 Lsize= 98kB time=00:00:00.00
bitrate=192737.2kbits/s
video:91kB audio:0kB subtitle:0 global headers:0kB muxing overhead 8.204354%
------
The result is an 99kb unplayable file. I have played with probesize and
analyzeduration, without success.
Does someone see what is wrong here?
--
Joakim
More information about the ffmpeg-user
mailing list