[Ffmpeg-devel] vhook contaminating video stream bug when-deinterlace is used on flv streams

Scott Manley scott
Sat Mar 31 00:38:50 CEST 2007


Sure -

$ ffmpeg -i originals/junior.flv -deinterlace -vcodec mpeg4 -f mov 
-acodec copy -vhook "/usr/lib64/vhook/drawtext.so -c #ffffff -f 
resources/VAGRoundedStd-Bold.otf -t crazytext" junior-watermarked.mov
FFmpeg version SVN-r8548, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --cc=gcc4 --prefix=/usr --libdir=/usr/lib64 
--mandir=/usr/share/man --incdir=/usr/include/ffmpeg 
--extra-cflags=-fPIC --enable-libmp3lame --enable-libogg 
--enable-libvorbis --enable-libfaad --enable-libgsm --enable-liba52 
--enable-liba52bin --enable-libdts --enable-pp --enable-shared 
--enable-gpl --disable-strip --enable-pthreads
  libavutil version: 49.4.0
  libavcodec version: 51.40.2
  libavformat version: 51.11.0
  built on Mar 30 2007 14:10:15, gcc: 4.1.0 20060515 (Red Hat 4.1.0-18)

Seems stream 0 codec frame rate differs from container frame rate: 
1000.00 (1000/1) -> 24.00 (24/1)
Input #0, flv, from 'originals/junior.flv':
  Duration: 00:04:41.6, start: 0.000000, bitrate: 128 kb/s
  Stream #0.0: Video: flv, yuv420p, 400x222, 24.00 fps(r)
  Stream #0.1: Audio: mp3, 44100 Hz, mono, 128 kb/s
Output #0, mov, to 'junior-watermarked.mov':
  Stream #0.0: Video: mpeg4, yuv420p, 400x222, q=2-31, 200 kb/s, 24.00 
fps(c)
  Stream #0.1: Audio: mp3, 44100 Hz, mono, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[flv @ 0x2a95c30e70]run overflow at 15x13 i:0me=61.7 bitrate= 342.5kbits/s
[flv @ 0x2a95c30e70]Error at MB: 353
[flv @ 0x2a95c30e70]concealing 59 DC, 59 AC, 59 MV errors
[flv @ 0x2a95c30e70]slice end not reached but screenspace end (23 left 
6F0160, score= -2424)
[flv @ 0x2a95c30e70]concealing 350 DC, 350 AC, 350 MV errors
frame= 6759 fps=334 q=15.7 Lsize=   11578kB time=281.6 bitrate= 336.8kbits/s
video:7015kB audio:4394kB global headers:0kB muxing overhead 1.480154%




V?ctor Paesa wrote:
> Hi,
>
>   
>> OK another bug from me - i Have a video file which I'm told was encoded
>> using Sorenson Squeeze using the following parameters
>>
>> FLV
>> 1500kbpbs
>> Sorenson Spark codec 1-pass CBR
>> 30fps (also tried 24fps)
>> 400x244 size
>> Keyframe every 45 & auto keyframe on scene change
>> Tried with image smoothing on & off
>> Audio: mp3, 128kbps, 44mhz, mono
>>
>> You can download it from http://www.bootysatva.com/junior.flv
>>
>> So when I try to use one of the vhook plugins to do something to the video
>> the change seems to feedback into the next frame if there's motion the
>> text overlay gets smeared along the motion path as if the decoder is
>> taking the post vhook output as part of its input for generating the next
>> frame. Notably, this corruption only happens when
>>
>> So, something like this shows the bug
>>
>> ffmpeg -i junior.flv -deinterlace -vcodec mpeg4 -f flv -acodec copy -vhook
>> "vhook/drawtext.so  -c #ffffff -f resources/VAGRoundedStd-Bold.otf -t
>> crazytext"  junior-watermarked.mov
>>
>> while this is fine
>>
>> ffmpeg -i junior.flv  -vcodec mpeg4 -f flv -acodec copy -vhook
>> "vhook/drawtext.so  -c #ffffff -f resources/VAGRoundedStd-Bold.otf -t
>> crazytext"  junior-watermarked.mov
>>     
>
> Please post the ffmpeg output messages too.
>
> Regards,
> V?ctor
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>   





More information about the ffmpeg-devel mailing list