HLS m3u8 question #3261
Replies: 7 comments 12 replies
-
Hi @DennisHeerema and welcome! I tried a local version of your script and it seemed to be working fine. Looking at your The files that For an example of HLS being served with server {
listen 8080;
server_name _;
root /hls;
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}
location ~ \.(ts|m3u8)$ {
add_header Allow "GET, HEAD" always;
if ( $request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
root /hls;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET';
add_header 'Access-Control-Allow-Headers' '*';
location ~ \.(ts)$ {
add_header 'Cache-Control' 'public, max-age=31536000';
}
location ~ (lofi|midfi|hifi)\.(m3u8)$ {
add_header 'Cache-Control' 'max-age=1';
}
location ~ \.(m3u8)$ {
add_header 'Cache-Control' 'max-age=600';
}
}
location / {
autoindex on;
autoindex_format html;
}
} |
Beta Was this translation helpful? Give feedback.
-
10:24 hours I started liquidsoap, the live.m3u8 was created. is this a time out somewhere? Maybe in nginx? Kind regards, Dennis |
Beta Was this translation helpful? Give feedback.
-
Log level 4 did ot show anything, so i did a debug level log (level 5) |
Beta Was this translation helpful? Give feedback.
-
On a other server 23:58 live.m3u8 created logs Kind regards Dennis |
Beta Was this translation helpful? Give feedback.
-
Hi @DennisHeerema. I re-read the code and there was one scenario where the file might be deleted by us and not re-created, which is if the output does stop and restart. Since your source in the script above is infallible, this should not happen in your case. Nevertheless, you should try the build that will be available here https://github.com/savonet/liquidsoap/actions/runs/5693721609 or on the next If that does not help, I'm not sure what else we can do. The main playlist is created once and re-created on each new segment if it's been deleted. I have been running a simple HLS output for over 24h not and the file is still here. Could there be something at the file system level? |
Beta Was this translation helpful? Give feedback.
-
Solved this by Copying the live.m3u8 to 1 directory higher and edit the filepaths to the other m3u8 files in this live.m3u8 file. Makes it static, but works. Kind regards, Dennis |
Beta Was this translation helpful? Give feedback.
-
I created my own live.m3u file one dir up (root of the website) in this file the code:
kind regards, Dennis |
Beta Was this translation helpful? Give feedback.
-
HI,
I use the HLS setup from the liquidsoap website in combination with nginx. But what i notice is that the live.m3u8 file seems to disapear after a while, looks like it doesn't get recreated, while the other lofi.m3u8, midfi.m3u8 do get recreated and are there all the time.
Here is my liquidsoap script:
and my nginx script
So why does the live.m3u8 created by liquidsoap disapears?
Kind regards,
Dennis
Beta Was this translation helpful? Give feedback.
All reactions