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

Víctor Paesa wzrlpy
Wed Oct 25 00:13:52 CEST 2006


Hi,
> This is how it goes for me
>
> ---------------------------------
> gcc -I/sources/ffmpeg-stable -I/sources/ffmpeg-stable
> -I/sources/ffmpeg-stable/libavutil
>  -I/sources/ffmpeg-stable/libavcodec -I/sources/ffmpeg-stable/libavformat
> -I/sources/ffmpeg-stable/libswscale
>  -fPIC  -fomit-frame-pointer -g -Wall -Wno-switch -Wdisabled-optimization
> -Wpointer-arith
>  -Wredundant-decls -Winline -O3 -DHAVE_AV_CONFIG_H
> `freetype-config --cflags`   -c -o pip.o pip.c
> In file included from pip.c:139:
> /sources/ffmpeg-stable/libavformat/avformat.h:249: warning: `AVFrac' is
> deprecated (declared at /sources/ffmpeg-stable/libavformat/avformat.h:102)
> [cut warnings]
> ---------------------------------
>
> No errors. This is Debian sarge btw
>
> Line 987 is : "ci->x_size, ci->y_size, PIX_FMT_RGBA32,"
> It's part of
>                     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);
>
> ci->x_size & ci->y_size are int
>
> Resending the full patch (one whole patch) just to be sure :)
>

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




More information about the ffmpeg-devel mailing list