First of all, thank you for your reply,I used the following command to display:
gst-launch-1.0 -v filesrc location=/run/media/mmcblk1p1/DCIM/VID_20210713_214842.avi ! decodebin name=dec dec. ! queue ! videoconvert ! glimagesink render-rectangle='<100, 0, 1360, 1080>' dec. ! queue ! audioconvert ! audioresample ! autoaudiosink
This command can be used to play on the imx8 device I am using, however, the X-axis position offset of 100 set in the instruction does not take effect, and the video still starts playing from the position (0,0).
What follows is a command that I tried to test for playing simultaneously at (0,0) and (1920,0) on the screen, but it didn't work
gst-launch-1.0 \
videomixer name=mix sink_0::xpos=0 sink_0::ypos=0 sink_1::xpos=1920 sink_1::ypos=0 \
! videoconvert ! kmssink driver-name=drm device=/dev/dri/card0 \
filesrc location=/run/media/mmcblk1p1/DCIM/VID_20210713_214842.avi ! decodebin ! videoconvert ! mix.sink_0 \
filesrc location=/run/media/mmcblk1p1/DCIM/VID_20210713_214842.avi ! decodebin ! videoconvert ! mix.sink_1
In addition, I also tried glimagesink, but it also did not work.
One more thing, I want to know how can I set my QT progress as top window always, I try to set
Qt::WindowStaysOnTopHint
but while new window or show video with GST command, my QT progress window will be covered by other window, I can't get key in this case and I have to press my Qt window to raise it by mouse or fingure. I try to use QT's ”raise“ method and ”setFocus“ method and "repaint" method each 500ms, but QT programs cannot be displayed to the top layer by those ways. I would appreciate it if you could help me solve these two problems