harlanc/xiu

cannot find .m3u8 for HLS

SaulMoonves opened this issue · 2 comments

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.

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

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.