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.74k stars 5.28k forks source link

In OBS, after using the Whip protocol to stream, FLV playback is not possible. #3959

Closed djkcyl closed 3 months ago

djkcyl commented 4 months ago

Describe the bug Using OBS to stream with the WHIP protocol results in FLV playback failure, whereas streaming with WHEP protocol allows for normal playback.

Version SRS/6.0.113(Hang), MIT

Config


listen 1935;
max_connections 1000;
daemon off;
srs_log_tank console;

http_server {
    enabled on;
    listen 8180;
    dir ./objs/nginx/html;
}

http_api {
    enabled on;
    listen 8180;
}

stats {
    network 0;
}

rtc_server {
    enabled on;
    listen 8000; # UDP port
    candidate xxxxxx;
    tcp {
        enabled on;
        listen 8000;
    }
    protocol all;
}

stream_caster {
    enabled on;
    caster gb28181;
    output rtmp://127.0.0.1/live/[stream];
    listen 9000;
    sip {
        enabled on;
        listen 5060;
        candidate xxxxxx;
    }
}

vhost xxx.xxx {
    tcp_nodelay on;
    min_latency on;
    rtc {
        enabled on;
        rtmp_to_rtc on;
        rtc_to_rtmp on;
        keep_bframe off;
    }
    http_remux {
        enabled on;
        mount [vhost]/[app]/[stream].flv;
    }
    play {
        gop_cache off;
        queue_length 10;
        mw_latency 100;
    }
    publish {
        mr off;
    }
}

Screenshots image

TRANS_BY_GPT4

djkcyl commented 4 months ago

image image

RTMP and FLV streams are both unable to be pulled for playback.

TRANS_BY_GPT4

winlinvip commented 3 months ago

The issue you've raised already exists in the Issues section; it is a duplicate and will be removed. Please search for it in the Issues section under #2716.

TRANS_BY_GPT4