MCIMX6SX-SDB OSD/PIP/POP display

cancel
Showing results for 
Search instead for 
Did you mean: 

MCIMX6SX-SDB OSD/PIP/POP display

609 Views
torus1000
Contributor V

Hi,

I downloaded L4.1.15 x11 demo image for MCIMX6SX-SDB and I tested overlay display as following.

     http://www.nxp.com/webapp/Download?colCode=L4.1.15_1.0.0_iMX6SX

gst-launch-1.0 videotestsrc ! imxv4l2sink

gst-launch-1.0 videotestsrc ! overlaysink overlay-width=640 overlay-height=480

gst-launch-1.0 imxv4l2src device=/dev/video3 ! overlaysink overlay-width=640 overlay-height=480 //uvc camera

It seems matchbox-window-manager installed and only one window can activate at once.

(Q) Is there any other window managers which supported i.MX6SX?

(Q) Is there any Gstreamer plugin like mfw_isink to display two videos on the matchbox desktop?

As far as I know I can display two mixed videos as following but too slow and desktop was lost.

gst-launch-1.0 \

    videomixer name=mix ! imxvideoconvert_g2d ! imxv4l2sink \

    videotestsrc pattern="snow" ! "video/x-raw,width=640,height=480" ! alpha alpha=1.0 ! mix. \

    videotestsrc ! "video/x-raw,width=320,height=240" ! alpha alpha=0.3 ! videobox top=-80 left=-80 border-alpha=0.7 ! mix.

Thanks.

Labels (3)
0 Kudos
2 Replies

108 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,


  You may try using overlaysink plugin, as described in section 7.5 (Overlaysink usage) of

“i.MX_Linux_User's_Guide.pdf” :

“The overlaysink plugin is based on the GPU. It provides two main functions for video rendering:

• Video Overlay: composites multiple video playbacks into the same display.

• Multiple Display: shows videos to multiple displays, up to four displays.”

Please refer to section 7.3.1.6.3 (Multiple videos overlay) for example.

Also, please look at section 7.3.16 (Video composition).

http://www.nxp.com/webapp/Download?colCode=L4.1.15_1.2.0_LINUX_DOCS&Parent_nodeId=133769948107170617...

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

108 Views
torus1000
Contributor V

Dear Yuri,

Thank you for helpful advice.

Now I understood some gstreamer plugins behavior which use PXP are not identical to the IPU one.

For example...
In case of MCIMX6DL-SDP, desktop displayed as background.(See attached picture)

 gst-launch-1.0 imxcompositor_g2d name=c \

sink_0::xpos=0 sink_0::ypos=0 sink_0::width=320 sink_0::height=240 sink_0::zorder=55 sink_0::alpha=0.7 \
sink_1::xpos=180 sink_1::ypos=120 sink_1::width=480 sink_1::height=360 ! \
queue2 ! "video/x-raw, width=640, height=480" ! imxvideoconvert_g2d ! imxv4l2sink overlay-width=480 overlay-height=360 \
imxv4l2src device=/dev/video1 ! "video/x-raw, framerate=30/1" ! c.sink_0 \
imxv4l2src device=/dev/video0 ! queue2 ! c.sink_1

But in case of MCIMX6SX-SDP, desktop disappeared.

gst-launch-1.0 imxcompositor_g2d name=c \
sink_0::xpos=0 sink_0::ypos=0 sink_0::width=320 sink_0::height=240 sink_0::zorder=55 sink_0::alpha=0.7 \
sink_1::xpos=180 sink_1::ypos=120 sink_1::width=480 sink_1::height=360 ! \
queue2 ! "video/x-raw, width=640, height=480" ! imxvideoconvert_g2d ! imxv4l2sink overlay-width=480 overlay-height=360 \
imxv4l2src device=/dev/video1 ! "video/x-raw, framerate=30/1" ! c.sink_0 \
imxv4l2src device=/dev/video2 ! queue2 ! c.sink_1

image1c.jpg