Open thaihuynhxyz opened 5 years ago
@thaihuynhxyz, a few insights/questions that might help you:
Hi @jairobjunior
Please tell me if you have any idea? I'd like to improve the performance and the resolution.
I meant to say have you tested using an off-the-shelf Camera 2 app without Webrtc implementation and no live-streaming? Just a Camera2Basic app?
I don't have that camera hardware/module so I am trying to understand what FPS you get when you don't use Webrtc at all. But I do have an USB camera (Webcam) that works fine.
Post-processing would be any extra implementation you add on top of the frames, things like: face detection, filters, AR, CV etc
@jairobjunior Sorry for late response. I install Camera2Basic but cannot start because ANR. I don't use any post-processing, just install this sample. From log I see decode_ms: 61 but encode_ms: 1792, I think that's why it slow.
Before streaming (another client connect, I receive 30fps from camera
com.example.androidthings.videortc I/CameraStatistics: CameraStatistics: Camera fps: 30.
Raspberry Pi 3 Model B V1.2 Android version: 8.1.0 Android Things version: 1.0.5 Raspberry Pi Camera Rev 1.3
CameraStatistics: CameraStatistics: Camera fps: 1.
If I gone SurfaceViewRenderer view in layout. I got log:
CameraStatistics: CameraStatistics: Camera fps: 30.
I assume the cost to render view too much.After another client connect to room:
Should I upgrade hardware that stronger than Raspberry Pi 3 to make a streaming device?