M3U8 video support

What is the problem?

M3U8 Video support

What did you already try to solve it?

Searched in the forum already, didn't found what i'm looking for.

Additional information about your setup

Last octoprint, installed it today, fresh install.
Win 10, Google chrome last release.

I have an IP Camera connected on my Wifi.
I have a direct link for the stream but it's a .m3u8

Octoprint do not support .m3u8 (or i missed something)

Question

Is there a way to replace basic webcam feature of Octoprint for IP Cam using HLS technology ?

Example link for my ip cam : http://192.168.0.31/img/stream.m3u8/

Thank you :slight_smile:

EDIT :
In the m3u8 file that my phone download when i try to access the camera, there is more to add after .m3u8 :

192.168.0.31/img/stream.m3u8?channel=1

And if i download and edit the file that is downloaded, i got things like this :
#EXTINF:1
hls/s1_clip8476.ts
#EXTINF:1
hls/s1_clip8477.ts
#EXTINF:1
hls/s1_clip8478.ts

But i don't know what to do with that

Check this post...Experimental HLS support I created a plugin based on these changes that in theory should enable HLS video support...

Hey thank you for your answer, i'd like to try it.

I installed it with plugin manager, is there a configuration file to edit or something ?

Ps : my camera needs an username and password, is it supported with your plugin ?

So again, I just ported the other person's changes into a plugin format. From my understanding you just need to enter the full address in the webcam stream URL in the standard OctoPrint settings, but if I remember correctly it will just check against the extension m3u8 and may not work with the additional information. In most html based access you can embed the username/password into the URL somehow, potentially like http://username:password@192.168.0.31/img/stream.m3u8

looks like it does not need username / pwd (tried on chrome with Play HLS app). But via OctoPrint it does not work "Webcam stream not loaded"

EDIT :

Without the "?channel=1" it shows a player but with infinite loading

It's probably a little tweak to do in the code somewhere but i don't really undetstand js so i can't figure it out

If you can get it to load inside chrome directly you might be able to utilize the WebcamIframe plugin.

Not directly, i need a chrome extension, and it's not usable as it i guess : chrome-extension://hahkjjkedonglpienpfiganogikkkoii/player.html#http://192.168.0.31/img/stream.m3u8?channel=1