imxg2dcompositor

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

imxg2dcompositor

2,049 Views
cristianochiepp
Contributor I

Dear All, I'm struggling with the gstreamer on a SABRE iMX6 quad core. I have prepare an image with Ubuntu 16 and compiled gstreamer iMX. I would like to use the imxg2dcompositor to gather 4 h264 streams. 

The pipeline I have prepared, following some docs on the Network, is the following:

gst-launch-1.0 \
imxg2dcompositor name=c background-color=0xFF \
sink_0::xpos=0 sink_0::ypos=0 sink_0::width=400 sink_0::height=300 \
sink_1::xpos=400 sink_1::ypos=0 sink_1::width=400 sink_1::height=300  \
queue2 ! video/x-raw, width=800, height=600 ! imxipuvideosink \
rtspsrc location=rtsp://<user>:<pwd>@192.168.1.250/h264_2 ! rtph264depay ! h264parse ! imxvpudec ! queue2 ! c.sink_0 \
rtspsrc location=rtsp://<user>:<pwd>@192.168.1.188/h264_2 ! rtph264depay ! h264parse ! imxvpudec ! queue2 ! c.sink_1

I have got to face with the following  problem: the video is black, none of the streams is visible. 

If I convert the pipe on my Ubuntu workstation (with the "normal" compositor, and using avdec_h264) everything works like a charm.

Moreover, if I use the same stream (2 times the H264 from a same camera), it works!

I have tried several tests to solve the problem, went to any corner of google, but I haven't found out any interesting answer.

Btw, I have also tried the imxipucompositor: same problem.

Where I wrong?

Thank you for any advise.

Labels (3)
3 Replies

1,701 Views
tyounger
Contributor II

I have the same problem. I ended up lowering the frame rate and using videomixer instead.

0 Kudos
Reply

1,701 Views
cristianochiepp
Contributor I

Dear Igor, thank you for your replay. Unfortunately I know well the examples from Gateworks and the ones in the manual (and there isn't one with several h264 from streams, all composed in one from live views, strange, because is common). I think the problem is different and could be a) a mistake that I make in the pipeline b) a problem with img2compositor with h264. I will post on the group you said me. In the meantime, if someone has experienced such kind of problem, I will accept any advise. Thank you

0 Kudos
Reply

1,701 Views
igorpadykov
NXP Employee
NXP Employee

Hi Cristiano

one can look at examples on: trac.gateworks.com/wiki/Yocto/gstreamer

imxg2dcompositor is part of gstreamer-imx plugins which are supported by

community: meta-freescale Info Page 

Alternatively one can try with nxp gstreamer plugins described in attached Linux Guide

sect. Mulimedia.

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

0 Kudos
Reply