[gst-devel] Mixing video producing insets/PIP

Gergely Nagy gergely.nagy at neteyes.hu
Tue Feb 22 15:34:56 CET 2005


On Wed, 2005-02-23 at 12:03 +1300, David Mohring wrote: 
> With the current ( or near future ) elements/plugins in gstreamer, is it
> possible to mix video files/streams so that one video is inset inside
> the other ( as in picture in picture TV )?

You mean like this: http://neteyes.hu/~algernon/inset.jpg ?

If you do, then yes.

(The above picture was generated with the following command:

gst-launch v4lsrc autoprobe=0 autoprobe-fps=0 ! \
	   video/x-raw-yuv,width=320,height=240,framerate=(double)10 ! \
	   tee name=video_src ! alpha name=picture_out \
	   \
	   video_src. ! videoscale ! \
	   video/x-raw-yuv,width=160,height=120 ! \
	   alpha name=picture_in \
	   \
	   picture_out. ! imagemixer xpos=80 ypos=40 name=mixer \
	   picture_in. ! mixer. \
	   \
	   mixer. ! ffmpegcolorspace ! jpegenc ! filesink location=inset.jpg
)

-- 
Gergely Nagy <gergely.nagy at neteyes.hu>
NetEyes Kft.





More information about the gstreamer-devel mailing list