Search code examples
videogstreamergst-launch

How can I show a video at a specific posision with gst-launch?


I'm trying to play a video file with gst-launch on a embedded board.

First of all, I can play a video with the command below. - gst-launch-1.0 filesrc location=test.mp4 ! qtdemux ! h264parse ! omxh264dec ! waylandsink

Secondly, I tried to play this video at a specific window position. - gst-launch-1.0 filesrc location=Ex_H.264_AAC_400x300.mp4 ! videobox left=20 right=20 top=20 bottom=20 ! qtdemux ! h264parse ! omxh264dec ! waylandsink (Use gst-launch to output a video frame to certain position on framebuffer)

However, this command makes Error. - WARNING: erroneous pipeline: no element "videobox"

How can I use videobox option or use other ways to show a video at a specific window position?


Solution

  • You should check the Gstremer Bad & weston(or others) source code about waylandsink(or others). Please check it. In case of weston, weston_view_set_position() will decide the video play position.