Yi_4k_ROOTFS icon indicating copy to clipboard operation
Yi_4k_ROOTFS copied to clipboard

Bitrate, Resolution, Latency?

Open TheCutter opened this issue 2 years ago • 5 comments

Hey,

first thank you very much for the custom firmware. I tried to get my Yi 4k running as a rtsp device to use it as a webcam. I got it working with Ethernet over USB on windows with Event Manager.

But:

  1. What is the resolution and bitrate that is used, when started via Event Manager?
  2. Is it possible to reduce the latency of the stream to use it as a webcam? Currently the latency is around 2 seconds.

Thanks in advance

TheCutter avatar Nov 09 '22 09:11 TheCutter

For the resolution, it should be the default stream resolution... do not remember which one ^^; We already tried to reduce latency when using the RTSP server and OBS but never really managed to get it low. We do not know why this latency is so high. Currently, i'm on another subject for the Yi4k so I will look at stream trouble later.

psolyca avatar Nov 10 '22 09:11 psolyca

Thank you! I read somewhere that it has something to do with the internal handling of the stream.

TheCutter avatar Nov 10 '22 09:11 TheCutter

Yep, and there are 2 different stream, one created for the ViewFinder (RTSP) and one when streaming (RTMP) but they have both high latency. I do not know if I can change something without the source code.

psolyca avatar Nov 10 '22 09:11 psolyca

Ah okay I see. So the internal ViewFinder Display is also a stream? But on the screen it is played in realtime. Thats strange.

TheCutter avatar Nov 10 '22 09:11 TheCutter

Yes but you can find it on the cam using the official app when viewing in realtime. It's the RTSP stream. RTMP is started when starting a stream to a service.

psolyca avatar Nov 10 '22 09:11 psolyca