-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
TLS Issue #61
Comments
More details: docker run --device=/dev/vchiq --network="host" --name YouTubeLive -ti octoprint/youtubelive:latest https://192.168.42.40/webcam/?action=stream [ Redacted ] null HAProxy is configured to do HSTS. |
This might be something broke on the upstream ffmpeg I'm referencing in my docker file. I assume you did all the stuff before that test command to download the github repo and build the docker image for youtubelive? |
I did, yes. Just for clarity, I did: cd ~ cd ~ |
I am looking in to allowing the webcam unencrypted, but that is more of a work around than a fix. I am also using a proper certificate (lets encrypt) rather than a self-signed one too. |
Relative to that, if you are using a default octopi image I believe you can use the non-ssl URL for the webcam stream, which of course would break it loading in the UI in some browsers now (ie chrome) and any port forwarding setups. Unfortunately, I'm not super familiar with creating a docker image for ffmpeg (the reason I'm using the other one) and will see if adding in that other stuff is too difficult or not. You may be able to work around this using the webcamstreamer plugin, as I believe it actually allows for a separate URL in it's settings for the source stream versus this one which is pulling from the default webcam & timelapse settings. |
I'm looking into building my own ffmpeg now with ssl support and will report back in the next few days. |
Do me a favor please and test this command line via SSH and let me know if it actually attaches to your youtube stream or not. If it does then I think I can transition this plugin to utilize this other docker image as a base entry point. Make sure to replace the #### part with your stream secret.
once it starts running you can press ctrl+c to close out the ffmpeg streaming. |
And one more command to test, just to see if I can eliminate docker from this plugin completely, reducing the complexity.
|
OctoPrint version : 1.4.2
|
The command line appeared to work as well. Rotating my octopi key, as I never seem to redact it properly ;-/ /usr/bin/ffmpeg -re -f mjpeg -framerate 5 -i https://192.168.42.40/webcam/?action=stream -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -vcodec h264 -pix_fmt yuv420p -g 10 -vb 700k -framerate 5 -f flv rtmp://a.rtmp.youtube.com/live2/[redacted] |
Great, thanks for double-checking those for me. I think I'll go the route of converting the plugin to use ffmpeg directly and remove the docker dependency completely. This will take some time. |
From the docker commandline, I get:
https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.
The text was updated successfully, but these errors were encountered: