-
now I have a DJI drone pushing to SRS via RTMP, I'm sure the signal of the DJI drone is not particularly good. With the original docker configuration, the browser client cannot play smoothly using the FLV protocol, but the VLC player can. I have read the official website of SRS about the configuration related to GOP-Cache, but it seems that the configuration I made is not taking effect. srs_version: v5.0.208 I want to know if SRS has any support for increasing latency to ensure video transmission. My configuration file, I only modified the RTMP listening port. # docker config for srs.
# @see full.conf for detail config.
listen 9035;
max_connections 1000;
# For docker, please use docker logs to manage the logs of SRS.
# See https://docs.docker.com/config/containers/logging/
srs_log_tank console;
daemon off;
http_api {
enabled on;
listen 1985;
}
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
rtc_server {
enabled on;
listen 8000;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
candidate $CANDIDATE;
}
vhost __defaultVhost__ {
hls {
enabled on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
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;
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The gop cache is to speed up rendring the first frame for players, but not for publishing. If your network is bad, like 10% loss, you are not able to publish RTMP stream, which is based on TCP and will be stuck. You can simulate and test it by this tool https://github.com/ossrs/tc-ui |
Beta Was this translation helpful? Give feedback.
The gop cache is to speed up rendring the first frame for players, but not for publishing. If your network is bad, like 10% loss, you are not able to publish RTMP stream, which is based on TCP and will be stuck. You can simulate and test it by this tool https://github.com/ossrs/tc-ui