AnsweredAssumed Answered

imxipuvideotransform outputs black video in BGR format

Question asked by Abbas Shah on Mar 22, 2018
Latest reply on Mar 22, 2018 by igorpadykov

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

Outcomes