[Ffmpeg-devel] pip.c - PiP (Picture in Picture) v1.0 patch.Remakeof watermark.c

Mihail Stoyanov screamer
Wed Oct 25 03:59:57 CEST 2006


Cheers,
I hope you like it

This code was taken from pip.c
                // Convert the image from its native format to RGBA32
                ci->watermark_convert_ctx =
                    sws_getCachedContext(ci->watermark_convert_ctx,
                        ci->pCodecCtx->width, ci->pCodecCtx->height,
ci->pCodecCtx->pix_fmt,
                        ci->x_size, ci->y_size, PIX_FMT_RGBA32,
                        sws_flags, NULL, NULL, NULL);

I don't know how you get that ci->watermark_conver_ctx = +
sws_getCachedContext...

I'm attaching you zipped pip.c


----- Original Message ----- 
From: "V?ctor Paesa" <wzrlpy at arsystel.com>
To: "FFmpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu>
Sent: Wednesday, October 25, 2006 1:13 AM
Subject: Re: [Ffmpeg-devel] pip.c - PiP (Picture in Picture) v1.0
patch.Remakeof watermark.c


Hi,
[cut]
I'm afraid is still malformed, your mailer or mine is messing line 1000
of pip_full.patch

But it is clear that instead of
ci->watermark_convert_ctx +                    sws_getCachedContext

should be
ci->watermark_convert_ctx = sws_getCachedContext

It compiled OK, and worked nicely.

I used it sucessfully to create a DVD menu with animated thumbnails:

ffmpeg -loop_input -vframes 250 -f image2 -i 'bckg.png' \
  -vhook 'pip.dll -f wm_00.avi -m 2 -x  88 -y 138 -w 144 -h 114 ' \
  -vhook 'pip.dll -f wm_01.avi -m 2 -x 288 -y 138 -w 144 -h 114 ' \
  -vhook 'pip.dll -f wm_02.avi -m 2 -x 488 -y 138 -w 144 -h 114 ' \
  -vhook 'pip.dll -f wm_03.avi -m 2 -x  88 -y 324 -w 144 -h 114 ' \
  -vhook 'pip.dll -f wm_04.avi -m 2 -x 288 -y 324 -w 144 -h 114 ' \
  -vhook 'pip.dll -f wm_05.avi -m 2 -x 488 -y 324 -w 144 -h 114 ' \
 -i intro.mp2 -target pal-dvd -acodec copy menu_ff.vob


Thanks,
V?ctor
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pip.zip
Type: application/octet-stream
Size: 8709 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061025/aac034c8/attachment.obj>



More information about the ffmpeg-devel mailing list