Overlaying an image on a video

Rick T ratulloch at gmail.com
Thu Mar 1 11:55:45 PST 2012


here's an example that works with overlaying text on top of video

gst-launch-0.10 v4l2src !
'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! \
timeoverlay halignment=right valignment=bottom shaded-background=true ! \
clockoverlay halignment=left valignment=bottom text="M/D/Y:"
shaded-background=true time-format="%m/%d/%Y %H:%M:%S" ! \
tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue ! videorate
! \
'video/x-raw-yuv,framerate=30/1' ! theoraenc ! queue ! oggmux ! \
filesink location=testogg.ogg


On Thu, Mar 1, 2012 at 9:50 AM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:

> 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 !
> > videomixer 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
>



--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120301/5775efac/attachment.htm>


More information about the gstreamer-devel mailing list