Closed eliabruni closed 1 year ago
Hi, here is my answer
Hey, thanks for the prompt reply!
FRAMESIZE_VGA
which should correspond to 640x480, correct? Do you think there is any chance I could bring latency down to say 100ms in some way?
if use chrome as client, i think the limit of latency should be 200~300 ms
My use-case is a bit different. Right now I am using aiortc to send image frames from an RPI to an aiortc receiver
(no browser). The aiortc receiver
then performs some deep learning on the frames. For that to work I would need approx 10 FPS but low latency, with FRAMESIZE_HVGA
or FRAMESIZE_VGA
. Pear seems to be a great project if I want to try to port my application from RPI to esp32 (btw, I am planning to use this XIAO-ESP32S3-Sense).
Assumed I can reach the desired performance, I would have then to figure out one of the following options I guess:
A. Combining Pear (esp32 side) and aiortc (receiver side). For instance, using the datachannel of your example, I suppose that aiortc could receive binary data over WebRTC B. Porting everything to Pear: that means I would write the receiver side in Pear too, but I am not sure that is possible as it is meant to be used with the Browser?
i see. with aiortc receiver
should be easier, because aiortc already support datachannel. With this esp32 example, when on_message
is called in aiortc, a complete jpeg image will be received. Although i am not sure pear can work with aiortc, but datachannel is webrtc standard and it should be easy to fix. if you have connection issue between pear and aiortc, can let me know~ i will try to fix it. Of course, you may need to implement your own signaling
Alright, thanks for the feedback and availability for helping out! I will work on this in a couple of weeks and will let you know once I have some results.
Hey,
Cool project! I have two questions:
Thanks!