harlanc / xiu

A simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
https://www.rustxiu.com
MIT License
1.6k stars 168 forks source link

cannot find .m3u8 for HLS #90

Closed SaulMoonves closed 5 months ago

SaulMoonves commented 5 months ago

XIU version v0.9.0

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:    20.04
Codename:   focal

Describe the bug HLS m3u8 not found

To Reproduce

tried cli and config file, neither work:

/var/lib/xiu/.cargo/bin/xiu --rtmp 1936 --hls 8091 -l debug
Jan 06 16:57:25 banky xiu[1971230]: [2024-01-06T21:57:25Z INFO  hls::server] Hls server listening on http://0.0.0.0:8091
Jan 06 16:57:25 banky xiu[1971230]: [2024-01-06T21:57:25Z INFO  rtmp::rtmp] Rtmp server listening on tcp://0.0.0.0:1936
Jan 06 16:57:28 banky xiu[1971230]: [2024-01-06T21:57:28Z INFO  streamhub] subscribe:  stream identifier: RTMP - app_name: live/test, stream_name:

Stream with OBS, can see it connecting and streaming, seems no issues in OBS. I see it write files in the working directory but not the .m3u8 file

curl http://127.0.0.1:8091/live/test/test.m3u8
Not Found

Expected behavior should find .m3u8 file so HLS works.

harlanc commented 5 months ago

How do you fill in the server and stream key for your OBS?

SaulMoonves commented 5 months ago

The issue was I was putting rtmp://myserver:1936/live/test with no stream key into OBS. Maybe the documentation could mention OBS rtmp specifically and xiu could not start if you don't provide a stream key. Anyway, xiu seems to work great now.