psolyca / Yi_4k_ROOTFS

Yi 4k file system optimisation and debug
39 stars 3 forks source link

Bitrate, Resolution, Latency? #8

Open TheCutter opened 1 year ago

TheCutter commented 1 year ago

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

psolyca commented 1 year ago

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.

TheCutter commented 1 year ago

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

psolyca commented 1 year ago

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.

TheCutter commented 1 year ago

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

psolyca commented 1 year ago

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.