This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Move the gstreamer video window around the screen

Hi all

I'm working with gstreamer. Currently I'm able to show the gstreamer video but the window showing the video appear always in the center of the display. I'm looking for a way to move this window for example in the upper left side of the display. Currently I still didn't find a way for move the window in the point I need. The only way that seem to work temporanely is to set the new coordinates to /sys/device/playform/omapdss/overlay1/position as:

echo 0,0 > /sys/device/playform/omapdss/overlay1/position

but the video window is moved for an instant and is repositioned immediately in the center of the screen....

Someone know a way for do that?

Thank you

  • Hi,

    I am not a gstreamer expert so I may not be able to help you from gstreamer perspective, but I believe video1 overlay is being controlled through V4L2 driver interface, where the window position is being controlled through "VIDIOC_S_FMT", so you should be searching for this and make sure that "top" and "top" configuration is 0,0.

    Thanks,

    Vaibhav

  • If you are using v4l2sink which is a part of gst-plugins-good plug-in you could use the overlay-top and overlay-left feature to set the coordinates of the video overlay, as Vaibhav mentioned it uses the VIDIOC_S_FMT ioctl to set the parameters. It defaults to (0,0).

    I would recommend re-posting this question on the gstreamer forum.

    Regards, Punya

  • Hi

    Thank you to both for your replies. I modified the TI Gstreamer plugin for add new option for set the video window position. This solution seem to work well right now.

    Regards