ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.54k stars 5.37k forks source link

Ingest: The delay is a bit high, around 6 to 7 seconds, when accessing the Hikvision camera for distributing RTMP stream through RTSP. #1880

Closed huangli321456 closed 3 years ago

huangli321456 commented 4 years ago

Description'

Please ensure that the markdown structure is maintained.

The delay is a bit high, about 6 to 7 seconds, when accessing the Hikvision camera through RTSP and distributing RTMP stream.

  1. SRS version: 3.0
  2. The log of SRS is as follows:
    xxxxxxxxxxxx
  3. The configuration of SRS is as follows:
    Default configuration

Replay

How to replay bug?

Steps to reproduce the bug ./objs/ffmpeg/bin/ffmpeg -re -rtsp_transport tcp -i "rtsp://admin:admin@192.168.28.111:554/Streaming/Channels/101?transportmode=unicast" -vcodec copy -acodec aac -f flv -y rtmp://192.168.11.183/live/livestream

Expect

Expected behavior

Reduce Latency

Reduce latency

TRANS_BY_GPT3

huangli321456 commented 4 years ago

https://github.com/ossrs/srs/wiki/v3_CN_SampleRealtime After trying out this low-latency solution, the delay can be reduced to 2 seconds without using VLC. Is there any other way to improve it?

TRANS_BY_GPT3

648540858 commented 4 years ago

The delay is also closely related to the playback device you are using.

TRANS_BY_GPT3

huangli321456 commented 4 years ago

At first, VLC was used with a delay of about 6 seconds. Later, SRS player was switched and the delay was reduced to about 2 seconds.

TRANS_BY_GPT3

winlinvip commented 3 years ago

Use WebRTC player.

TRANS_BY_GPT3

zfs1993 commented 2 years ago

How to play rtmp stream with SRS? I couldn't find the format.

TRANS_BY_GPT3