[Ffmpeg-devel] [BUG] mandatory mp3 codec
Víctor Paesa
wzrlpy
Mon Sep 18 09:23:49 CEST 2006
> Hi,
>
>> Hi,
>>
>>> It looks like it's misdetecting that PNG as an mp3 file. Could you
>>> please upload the file that's causing this?
>>
>> The file is taken from the open source movie "Elephants Dream"
>> (http://orange.blender.org/). The people from the Xiph project are
>> hosting the original, uncompressed images. Here's the direct link:
>> http://media.xiph.org/ED/
>>
>> I used frame 2350 in 640x360 resolution to test ffmpeg, you can get it
>> from here: http://media.xiph.org/ED/ED-360-png/02350.png
>>
>
> Probably same issue as in
>
> http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2006-September/044784.html
>
> This is the patch devised by Andreas ?man, after removing first chunk,
> that no longer applies.
>
> Index: libavformat/mp3.c
> ===================================================================
> --- libavformat/mp3.c (revision 6229)
> +++ libavformat/mp3.c (working copy)
> @@ -274,7 +274,6 @@
> }
> if (max_frames>=3) return AVPROBE_SCORE_MAX/2+1;
> else if(max_frames==2) return AVPROBE_SCORE_MAX/4;
> - else if(max_frames==1) return 1;
> else return 0;
> }
>
> This patch fixed the problem for me.
>
I forgot to mention that besides applying the patch, you should use
-f image2 in your command line.
Here is your PNG recognized:
$ ffmpeg -f image2 -i 02350.png
FFmpeg version SVN-r6254, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mp3lame --enable-a52 --disable-static
--enable-shared --enable-pthreads --enable-swscaler --enable-avisynth
--enable-gpl
libavutil version: 49.0.0
libavcodec version: 51.14.0
libavformat version: 50.5.0
built on Sep 15 2006 09:56:49, gcc: 3.4.4 (cygming special) (gdc 0.12,
using dmd 0.125)
Input #0, image2, from '02350.png':
Duration: 00:00:00.0, start: 0.000000, bitrate: N/A
Stream #0.0: Video: png, rgb24, 640x360, 25.00 fps(r)
Must supply at least one output file
Regards,
V?ctor Paesa
More information about the ffmpeg-devel
mailing list