FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.91k stars 355 forks source link

Latency gradually increases; video is slower than device's screen? #265

Open ghost opened 2 years ago

ghost commented 2 years ago

It appears that the latency of the video feed gradually increases. However, in close inspection, it actually appears that the rendered video feed is slower than the device's screen, which would explain that the latency gradually increases.

+-------+-----------------------------------------------------------------------------------------+
|       | Rendered frame                                                                          |
+-------+-----------------------------------------------------------------------------------------+
|Device | frame1 frame2 frame3 frame4 frame5 frame6 frame7 frame8 frame9 frame10                  |
+-------+-----------------------------------------------------------------------------------------+
|RPiPlay| frame1   frame2   frame3   frame4   frame5   frame6   frame7   frame8   frame9   frame10|
+-------+-----------------------------------------------------------------------------------------+

I can't explain this very well, I hope you find this table helpful.

pallas commented 2 years ago

Are you using gstreamer or ilclient?

ghost commented 2 years ago

Unknown, If it helps, I use this command-line: rpiplay -n rpiplay_72849872 -l -a off

ghost commented 2 years ago

I think it's gstreamer.

ghost commented 2 years ago

Is this known to happen when the GPU is weak? I have an Intel "HD" Graphics iGPU.

ghost commented 2 years ago

...bump?

fduncanh commented 2 years ago

If you are not using the Raspberry Pi (just desktop linux), you could test on the RPiPlay derivative UxPlay http://github.com/FDH2/UxPlay. Although this has some improvements, you will probably find the same issue. It would be useful to know,.

ghost commented 2 years ago

Unfortunately, I have the same issue there. Sorry for late reply, I do not have much free time at the moment.

GRrHaG commented 2 years ago

i have a same problem with RPI 3 buster 32b, do you have an issues ?

dabreaka commented 1 year ago

I have the same problem with a RPI 3 B - 1 GB main memory ... I don't even want to mirror a video, just the screen of an iphone

fduncanh commented 1 year ago

If you are willing to update from Buster to RPi OS Bullseye, UxPlay1.63 https://github.com/FDH2/UxPlay (derived from RPiPlay, but now greatly evolved) may solve your issue (use the -vsync option of UxPlay-1.63). Its RPi support is developed on RPi 4B, but is reported to work on R Pi 3B. Test it on a spare micro SD card.