About display position settings for gplay

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About display position settings for gplay

Jump to solution
3,236 Views
george
Senior Contributor II

Dear All,

We are developing a display application using gplay for our product using i.MX8M.

gplay can set the display position using the "z" command.

We did some positioning, but one did not work as intended.

The command used is as follows:

   $ gplay-1.0 --video-sink=kmssink big_buck_bunny_4k_h264_30frame.mp4

               pastedImage_11.png

Even if you use 4K size video, the display position setting on the positive side was possible.

   Input [x y width height]: 1920 1080 3840 2160

               pastedImage_13.png

However, the display position setting on the minus side seems to be ignored.

   Input [x y width height]: -1920 -1080 3840 2160

               pastedImage_14.png

Does anyone have any advice on how to negative coordinate settings?

*We used L4.14.98_2.0.0_ga demo SD image and i.MX8M-EVK (Rev. B4) for this check.

*The video source used was obtained from the following URL:

   http://bbb3d.renderfarming.net/download.html

Best Regards,

George

Labels (1)
1 Solution
2,858 Views
joanxie
NXP TechSupport
NXP TechSupport

yes imx8M doesn't support 2d gpu, but why don't you need to use negative position? I don't think gplay can support negative position

View solution in original post

10 Replies
897 Views
r_trivedi123
Contributor IV

@george, Hope our created plugin can help for your needs,

sisigaylandsink - A custom gstreamer plugin to control geometry 
Features and demo is provided in the video link.

--
BR
rutvij.trivedi@siliconsignals.io

0 Kudos
2,858 Views
karina_valencia
NXP Apps Support
NXP Apps Support

HI George,

an engineer will be assigned to work with you on this case.

2,858 Views
george
Senior Contributor II

Dear karinavalencia

Please bring someone here to solve our problem.

BR,

George

2,858 Views
joanxie
NXP TechSupport
NXP TechSupport

try to use the command as below:

gst-launch-1.0 playbin uri=file://$FILE1 video-sink="overlaysink overlay-width=xx overlay-height=xx", does it work for you?

0 Kudos
2,858 Views
george
Senior Contributor II

Dear joanxie‌,

We tried that way but nothing was shown.

# gst-launch-1.0 playbin uri=file:///home/root/big_buck_bunny_4k_h264_30frame.mp4 \

video-sink="overlaysink overlay-width=1920 overlay-height=1080"

WARNING: erroneous pipeline: could not set property "video-sink" in element "playbin0" to "overlaysink overlay-width=1920 overlay-height=1080"

Where should we check to use overlaysink?

BR,

George

0 Kudos
2,858 Views
joanxie
NXP TechSupport
NXP TechSupport

for imx8M, try to use waylandsink to replace overlaysink

0 Kudos
2,858 Views
george
Senior Contributor II

Dear joanxie

As you say, we tried changing to overlaysink.

However, the display position could not be specified.

overlaysink seems to have no property for position setting.

Please let me know if there are other ideas to solve this issue?

BR,

George

0 Kudos
2,858 Views
joanxie
NXP TechSupport
NXP TechSupport

I mean that you can use waylandsink, I checked position on waylandsink, can use imxcompositor_g2d, I give an example for this:

# gst-launch-1.0 imxcompositor_g2d name=comp sink_0::xpos=160 sink_0::ypos=120 ! waylandsink videotestsrc ! video/x-raw, width=640, height=480 ! comp.sink_0

 

0 Kudos
2,858 Views
george
Senior Contributor II

Dear joanxie‌,

WARNING: erroneous pipeline: no element "imxcompositor_g2d"

It seems that only "i.MX8M" can not use G2D.

BR,

George

0 Kudos
2,859 Views
joanxie
NXP TechSupport
NXP TechSupport

yes imx8M doesn't support 2d gpu, but why don't you need to use negative position? I don't think gplay can support negative position