ossrs/srs

FLV: inactive stream when try play

Closed this issue · 1 comments

SRS 6.0.169

I'm trying to play flv, but the server doesn't give anything. The logs say that the stream is not active (active=0 ?). WebRTC/HLS players works

HTTP #0 127.0.0.1:17254 GET http://127.0.0.1:8081/__defaultApp__/pupsik.flv?TEST, content-length=-1
new live source, stream_url=/__defaultApp__/pupsik
create consumer, active=0, queue_size=10000ms, jitter=3
FLV /__defaultApp__/pupsik.flv, encoder=FLV, mw_sleep=350ms, cache=0, msgs=128, dinm=1, guess_av=1/1/0

Also stream IS ACTIVE by API

curl -s "http://127.0.0.1:1986/api/v1/streams/?count=1000" | jq
{
  "code": 0,
  "server": "srs-dev",
  "service": "89p46twi",
  "pid": "2418017",
  "streams": [
    {
      "id": "vid-58758l6",
      "name": "pupsik",
      "vhost": "vid-1c43j14",
      "app": "__defaultApp__",
      "tcUrl": "",
      "url": "/__defaultApp__/pupsik",
      "live_ms": 1757156166106,
      "clients": 1,
      "frames": 0,
      "send_bytes": 4777027,
      "recv_bytes": 150626376,
      "kbps": {
        "recv_30s": 0,
        "send_30s": 0
      },
      "publish": {
        "active": true,
        "cid": "274538g4"
      },
      "video": {
        "codec": "H264",
        "profile": "Baseline",
        "level": "3.1",
        "width": 640,
        "height": 480
      },
      "audio": {
        "codec": "AAC",
        "sample_rate": 44100,
        "channel": 2,
        "profile": "LC"
      }
    }
  ]
}

  • Start WebRTC publish via WHIP (google chrome)
  • Play FLV

The same stream is played on edge, but no from origin

After restarting the stream everything is back to normal, but it is very unpleasant and happens periodically

Dup to #4497