tkmn0 / SimpleWebRTCExample_iOS

Simple example for WebRTC on iOS written in swift5
MIT License
178 stars 49 forks source link

Problem With video settings please help me. #41

Open svpapps opened 2 years ago

svpapps commented 2 years ago

I am using your demo in my application for webrtc.. now client want 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.

IMG_E3BAD6864DB5-1

I change This code for tensor flow layout. if I am using your video type then working fine. but for tensoflow It need RGB format so I change video format. it works when I change video format.. but camera showing orange lines.

Screenshot 2022-05-01 at 1 30 54 PM

this is tansorflow layout code if i use video type "kCVPixelFormatType_420YpCbCr8BiPlanarFullRange" then it crash selected line in tensor flow

Screenshot 2022-05-01 at 1 42 28 PM

Please help on this.