-
Notifications
You must be signed in to change notification settings - Fork 372
Experimental HLS support. #650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Looks good, do you want me to pull this now or wait till you have the support in OctoPrint? |
Let’s merge it now, and I will work on support in OctoPrint. |
Thanks! 🌝 |
Howdy, I have installed. Took a while to get configured. Installing Nejjis plugin and changing webcam path to. "/hls/stream.m3u8" got it visible. Doesn't seem to use the camera settings resolution and framerate from octopi.txt Is there a different location to configure this streamer? I confirmed the stream was H.264, but it still seems quite bandwidth heavy for a 800x600 stream : 2.5Mb any thoughts? |
@beegmouse it looks like the framerate and resolution is hard coded in the service configured to stream HLS here. This is why you can't overwrite/effect the settings via octopi.txt. |
This might be a noob comment. Will editing /etc/systemd/system/ffmpeg_HLS.service and then restarting the service work? I'm not sure what you meant by "hard coded" Edit (I tried it, it didn't change anything) |
I'm trying the 0.18.0 RC2 out in an attempt to get a Logitech StreamCam to work with HLS. I feel quite stupid since I can't find any clues on what configuration is needed to get this going. It would be awesome to have an instruction including the steps. Thanks :) |
Try removing the port ":8051" from the address. |
Is there a documentation somewhere? Worth linking here or writing it. Either in the README or wiki |
I just started a big print, so I'll not fiddle too much with it. However, removing the port turned out to be a promising thing. Navigating to http://octopi.local/hls/stream.m3u8 with Chrome downloads a file called stream.m3u8 with the following contents: #EXTM3U I'm hoping this is good and I'll let you know when I can investigate a bit more after the print. |
Please, look at the experimental HLS support scripts.
No custom software is used, just FFMPEG for video and NGINX as content server.
It's not integrated to OctoPrint yet.
To see the HLS stream, you can user VLC or Safari (where there is a native support).
Just open the link: http://octopi.local:8051/hls/stream.m3u8
For other browsers, you can create a page with https://github.com/video-dev/hls.js/ .
It also serves single frames in JPEG for timelapses and notifications: http://octopi.local:8051/jpeg/frame.jpg
I'm open to comments and critic. :)