You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user has downloaded version 5.0-r2 of the SRS (Simple Real-time Server) source code and compiled it locally. They have successfully connected to a national standard camera, and both the connection and playback are working normally. They have observed the performance of both FLV and WebRTC streaming. However, they are experiencing an issue with WebRTC latency, which is around 4 seconds. They are unsure if this is due to TCP and are confused because the expected latency, as per the documentation, should be less than 1 second. They are seeking an explanation for this discrepancy.
The user is referring to the configuration file for SRS (Simple Real-time Server) named "push.gb28181.conf" and is indicating that they will provide the main content of the configuration settings next.
stream_caster {
enabled on;
caster gb28181;
output rtmp://127.0.0.1/live/[stream];
listen 9000;
# Deprecated config, moved to sip.candidate, see gb28181.conf
# @seehttps://ossrs.net/lts/zh-cn/docs/v5/doc/gb28181#config-candidate
host 172.24.9.59;
sip {
enabled on;
listen 5060;
serial 34020000002000000001;
realm 3402000000;
}
}
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
@winlinvip Concerning this matter, is the latency within expected parameters? If it is not, what steps can I take to address it?
TRANS_BY_GPT4
winlinvip
changed the title
Version 5.0 of the G28181 protocol, issues with latency when playing WebRTC.
GB28181: Large latency when playing WebRTC.
May 24, 2024
Generally speaking, issues like delays are not immediately apparent as to what the problem is. If you are unable to resolve it on your own, it is recommended to try out several open-source software solutions.
Generally speaking, issues like delays are not immediately apparent as to what the problem is. If you are unable to resolve it on your own, it is recommended to try out several open-source software solutions.
TRANS_BY_GPT4
Thank you, I query additional information to resolve it. I use the rtc version of srs-gb28181, the delay is within 1 second, perhaps the reason is the older version use udp, the 5.0 use tcp
The user has downloaded version 5.0-r2 of the SRS (Simple Real-time Server) source code and compiled it locally. They have successfully connected to a national standard camera, and both the connection and playback are working normally. They have observed the performance of both FLV and WebRTC streaming. However, they are experiencing an issue with WebRTC latency, which is around 4 seconds. They are unsure if this is due to TCP and are confused because the expected latency, as per the documentation, should be less than 1 second. They are seeking an explanation for this discrepancy.
![123456](https://private-user-images.githubusercontent.com/24297022/331934473-7cbe5a26-d95f-433c-80c8-4ffa5ed0c9e8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NDU5MDEsIm5iZiI6MTcyNTU0NTYwMSwicGF0aCI6Ii8yNDI5NzAyMi8zMzE5MzQ0NzMtN2NiZTVhMjYtZDk1Zi00MzNjLTgwYzgtNGZmYTVlZDBjOWU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA1VDE0MTMyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkNWM1Mzk5ZjkzYTJjMDIzMGRiYjZjMGFlYTk2ODIwMzljMmFjNjdhMzBkZjgwYTUxZjU1ZTJlODMwMTVkMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3pdCe4duM5OcQAiecLhB9LLBVTGIuArBSwDkqsB7Jrs)
The user is referring to the configuration file for SRS (Simple Real-time Server) named "push.gb28181.conf" and is indicating that they will provide the main content of the configuration settings next.
stream_caster {
enabled on;
caster gb28181;
output rtmp://127.0.0.1/live/[stream];
listen 9000;
# Deprecated config, moved to sip.candidate, see gb28181.conf
# @see https://ossrs.net/lts/zh-cn/docs/v5/doc/gb28181#config-candidate
host 172.24.9.59;
sip {
enabled on;
listen 5060;
serial 34020000002000000001;
realm 3402000000;
}
}
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
http_api {
enabled on;
listen 1985;
}
stats {
network 0;
}
rtc_server {
enabled on;
listen 8000; # UDP port
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
candidate 172.24.9.59;
}
vhost defaultVhost {
rtc {
enabled on;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
rtmp_to_rtc on;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
rtc_to_rtmp on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
hls {
enabled off;
}
}
TRANS_BY_GPT4
The text was updated successfully, but these errors were encountered: