Open brybalicious opened 2 months ago
Hey - I did abandon it ever since I got better internet.
But I'll bring this back for you, after I get off work later this evening. :)
https://hls.cho.io/hls-mirror/stream.m3u8
Looks like this HLS link is down :(
Wow. Thank you @chowder ! You may be interested - I would like to use it as background music in a personal video game project, but Unreal Engine only has media streaming capability for direct HLS links..
https://dev.epicgames.com/documentation/en-us/unreal-engine/media-framework-technical-reference-for-unreal-engine https://dev.epicgames.com/documentation/en-us/unreal-engine/electra-media-player-in-unreal-engine
Since you're transcoding anyway according to your write-up, perhaps you could consider outputting a stream as an mp4 as well? I've had luck with .mp4 but as yet .m3u8 is proving finicky.
Hey. I appreciate it's still a work in progress, and nice to see you got on to things so quickly! Just updating from my side against the new HLS URL you pushed:
Your frontend still displays:
The media could not be loaded, either because the server or network failed or because the format is not supported.
Log from Electra Player in Unreal:
Last issue: error=8 in HLS playlist reader: code 4, "Failed to parse master playlist "https://lofi.fly.dev/stream.m3u8": error=8 in HLS playlist builder: code 5, "Not a master playlist""
LogElectraPlayer: Most recent log messages:
0.000: Opening stream
0.690: HLS playlist reader: error=8 in HLS playlist builder: code 5, "Not a master playlist"
0.690: HLS playlist reader: Failed to parse master playlist "https://lofi.fly.dev/stream.m3u8" (error=8 in HLS playlist builder: code 5, "Not a master playlist"), retrying...
2.036: HLS playlist reader: error=8 in HLS playlist builder: code 5, "Not a master playlist"
2.036: HLS playlist reader: Failed to parse master playlist "https://lofi.fly.dev/stream.m3u8" (error=8 in HLS playlist builder: code 5, "Not a master playlist"), retrying...
4.373: HLS playlist reader: error=8 in HLS playlist builder: code 5, "Not a master playlist"
4.373: Playback paused
4.373: Error: error=8 in HLS playlist reader: code 4, "Failed to parse master playlist "https://lofi.fly.dev/stream.m3u8": error=8 in HLS playlist builder: code 5, "Not a master playlist""
4.373: Stopped
LogElectraPlayer: [0000069778A74D00] ~FElectraPlayer() finished.
There appear to be some specific requirements on the stream from my side, including some ffmpeg options for designating a master playlist. Obviously not your hill to die on, but would really appreciate if you're up for helping! Would you be able to add the flags that mark the playlist as a master playlist?
https://forums.unrealengine.com/t/issues-working-with-hls-and-electra-player/229985/8?u=protocasting
In that user's example:
ffmpeg \
-f v4l2 -video_size 640x480 \
-i /dev/video0 \
-c:v libx264 -crf 21 -preset veryfast \
-b:v 2000k -b:a 128k \
-f hls -hls_list_size 4 -hls_init_time 1 -hls_time 0.5 -g 0.5 \
-vf format=yuv420p \
-hls_flags independent_segments+delete_segments+program_date_time \
-hls_segment_type fmp4 \
-hls_segment_filename data%02d.m4s \
-master_pl_name master.m3u8 out1
Hey - so I tried getting it back up last night, but it seems like YouTube is blocking the IPs of all my server providers (Hertzner, Fly, and Heroku)
I will upload the Dockerfile that I've been using to run the HLS mirror later this evening.
seems like Youtube really doesn't want anyone doing anything cool
https://chowder.github.io/lofi-radio/
@chowder Any chance you could get the HLS mirror live again? I've been desperately searching for a direct HLS stream of Lofi