Multiple Video Display on Single 5 Inch Screen using NXP i.MX7D

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

Multiple Video Display on Single 5 Inch Screen using NXP i.MX7D

1,797 Views
atulbabanchavan
Contributor II

I am exploring NXP i.MX7D starter kit. I have successfully installed yocto image "pico-imx7_pico-pi_yocto-2.0-qt5-fb_TTL_LCD-800x480_20170411.zip" on the board.I want to use 5 inch screen came with kit for multiple displays. I am using gstreamer for displaying and streaming. MIPI Camera (OV5645) came with kit is used.

I am able to display camera output locally using the following command:
gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxv4l2sink

I am able stream camera output and loopback locally using following commands:
SENDER:
gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,width=640,height=480 ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5001
RECEIVER:
gst-launch-1.0 udpsrc port=5001 ! application/x-rtp,encoding-name=JPEG, payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink

I want to display my camera output locally and also I want to display videos which I will receive over ethernet from other devices over network. So basically I should able to see multiple videos (2 or 3) on my small 5 inch display.
When I am trying some commands from i.MX Linux userguide, I am getting errors like: no-element "overlaysink","vpudec".
Can anyone provide me example on this.
I am new to YOCTO and NXP. Please guide me on this line.

Labels (1)
0 Kudos
Reply
5 Replies

1,534 Views
atulbabanchavan
Contributor II

Hi NXP Community,

Is it the right forum where I am posting my doubts? Can anyone please provide me link where I can get more details regarding the issues I am discussing above.

0 Kudos
Reply

1,534 Views
Yuri
NXP Employee
NXP Employee

Hello,

   

  Use sections 7.3.1.6 (Video playback to multiple displays) and 7.3.1.6.3 (Multiple videos overlay)

of "i.MX_Linux_User's_Guide.pdf" of the recent NXP Linux BSP.

https://www.nxp.com/webapp/Download?colCode=L4.9.88_2.0.0_LINUX_DOCS

  Note, i.MX7 does not suport in hardware video codecs. No VPU. Only software approach may be used.

Regards,

Yuri.

1,534 Views
atulbabanchavan
Contributor II

Hi Yuri.

Thank you for your reply.

The linked mentioned by you is not opening.

I used recent "i.MX_Linux_User's_Guide.pdf", following are the commands I tried and its output:

7.3.1.2 Video-only playback

$GSTL filesrc location=test.mp4 typefind=true
! video/quicktime ! aiurdemux ! queue max-size-time=0
! avdec_h264 ! autovideosink

erroneous pipeline: no element "avdec_h264"


7.3.1.6.3 Multiple videos overlay

gst-launch-1.0 playbin uri=file://$FILE1
video-sink="overlaysink overlay-width=512 overlay-height=384"

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

I think complete gstreamer package is not installed in this Yocto release. If this is the case, then how to add remaining gstreamer packages ? Is there any way to install missing packages like we install in ubuntu using apt-get? Or we have to build yocto image from scratch?

Can you please guide me on how to do this.

Thank You.

Atul.

0 Kudos
Reply

1,534 Views
atulbabanchavan
Contributor II

Can anyone please guide me in this line.....

0 Kudos
Reply

1,534 Views
atulbabanchavan
Contributor II

can anyone please guide me on the above topic.

0 Kudos
Reply