[Ffmpeg-devel] bug report: conversion-time issues

Christopher Halse Rogers chalserogers
Sun Oct 15 04:59:17 CEST 2006


On 10/15/06, Projectshifter <projectshifter at gmail.com> wrote:
> The server I'm installing FFmpeg runs CentOS (yuk!), but it was recently
> redone.  It had 2 different versions off ffmpeg in the beginning, one that I
> personally patched to allow all wmv formats, and then one from you guys
> after the main version was patched, and it was running fine.  They redid the
> OS and reinstalled the services, and that's when problems started
> happening.  A few days ago there was a problem with configure not
> succeeding, but I waited 24 hours and got the new version off of subversion
> and it worked fine.  Everything compiles just fine if I use the latest
> version, or the one I downloaded a couple weeks ago that supported wmv
> formats natively.  The one I patched doesn't compile properly, I know it's
> an ld problem and I'd rather not mess with it when I'd rather have a version
> that has it natively supported.  The conversion process succeeds (through
> exec()'ing a bash file that handles it in PHP), but the videos came out
> choppy on the current version.  The videos seem to suceed and come out more
> or less fine with the version I've got two weeks ago.  I've tried several
> command line options, the usual is just "ffmpeg -i input.wmv -f flv -s
> 320x240 -sameq output.flv", but the bash file that php calls to is just
> "ffmpeg -i $1 -ar 22050 -ab 32 -s 320x240 -b 512 -f flv $2"  It happens more

There is at least 1 problem here.  The units of the -b flag has
recently changed; it's now bits/sec, so that command line is asking
FFmpeg to produce an output with a bitrate of 512 bits/sec, which
obviously won't be very good quality.  You now want to use -b 512k to
indicate 512 kilobits/sec, which is what you're after.

> or less on every file that I've tested with.  I tried it with gdb and it
> says that the program exits normally, which explains why it produces regular
> files, but the output of ffmpeg is as follows:
> [root at mercury temp]# x_convertmovie d32ea029c12ac6aa9e1380a720e818e7.WMV
> test6.flv
> FFmpeg version SVN-r6229, Copyright (c) 2000-2004 Fabrice Bellard
>   configuration:  --enable-static --enable-mp3lame
>   libavutil version: 49.0.0
>   libavcodec version: 51.14.0
>   libavformat version: 50.5.0
>   built on Oct 13 2006 19:16:54, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
>
> Seems that stream 0 comes from film source: 1000.00 (1000/1) -> 25.00 (25/1)
> Input #0, asf, from 'd32ea029c12ac6aa9e1380a720e818e7.WMV':
>   Duration: 00:01:24.4, start: 2.000000, bitrate: 454 kb/s
>   Stream #0.0: Video: msmpeg4v2, yuv420p, 320x240, 25.00 fps(r)
>   Stream #0.1: Audio: mp3, 22050 Hz, stereo, 64 kb/s
> Output #0, flv, to 'test6.flv':
>   Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 512 kb/s, 25.00 fps(c)
>   Stream #0.1: Audio: mp3, 22050 Hz, stereo, 32 kb/s
> Stream mapping:
>   Stream #0.0 -> #0.0
>   Stream #0.1 -> #0.1
> Press [q] to stop encoding
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 16 14
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 310
> [msmpeg4v2 @ 0x86d7a0]concealing 300 DC, 300 AC, 300 MV errors
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 16 14
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 310
> [msmpeg4v2 @ 0x86d7a0]concealing 300 DC, 300 AC, 300 MV errors
> overread, skip -6 enddists: -4 -4 time=9.5 bitrate= 223.1kbits/s
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 8 14
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 302
> [msmpeg4v2 @ 0x86d7a0]concealing 300 DC, 300 AC, 300 MV errors
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 19 14itrate= 268.6kbits/s
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 313
> [msmpeg4v2 @ 0x86d7a0]concealing 154 DC, 154 AC, 154 MV errors
> invalid new backstep 188   1047kB time=26.2 bitrate= 327.0kbits/s
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 12 14
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 306
> [msmpeg4v2 @ 0x86d7a0]concealing 76 DC, 76 AC, 76 MV errors
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 15 14
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 309
> [msmpeg4v2 @ 0x86d7a0]concealing 300 DC, 300 AC, 300 MV errors
> overread, skip -6 enddists: -5 -5 time=40.3 bitrate= 470.8kbits/s
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 17 14
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 311
> [msmpeg4v2 @ 0x86d7a0]concealing 300 DC, 300 AC, 300 MV errors
> overread, skip -10 enddists: -1 -1time=47.4 bitrate= 516.1kbits/s
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 19 14
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 313
> [msmpeg4v2 @ 0x86d7a0]concealing 300 DC, 300 AC, 300 MV errors
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 16 14itrate= 592.5kbits/s
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 310
> [msmpeg4v2 @ 0x86d7a0]concealing 300 DC, 300 AC, 300 MV errors
> overread, skip -6 enddists: -5 -5 time=69.1 bitrate= 586.7kbits/s
> [msmpeg4v2 @ 0x86d7a0]cbpy 1 invalid at 17 14itrate= 583.0kbits/s
> [msmpeg4v2 @ 0x86d7a0]Error at MB: 311
> [msmpeg4v2 @ 0x86d7a0]concealing 218 DC, 218 AC, 218 MV errors

Those look like your input file is broken in some way.  Does it happen
for all input files?




More information about the ffmpeg-devel mailing list