Roverr / rtsp-stream

Out of box solution for RTSP - HLS live stream transcoding. Makes RTSP easy to play in browsers.
MIT License
712 stars 167 forks source link

index.m3u8 is empty #51

Open davidfungf opened 4 years ago

davidfungf commented 4 years ago

On rtsp ip camera is configured successfully. When I get the stream by API, it returned the followings. No video is found.

http://x.x.x.x:8080/stream/camera1/index.m3u8

_#EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:1

EXT-X-MEDIA-SEQUENCE:546

EXTINF:0.810667,

546.ts

EXTINF:0.810667,

547.ts

EXTINF:0.810667,

548.ts_

Roverr commented 4 years ago

Hi @davidfungf ,

Hmmm this one is interesting, the metadata you provided seems pretty standard to me. It should tell your player in the browser that it should fetch ${STREAM_API}/546.ts , 547.ts ... etc

Are you sure that the files are created into their directory? Can you see them using SSH or something?

mmm8955405 commented 2 years ago

When encountering the same problem, VLC sets the preference RTP over RSTP to broadcast RSTP streams normally However, the m3u8 path parsed using "rtsp-stream" is null. Only part of RTSP camera data can be played. This "rtsp-stream" project does not have any parsing instructions and parameters, which may be a dead project