kclyu / rpi-webrtc-streamer

This repo's objective is providing something like Web Cam server on the most popular Raspberry PI hardware. By integrating [WebRTC](https://webrtc.org/native-code/) and Raspberry PI, we can stream the Raspberry camera feed to browser or native client which talks WebRTC.
Other
629 stars 108 forks source link

decrease video latency #49

Closed adrian23 closed 6 years ago

adrian23 commented 6 years ago

Hello, with your program i was able to send vide ( local network ) with 200ms of video delay, Can You please tell me is it possibel to decrease this latency, where to look what to change. I'm using webrtc to control robot thats why its important for me to have as low latency as possible. ThankYou

kclyu commented 6 years ago

I do not think there is a way to recommend it at this time. RWS can be considered to be optimized for WebRTC h.264 transmission part using WebRTC native code.

I think there are some areas where there is room for improvement in the environmental part, but I have not considered this part yet.

Some of the things to try is to fix video resolution to low resolution (640x480 or less), to use RTP without using SRTP if you use only in local network, or to use wired LAN instead of wireless network if you can use wired LAN There may be ways.

adrian23 commented 6 years ago

Thank you very much, No, wired LAN is not an option since its just driving model car ;) . I will try then with decrease resolution and have it fixed as You recomended. If You have any other ideas or clues just let me know ThankYou for your response

tartavull commented 5 years ago

@adrian23 I'm just curious, at what resolution and fps did you experience the 200ms latency?

adrian23 commented 5 years ago

https://www.youtube.com/watch?v=iy9wFZaTxFA&feature=youtu.be finally i have 140 in local network and 170 outside I think resulution was 320x240 and 512x384 - since its dynamic

sob., 23 mar 2019 o 19:24 Ignacio Tartavull notifications@github.com napisał(a):

@adrian23 https://github.com/adrian23 I'm just curious, at what resolution and fps did you experience the 200ms latency?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kclyu/rpi-webrtc-streamer/issues/49#issuecomment-475893057, or mute the thread https://github.com/notifications/unsubscribe-auth/AD6EeWXgTp1WjnSBk2VyBQSOA_hjpHiKks5vZnFRgaJpZM4VaAz0 .