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
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
However, the display position setting on the minus side seems to be ignored.
Input [x y width height]: -1920 -1080 3840 2160
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
Solved! Go to Solution.
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
@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
HI George,
an engineer will be assigned to work with you on this case.
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?
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
for imx8M, try to use waylandsink to replace overlaysink
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
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
Dear joanxie,
WARNING: erroneous pipeline: no element "imxcompositor_g2d"
It seems that only "i.MX8M" can not use G2D.
BR,
George
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