'Corrupted stream with video settings in webrtc

I am using webrtc in my application. Now my client wants Tensorflow in webrtc. I am done with TensorFlow but the problem with camera video settings.

If I am changing Camera Session video settings then video display like below.

Image

I change this code for TensorFlow layout. If I am using your video type then working fine. But for TensorFlow it need RGB format so I change video format. It works when I change video format, but camera showing orange lines.

Image

This is TensorFlow layout code if I use video type "kCVPixelFormatType_420YpCbCr8BiPlanarFullRange" then it crash selected line in TensorFlow.

Image



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source