I am using TI sitara EVM 437x. I need to play a mp4 video directly on the frame buffer. For that by stopping weston I run gstreamer pipeline as follow. I am successfully able to run video but it is aligned to center only.
I am using this pipeline : # gst-launch-1.0 -v filesrc location = ./promo_video_small.mp4 ! decodebin ! videoconvert ! videoscale ! video/x-raw,width=450,height=280 ! fbdevsink
here is the output :
by changing value of width and height I can change the video display dimensions.
for shifting video to desired x,y position I tried with following pipeline : # gst-launch-1.0 -v filesrc location = ./promo_video_small.mp4 ! decodebin ! videoconvert ! videobox border-alpha=0 ! videobox alpha=0 left=-450 right=-50 top=0 bottom=0 ! videoscale ! video/x-raw,width=380,height=300 ! fbdevsink device=/dev/fb0
By using this pipeline the video is getting compressed i.e. from left border video shifts to right but right border remains as it is or can shift to left but can not shift further in right direction, and while shifting it left black box behind video in background having same size of video frame we have given in pipeline.
if I write +value in left and top or any other margin value it crops the image while -value add the pixel this I read somewhere in videobox property.
here is the output :
how to remove this black box shown on left and right side of the video and how to shift the video without affecting its size of video having transparent background.