Hello, I’m having issues with an increase in latency in slicer. The outputted stream suffers from a constant increase in latency.
I suspect the issue has to do with a delay in plus server. When I run the stream directly on VLC media, the output remains at a constant latency (around 620ms), however as soon as I run plus server, latency begins to increase steadily (over 30s delay after ~10min of having it running). Restarting plus server resets the latency, but it increases again in the same manner over time.
For context I’m running an Android emulator off of my PC, with FFmpeg and MediaMTX as the streaming ports. Is this an issue seen before?
Instructions (I’m operating on a Windows 11 Machine):
Download/run an android emulator, I use Genymotion (its free and is easiest to install)
i. I’m running a custom tablet version 12.1. Increase Hardware specs if you’d like but default settings for the rest is fine.
ii. For testing latency I play the stopwatch on the android to check for noticeable time changes.
Download/run MediaMTX
i. In a new terminal cd to mediamtx folder and run mediamtx.exe
If this works correctly, you should see a line saying:
“[RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)” * Allow this application to continue running in the background.
Download/run FFmpeg.
i. In a new termainl cd to /ffmpeg/bin and run:
Note: Change the title of the window to the window of the android emulator.
If this works correctly, you should see an increasing counter showing the number of frames that have been sent. Allow this application to continue running in the background.
Run fCal (or Plus Server Launcher → Slicer if you’d like) and check to see an increase in latency. After a few minutes you should see an increase in difference between the stop watch on the android and the stop watch streamed through plus server.
Comparing with a VLC stream (where there is no change in latency), I believe this issue has to do with the way plus server is processing the stream. This could also have to do with the android emulator being used. Please let me know if I should clarify anything else.
I was able to resolve the issue. I think it had to do with the bit rate that the stream was being rendered at as this caused slow connection issues to increase latency.