androidwebrtcgoogle-glassh.264vp8

Grayscale video streaming from Google Glass using WebRTC


I'm trying to stream audio and video from a Google glass to a browser. The broswer just has to receive the video and audio.

I compiled the google source code following the instructions here http://www.webrtc.org/native-code/android.

So far, it works. But I'm having an issue with the video. It's displaying in grayscale, and I'm not sure what are the changes that I should do on the source code in order to fix this.

Here is a screenshot of the problem:

enter image description here I found two related issues in stackoverflow.com, but I didn't get the solution:

Thanks very much for any help that you can provide!


Solution

  • Per the first answer you gave, you likely need to compensate for a bug in the camera code for Glass. The image capture code probably thinks it's getting YV12, and actually is getting NV21, so the simplest thing to do is to convert NV21 to something else (like i420, which is the common internal video representation used). Alternatively, change the frame objects to say they're NV21 and let the rest of the code handle it.