ossrs / srs

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

srt stream status inconsistent in console "System Status" page #3813

Closed laurfb closed 8 months ago

laurfb commented 9 months ago

Hi. Some trouble/inconsistency with ossrs console, trying to display active/closed srt streams status. First of all the srt streams remain displayed as active in the console, indefinitely, in the "System Streams" page, even after their disappearance/disconnection. Using "Kickoff" option generates only the message "warn: {"code":2049}" with no change in status (and no stream close). Moreover, with stream (publish active) no info is displayed in the Video and Audio corresponding fields (I suppose/expect that the audio-video parameters of the received stream should be displayed similar to rtmp streams). Please find attached a screenshot with System Stream page status regarding that behaviour - https://gofile.io/d/H4usfP.

A bug or I'm doing something wrong? srt streams are exact the same as rtmp streams, re-streamed with ffmpeg:

ffmpeg -i rtmp_input_streams -c copy -f mpegts srt://ip_address:10080?streamid=#!::r=live/test_02,m=publish

played well with internal srs player or external, with ffplay:

ffplay srt://ip_address:10080?streamid=#!::r=live/test_02,m=request

OSSRS v6.0.84, in docker with the following config:

listen          1935;
max_connections 1000;
daemon          off;
srs_log_tank    console;
srs_log_level   warn; 
http_api {
    enabled     on;
    listen      1985;
    crossdomain on;
}

http_server {
    enabled     on;
    listen      8080;
    crossdomain on;
    dir         ./objs/nginx/html;
}
srt_server {
    enabled     on;
    listen      10080;
    maxbw       1000000000; 
    connect_timeout 4000; 
    peerlatency     500; 
    recvlatency     500; 
    latency     500; 
    tsbpdmode   on; 
    tlpktdrop       on; 
    sendbuf     1328004; 
    recvbuf         1328004;
}
vhost __defaultVhost__ {
    srt {
        enabled     on;
        srt_to_rtmp off; #on;
    }
}
stats {
    network 0;
    disk    sda sdb xvda xvdb;
}

regards, Laur