This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Guide: How to discover the latency issue. #2742
Labels
Discussion
Discussion or questions.
EnglishNative
This issue is conveyed exclusively in English.
Won't fix
We won't fix it.
Milestone
This article describes how to troubleshoot high latency, with the main steps as follows:
FFmpeg
You can use FFmpeg to capture local time and write it to the video stream. This way, you can compare the images from different links to determine where the latency is.
You can use FFmpeg filters to achieve this. For specific filter parameters, please refer to FFmpeg.org:
-vf drawtext="fontfile=arial.ttf:text='%{localtime\:%X}':x=10:y=10:fontsize=40:fontcolor=white"
For example, a specific example:
Open the player: http://localhost:8080/players/srs_player.html?autostart=true
OBS Stopwatch
Open a stopwatch webpage in your browser, capture the browser window with OBS, and observe the difference between the stopwatch numbers in the streaming video and the stopwatch browser.
For example, a stopwatch page, timeanddate, there are two ways to capture:
After capturing in OBS, you can crop the window by holding down ALT or Option and dragging the window for quick cropping.
OBS Device
Capture video with OBS video capture device
You need to add a timer or time to the OBS source. There are many ways to do this, such as using a Lua script or a browser implementation, etc. For example, a web page clock implementation, add a new browser in OBS source, and enter the URL (web page parameter description):
Don't worry about custom CSS, the web page style in this example is passed through the get parameter style.
The text was updated successfully, but these errors were encountered: