[FFmpeg-soc] vsrc_ppm
Víctor Paesa
victorpaesa at googlemail.com
Thu Dec 6 00:02:09 CET 2007
Hi,
On Dec 4, 2007 4:24 AM, jgh lrhg <nguyenbamanh31 at yahoo.com> wrote:
> Hi all!
> I was built successed ffmpeg with vsrc_ppm but i don't know how to add logo
> to video using vsrc_ppm.
> Anyone tell me agrs to add logo or watermark to video using vsrc_ppm.
> Thanks!
It should be a command alike to this one:
ffmpeg -i input.avi -vfilters graph_file=ppm.desc output.avi
And the ppm.desc would contain something like this:
;-----------------ppm.desc-----------
;
; input --------> overlay --> output
; ^
; ppm ---> scale ---|
;
;----------------ppm.desc-----------
[filters]
ppm=ppm=some_nice.ppm
scale=scale=90:72
overlay=overlay=0:240
[links]
ppm:0=scale:0
scale:0=overlay:1
[inputs]
default=overlay:0
[outputs]
default=overlay:0
But it did not work as expected, as the output.avi has only two frames:
FFmpeg version SVN-r11155, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --disable-static --enable-shared --enable-gpl
--enable-swscaler --enable-pthreads --enable-liba52 --enable-avisynth
--enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame
--enable-libnut --enable-libtheora --enable-libvorbis --enable-libx264
--enable-libxvid --enable-libamr_nb --enable-libamr_wb --cpu=prescott
--enable-avfilter --extra-cflags=-DX_DISPLAY_MISSING
--build-suffix=-SVN
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.1.0
built on Dec 3 2007 13:13:12, gcc: 4.2.2
Input #0, avi, from 'input.avi':
Duration: 00:00:20.2, start: 0.000000, bitrate: 30349 kb/s
Stream #0.0: Video: dvvideo, yuv420p, 720x576 [PAR 0:1 DAR 0:1], 25.00 tb(r)
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
creating filter "graph_file" with args "ppm.desc"
Output #0, avi, to 'output.avi':
Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 0:1 DAR 0:1],
q=2-31, 200 kb/s, 25.00 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 2 fps= 0 q=2.0 Lsize= 61kB time=0.1 bitrate=6266.4kbits/s
video:56kB audio:0kB global headers:0kB muxing overhead 10.062352%
Bobby, Vitor, could you please shed some ligth on this result?
Regards,
Víctor
More information about the FFmpeg-soc
mailing list