[Ffmpeg-devel] [PATCH] Specify file format in vhook watermark

Víctor Paesa wzrlpy
Mon Dec 4 00:33:39 CET 2006


> Hi,
>
> There has been some reports about images wrongly identified as MP3
> by file probing in vhook watermark.
>
> To deal with that, the attached patch allows to specify explicitely
> the file format as part of the vhook watermark invocation.
>
> Test A:
> Before patch GIF is identified as MP3:
>
> ffmpeg -i input.avi -vhook
> 'watermark.dll -f logo_watermark_full_layer.gif -m 0 -t ffffff' out.avi
>
> You get these errors:
> [mp3 @ 0x974054]Could not find codec parameters (Audio: mp1, 160 kb/s)
> get_watermark_picture() Failed to find stream info
> Failed to Configure /usr/local/bin/vhook/watermark.dll
> Failed to add video hook function: watermark.dll -f
> logo_watermark_full_layer.gif -m 0 -t ffffff
>
>
> Test B:
> After patch you may specify the container format (image2 for GIF)
> and no errors occur:
>
> ffmpeg -i input.avi -vhook
> 'watermark.dll -F image2 -f logo_watermark_full_layer.gif -m 0 -t ffffff'
> \
> out.avi
>
> The logo GIF is at
> http://lists.mplayerhq.hu/pipermail/ffmpeg-user/attachments/20061202/2a24b695/logo_watermark_full_layer.gif
>

Oops, and the patch is *now* attached:

Regards,
V?ctor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.vhook.watermark-format.1.diff
Type: application/octet-stream
Size: 2093 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061204/df698483/attachment.obj>



More information about the ffmpeg-devel mailing list