Overlaying an image on a video
Angel Martin
amartin at vicomtech.org
Fri Mar 2 01:33:57 PST 2012
gst-launch videomixer name=mix ! ffmpegcolorspace ! xvimagesink \
filesrc location=XXX.avi ! decodebin ! mix. \
filesrc location=YYY.jpg ! jpegdec ! imagefreeze ! ffmpegcolorspace ! mix.
2012/3/2 Angel Martin <amartin at vicomtech.org>
> You need to use imagefreeze... because videomixer does not manage
> framerate of the picture.
>
> 2012/3/2 <kususe at interfree.it>
>
> Ok, I added a trailing dot.
>> But I got:
>>
>> gstpngdec.c(550): gst_pngdec_task ():
>> /GstPipeline:pipeline0/GstPngDec:pngdec0:
>> stream stopped, reason error
>>
>> with the impossibility to make the "preroll".
>>
>> Cheers,
>> K.
>> -----Messaggio originale-----
>> Da: Tim-Philipp Müller <t.i.m at zen.co.uk>
>> Inviato il: 01 Mar 2012 - 19:50
>> A: gstreamer-devel at lists.freedesktop.org
>>
>>
>> On Thu, 2012-03-01 at 11:40 -0800, kususe wrote:
>>
>> > I want to code a pipeline to overlay an image on a video.
>> > First I would like to understand how to implement this one and then to
>> code
>> > it.
>> > So I attemped with this:
>> >
>> > gst-launch filesrc location=/home/boss/test/video.mpg ! decodebin2 !
>> > vid eomixer name=mix ! xvimagesink filesrc location =
>>
>> > /home/boss/test/image.png ! pngdec ! ffmpegcolorspace ! mix
>> >
>> > but I got: "pipeline wrong. No element called mix"
>>
>> I believe the syntax you're looking for is mix. with a trailing dot,
>> this basically means "a suitable pad on the element named 'mix'".
>>
>> Cheers
>> -Tim
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>>
>> -------------------------------------------------------------------------------
>> Valore legale alle tue mail
>> InterfreePEC - la tua Posta Elettronica Certificata
>> http://pec.interfree.it
>>
>> -------------------------------------------------------------------------------
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120302/d186f566/attachment.htm>
More information about the gstreamer-devel
mailing list