imxipuvideotransform outputs black video in BGR format

cancel
Showing results for 
Search instead for 
Did you mean: 

imxipuvideotransform outputs black video in BGR format

Jump to solution
794 Views
mashah
Contributor I

Hi,

I'm trying to open a video stream in opencv with minimal software conversion from a mipi csi ov5640 camera. My pipeline is: 

`imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! video/x-raw, format=BGR ! appsink`

This results in a black display with all the frames coming out of the pipeline being empty. If I use `videoconvert` instead of `imxipuvideotransform` the pipeline works just fine but the effective fps is ~12 at 640x480, which is too slow for my application. 

I also tried some pipelines on the commandline with the following effects:

`gst-launch-1.0 imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! video/x-raw, format=BGR ! imxipuvideosink`

The right half of the resulting video is discolored with almost a brown color

`gst-launch-1.0 imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! video/x-raw, format=BGR ! imxeglvivsink`

The resulting video is black

Both of the above commands executed with a BGRA format display the feed correctly. I've attached images to show the results of each pipeline

System:

Apalis i.MX6D 1GB V1.1

Linux 4.1.44-2.7.5

OpenCV 3.1

GStreamer 1.8.3

Labels (4)
0 Kudos
1 Solution
455 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Abbas

one can test with nxp version of gstreamer plugins : imx-gst1.0-plugin using

sect.7.3.15 Video conversion attached Linux Guide and bsps described on

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

Linux 4.1.44 and community version gstreamer-imx are not supported by nxp and

it can be posted on gstreamer-imx github page :
https://github.com/Freescale/gstreamer-imx/issues

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

View solution in original post

0 Kudos
1 Reply
456 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Abbas

one can test with nxp version of gstreamer plugins : imx-gst1.0-plugin using

sect.7.3.15 Video conversion attached Linux Guide and bsps described on

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

Linux 4.1.44 and community version gstreamer-imx are not supported by nxp and

it can be posted on gstreamer-imx github page :
https://github.com/Freescale/gstreamer-imx/issues

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

View solution in original post

0 Kudos