gstreamer - Use gst-launch to output a video frame to certain position on framebuffer -


currently using below command play video clip:

gst-launch filesrc location=/media/sda1/mpeg4_640x480.mp4 ! decodebin2 name=dec ! queue ! ffmpegcolorspace ! videoscale ! video/x-raw-rgb,width=320, height=240 ! fbdevsink dec. ! queue ! audioconvert ! autoaudiosink 

the video frame reiszed 320x240 , outputted framebuffer. however, we'd set video frame (x, y). possible?

try using "videobox" element. in top, left, bottom, , right properties, positive values used cropping, you'll want use negative values offsetting.

this pipeline move 640x360 video test source bottom right corner of 1280x720 output:

gst-launch-1.0 videotestsrc ! video/x-raw,width=640,height=360 ! videoconvert ! videobox left=-640 right=0 top=-360 bottom=0 ! video/x-raw,width=1280,height=720 ! autovideosink

and can use "fill" property control how space filled.

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-videobox.html


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -