Giter VIP home page Giter VIP logo

octoprint-youtubelive's Introduction

OctoPrint-YouTubeLive

Alert - Breaking Change by YouTube: Due to the addition of Live Control Room by YouTube there are extra steps necessary to go live now. You can no longer just simply use a generic live stream key unless you utilize the Stream Now Classic interface. There is no indication of when that option will no longer be available.

In the new Control Room interface you will have to manually create your live broadcast and Enable the options Enable Auto-start otherwise you'll have to press the Go Live button after starting the stream from the plugin's tab. The stream key used in the plugin's settings will need to be updated for the auto-generated stream key provided in the new interface or you will need to create a re-useable one from the drop-down and save that into the plugin's settings.

If the option Enable Auto-stop option is enabled the stream will automatically end and the broadcast will be closed and cannot be re-used. It may be possible to leave that option disabled and re-use the broadcast later, but that is currently not fully tested and more than likely the broadcast will be ended after some currently unknown timeout value by YouTube.

The drawback of re-using the same broadcast, if it is possible, is that recordings will not be generated for inidivudual sessions and you'll have an extremely long single recording once the stream is eventually ended.

As I personally don't use this plugin, future development will be dependant on votes from my higher Tier Patrons/Github Sponsors, so if you want this situation to be improved, consider becoming a Patron/Sponsor.

Overview: Plugin that adds a tab to OctoPrint for viewing, starting, and stopping a YouTube Live stream.

Details: Based on the work found here. Currently tested with OctoPrint running on a Raspberry Pi Zero W and on a Pi3.

Requirements for Streaming

Follow the instructions found here to install and configure docker/mmjpeg for use with this plugin for Live streaming. This is not necessary if you just want to view a YouTube channel in a tab.

Setup

Once installed enter your YouTube's channel id (Advanced Account Settings) and your YouTube stream id (YouTube Live Dashboard) into the YouTube Live plugin settings.

Get Help

If you experience issues with this plugin or need assistance please use the issue tracker by clicking issues above.

Additional Plugins

Check out my other plugins here

Sponsors

Support My Efforts

I, jneilliii, programmed this plugin for fun and do my best effort to support those that have issues with it, please return the favor and leave me a tip or become a Patron if you find this plugin helpful and want me to continue future development.

Patreon paypal

No paypal.me? Send funds via PayPal to [email protected]

octoprint-youtubelive's People

Contributors

dependabot[bot] avatar jneilliii avatar markwal avatar ra100 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

octoprint-youtubelive's Issues

No stream / no errors

Hey! I love the idea of this plugin, and have been trying to get it to work. I'm trying to find any relevant logs now, because I'm stuck after looking around the issues and readmes.

I followed the Docker instructions, and the test container streams and works fine. I could just throw that in an init script and call it done, to be honest.

However, from the OctoPrint plugin side, this is what's happening:

  • After a reboot, it seems like everything is connected, but there's no stream. I see the following in the octoprint.log:
2018-06-17 09:44:20,504 - octoprint.plugins.youtubelive - INFO - OctoPrint-YouTubeLive loaded! Checking stream status.
2018-06-17 09:44:20,736 - octoprint.plugins.youtubelive - INFO - YouTubeLive is streaming
  • If I stop the stream, I get an error that the container doesn't exist (with the hex container ID, presumably from docker).

  • If I try stopping and starting the stream, the "Go Live" button just spins and I can't do it again.

At any point in this process, if I do a docker ps -a, I see no containers that have exited. I was guessing the container exited quickly with an error but don't see any evidence that it was ever started.

As I said, I can run the container manually per instructions, have verified that I can run simple HelloWorld, etc.

OctoPi on a Pi3, standard distribution, no modifications to the octoprint/youtubelive Dockerfile, etc.

Is there somewhere else to look for logs of what's going on? Thanks!

why it need entire docker image?

As I know OctoPi comes with ffmpeg already. Then why it need entire docker image?
Cant we just use ffmpeg directly to stream video.

something like this:

ffmpeg -thread_queue_size 512 -f v4l2 -i /dev/video0 \
  -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental \
  -aspect 16:9 -vcodec h264 -preset veryfast -crf 25 -pix_fmt yuv420p -g 60 -vb 820k -maxrate 820k -bufsize 820k -profile:v baseline \
  -r 30 -f flv "rtmp://a.rtmp.youtube.com/live2/youtube-secret-key"

Input/output error

Filter: null
ffmpeg version N-90990-g652b857b94 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree
libavutil 56. 18.100 / 56. 18.100
libavcodec 58. 19.101 / 58. 19.101
libavformat 58. 13.101 / 58. 13.101
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 21.100 / 7. 21.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Input #0, mjpeg, from 'http://172.17.0.1:8080/?action=stream':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x480, 5 tbr, 1200k tbn, 5 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, s16le, from '/dev/zero':
Duration: N/A, bitrate: 1411 kb/s
Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx: Input/output error

Docker container fails

Hi get this when I follow your instructions:

dietpi@DietPi:~/youtubelive$ docker run --privileged --name YouTubeLive -ti octoprint/youtubelive:latest http://192.168.179.220:8080/?action=stream mc4m-ma9w-vtk2-ahs8 null
OctoPrint Webcam Stream: http://192.168.179.220:8080/?action=stream
Live-stream secret: xxxxxxxxxxxxxxx
Filter: null
ffmpeg version N-90990-g652b857b94 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree
  libavutil      56. 18.100 / 56. 18.100
  libavcodec     58. 19.101 / 58. 19.101
  libavformat    58. 13.101 / 58. 13.101
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 21.100 /  7. 21.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[mjpeg @ 0x2807f60] unable to decode APP fields: Invalid data found when processing input
Input #0, mjpeg, from 'http://192.168.179.220:8080/?action=stream':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 5 tbr, 1200k tbn, 5 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, s16le, from '/dev/zero':
  Duration: N/A, bitrate: 1411 kb/s
    Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (h264_omx))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[mjpeg @ 0x2808540] unable to decode APP fields: Invalid data found when processing input
[swscaler @ 0x288cbd0] deprecated pixel format used, make sure you did set range correctly
[h264_omx @ 0x286b6a0] Using OMX.broadcom.video_encode
[h264_omx @ 0x286b6a0] OMX_GetHandle(OMX.broadcom.video_encode) failed: 80001005
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

Test run of docker fails

When trying a test run of docker (according to instructions), I get:

OctoPrint Webcam Stream: http://192.168.225.235:8080/?action=stream
Live-stream secret: xxxxxxxxxxxxxxxxxxxxxx
Filter: null
ffmpeg version N-86118-g6111ac7 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree
libavutil 55. 63.100 / 55. 63.100
libavcodec 57. 96.101 / 57. 96.101
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 90.100 / 6. 90.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mjpeg @ 0x2fcb130] unable to decode APP fields: Invalid data found when processing input
Input #0, mjpeg, from 'http://192.168.225.235:8080/?action=stream':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 5 tbr, 1200k tbn, 5 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, s16le, from '/dev/zero':
Duration: N/A, bitrate: 1411 kb/s
Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (h264_omx))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[mjpeg @ 0x2fcb7f0] unable to decode APP fields: Invalid data found when processing input
[swscaler @ 0x305b950] deprecated pixel format used, make sure you did set range correctly
[h264_omx @ 0x300d640] Using OMX.broadcom.video_encode
[h264_omx @ 0x300d640] OMX error 80001000
[h264_omx @ 0x300d640] err 80001018 (-2147479528) on line 561
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

The URL for my local video stream works without problems....

Help Wanted: Docker uninstall

Decided I'm not going to use the plugin and wanted to get the docker install off the Pi as well. What's the best way to handle that?

Unable to find image 'octoprint/youtubelive:latest' locally

Unable to find image 'octoprint/youtubelive:latest' locally
docker: Error response from daemon: pull access denied for octoprint/youtubelive, repository does not exist or may require 'docker login'.
See 'docker run --help'.

Don't know the docker user name and password, wasn't asked in the installation.

Issues starting docker

Can you please provide detail as what to fill in for these values? xxxx-xxxx-xxxx-xxxx It doesnt seem to match youtube ID as needed in settings.

Thanks,

Tim

"Go Live" doesnt work after sucessful test in the shell.

The stream player loads with my account, but the go live button greys out and animates like its working after I click it. It never starts the stream. When I refresh, I get the stop button which spite out the following truncated error message:

404 Client Error: Not Found ("No such container: 2e5c2adcde7bfeeba045826829a68cc46653

404 Client Error:

YouTube Live Error
404 Client Error: Not Found ("No such container: a575b9ee935d07602f13dfd467647347a8751e

Not sure what happening but Installed using copy and paste from the setup page.
Using Raspberry Pi 3
Edit to add: Im using a usb web cam Logitech HD WEBCAM C615

Not streaming

Hi,

I have streaming working successfully. However, every so often the stream won't start. When I stop the stream I get the following message:

YouTube Live Error
404 Client Error: Not Found ("No such container: .....

Below is a screenshot.

screen shot 2019-01-17 at 5 33 24 pm

Now, this error only pops up when stopping the stream. Trying to start the stream fails, then stopping the stream pops up another error. When I reboot the Raspberry Pi all works well once it comes back up. Do note, that all other functions are working just fine regardless of the plugin error.

Here is what docker has to say:

pi@octopi:~ $ docker image ls
REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
octoprint/youtubelive   latest              95639181f1a0        6 days ago          1.32GB
alexellis2/streaming    07-05-2018          a8d02138647f        8 months ago        1.32GB
pi@octopi:~ $ docker container ls
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

I cannot find anything in the log files in /var/log/

Thanks,
Adi

Music & print status

Hi,

could you suggest me idea, how could I add progress bar of printing process, image of model or music into my stream?

Thanks!

Sincerely,
Marián Trpkoš.

YouTube stream id ?

Hello,
I can't find the YouTube Stream ID. Could you show me where this element is located ?

Getting a Connection aborted error message.

('Connection aborted.', error(2, 'No such file or directory'))

Any thoughts?

The plug in does see the youtube channel, I see the default logo on the video, but when I press Go Live, I get the error message.

Dockerfile

Hi Jneilliii,

Can I grab a copy of the dockerfile please? I'm hoping to make it a bit smaller and fix the issue with it not working on my system. (Non-Pi system)

Thanks,
-K34nu

Docker repo seems to be missing

Hi,
I'm trying to test the container and I'm getting an error about the repository either being missing, or requiring docker login being run (I logged in right before running docker run)
Unable to find image 'octoprint/youtubelive:latest' locally docker: Error response from daemon: pull access denied for octoprint/youtubelive, repository does not exist or may require 'docker login'.

Stream is very laggy

settup works well, but how can i change fps for the youtube stream?
in octoprint the video is good with 30fps, but on youtube stream its very laggy

Not working for me, must be my fault

Error message when starting to print:, on htt://octopi.local

YouTube Live Error
409 Client Error: Conflict ("Conflict. The container name "/YouTubeLive" is already in use by container "f4742833f895c073742344c2507635369292969addb9b49e875d1adba0d82e82". You have to remove (or rename) that container to be able to reuse that name.")

Tried several approaches but didn´t get success.

YouTube Live Error

i constantly get this error is this a bug or me being stupid?

YouTube Live Error ('Connection aborted.', error(2, 'No such file or directory'))

YouTube ids are all correct and camera is a logitech c270

Unable to decode APP Fields.

Hey there.

When using: docker run --privileged --name YouTubeLive -ti octoprint/youtubelive:latest http://localhost:8080/?action=stream xxxx-xxxx-xxxx-xxxx null ( With filled in xxxx and so on )

the livestream starts. But right now it did run around 5 minutes.
SSH tells me unable to decode APP Fields. Invalid data found when processing input.

So what can i do ?

[Feature Request] Allow overriding the web cam URL

In some configurations (for example if OctoPrint is proxied to multiple independent networks) it is impossible to use an absolute URL in the OctoPrint webcam settings but instead a URL of the form

/webcam/?action=stream

must be used so the webcam works properly regardless of connectivity between the networks. This unfortunately breaks the OctoPrint-YouTubeLive plugin since it requires an absolute URL.

It would be nice if there was a way to override the webcam URL for the plugin.

Flip stream

In OctoPrint it's possible to flip the webcam feed.

schermafbeelding 2018-01-29 om 21 04 45

These settings are not used in the Youtube Feed. How can I transfer these settings into the feed?

Only manual streaming with new youtube studio format

Since youtube has switched over to a new creator studio, the plugin is no longer able to auto create video feeds. You have to go to youtube, start a live feed there, then the video feed will be pulled in. In this new format, the stream ID changes with each new manual creation.

Docker cannot connect to localhost port

In the documentation the docker instance is called like this:

docker run --privileged --name YouTubeLive -ti octoprint/youtubelive:latest http://127.0.0.1:8080/?action=stream XXXXX

However, docker denies access to the localhost of the host itself by default. This can be bypassed with the --network="host" flag. More information can be found here.

The full docker command would be:

docker run --privileged --network="host" --name YouTubeLive -ti octoprint/youtubelive:latest http://127.0.0.1:8080/?action=stream XXXXX

If possible edit this line in the code:

self.container = self.client.containers.run("octoprint/youtubelive:latest",command=[self._settings.global_get(["webcam","stream"]),self._settings.get(["stream_id"]),",".join(filters)],detach=True,privileged=True,name="YouTubeLive",auto_remove=True)

If you add there the network and host flag, it would work for localhost. Thanks!

buffering on youtube live every few seconds, but local stream is perfect

OctoPrint 1.3.11 running on OctoPi 0.16.0
Logitech C920

Stream on youtube plays for about 5 seconds, and buffers for 3 seconds. the local stream looks fantastic, no buffering at all. What are some things I can check?

OctoPrint Webcam Stream: http://octopi.spike:8080/?action=stream
Live-stream secret: xxxxxxxxxxxxxxxxxxxxxxx
Filter: null
ffmpeg version N-90990-g652b857b94 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree
  libavutil      56. 18.100 / 56. 18.100
  libavcodec     58. 19.101 / 58. 19.101
  libavformat    58. 13.101 / 58. 13.101
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 21.100 /  7. 21.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, mjpeg, from 'http://octopi.spike:8080/?action=stream':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1920x1080, 5 tbr, 1200k tbn, 5 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, s16le, from '/dev/zero':
  Duration: N/A, bitrate: 1411 kb/s
    Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (h264_omx))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[swscaler @ 0x3589240] deprecated pixel format used, make sure you did set range correctly
[h264_omx @ 0x3530110] Using OMX.broadcom.video_encode
Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/bs36-actj-c08f-3dq2':
  Metadata:
    encoder         : Lavf58.13.101
    Stream #0:0: Video: h264 (h264_omx) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1920x1080, q=2-31, 700 kb/s, 5 fps, 1k tbn, 5 tbc
    Metadata:
      encoder         : Lavc58.19.101 h264_omx
    Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.19.101 aac
[mjpeg @ 0x34e1490] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
frame=  342 fps=2.5 q=-0.0 size=    5878kB time=00:01:07.80 bitrate= 710.2kbits/s speed=0.502x
top - 19:46:09 up  3:56,  2 users,  load average: 1.49, 1.40, 1.42
Tasks: 108 total,   2 running,  63 sleeping,   0 stopped,   0 zombie
%Cpu0  : 14.5 us,  2.2 sy,  0.0 ni, 72.5 id,  0.0 wa,  0.0 hi, 10.9 si,  0.0 st
%Cpu1  : 87.0 us,  3.3 sy,  0.0 ni,  9.6 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu2  :  5.6 us,  2.0 sy,  0.0 ni, 92.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu3  :  2.9 us,  8.0 sy,  0.0 ni, 88.4 id,  0.0 wa,  0.0 hi,  0.6 si,  0.0 st
KiB Mem :   896668 total,   103080 free,   211704 used,   581884 buff/cache
KiB Swap:   102396 total,   102396 free,        0 used.   617012 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 4915 root      20   0  178940  25992   8720 R  99.0  2.9   0:30.67 ffmpeg
  444 pi        20   0  296080  71468  10496 S  18.7  8.0  56:18.83 octoprint
  607 haproxy   20   0   12276   6912   2076 S   4.6  0.8  20:35.55 haproxy
  469 pi        20   0   85444  19560  17892 S   3.0  2.2   6:49.75 mjpg_streamer

Stream quality very low (choppy, lots of compression / artifacts)

The title says it pretty much. I've just installed the plugin (thanks for making it!) and setting it up was pretty easy, but the stream quality is really low. It's choppy and I see a lot of compression and it's lost a lot of detail (blurry edges, etc.). I have a 40Mbps upload and often stream 720p without any problems, so I guess it's not my connection, rather the settings of this plugin.

Can you recommend better settings (no compression at all, if possible)? I have OctoPrint installed on a RasPi 3 Model B and my camera is a PlayStation Eye (PS3 camera).

See the picture for comparison between the YouTube stream and the direct feed from OctoPrint.

untitled

Could This Work For Twitch

Hello,

I was wondering if you have any insight if this could work with Twitch. I read the blog article which the work is based on, and even though I do have some programming skills, I will admit this is a little more advance then the skills I possess. I am not familiar with Docker, but could you edit alexellis2 image to point to the Twitch rtmp location instead of YouTube's?

Permission denied

Hi!
I followed the instructions and all fine on the prerequisites (I streamed by terminal)

But if I push the red button “go live” at YouTube live tab, an error shows up:

YouTube Live Error
('Connection aborted.', error(13, 'Permission denied'))

I check twice the YouTube Channel ID and the stream ID.

What I need to fix this problem?

Thanks in advance!

Is it alive?

I cannot connect to a stream. I have the following error
error

Can't complete docker build on CentOS 7

I am trying to get this youtube live plugin going but I keep getting this error when attempting the build:

$ docker build -t octoprint/youtubelive .
Sending build context to Docker daemon 53.25kB
Step 1/3 : FROM alexellis2/streaming:07-05-2018
---> a8d02138647f
Step 2/3 : COPY entry.sh entry.sh
---> Using cache
---> a1926c00157e
Step 3/3 : RUN chmod +x entry.sh
---> Running in 78a43fc1f3d1
standard_init_linux.go:190: exec user process caused "exec format error"
The command '/bin/sh -c chmod +x entry.sh' returned a non-zero code: 1

I am running octoprint on a Cent7 box that I built but I am not very familiar with docker. I have tried formatting the command in the Docker file but almost everything fails in the same error. Octoprint runs as a user called octoprint and when following the instructions for docker setup, I swapped the pi user for my octoprint user. It does not appear to be a permissions issue as root has the same error. Let me know if there are any other details you need. I am anxious to get this working.

Channel ID is the User ID, Stream ID is the Stream name/key

I followed the instructions and did exactly everything, but spent a day to find out why not working to me.

Homepage says:
"....enter your YouTube's channel id..."

In the WEBGUI:
"YouTube Channel ID: enter your personal channel id here"

Howto says:
"OctoPrint Settings

  • Enter your stream id used above in the OctoPrint-YouTubeLive plugin settings.
  • Change your webcam stream url to a fully quliafied url using the ip address of your pi like http://192.168.1.2:8080/?action=stream" ( I think is not totally clear for everyone this should be to do in the "OctoPrint Settings -> Webcam & Timelapse )

So that "Channel ID" everywhere definied wrong.
There should be write "YouTube User ID" and not the"YouTube Channel ID"
That can find at same place "Account-> Advanced Settings, but just above the Channel ID.
After a day I realized I'm finally able to see my stream in the WEBGUI.

youtube id

Unable to start stream

When I try the after the installation the test command everything works fine.

(docker run --privileged --name YouTubeLive -ti octoprint/youtubelive:latest http://localhost:8080/?action=stream xxxx-xxxx-xxxx-xxxx)

But when I press the play button in ocotprint nothing happens. There is no docker instance starting.

When I press stop I'll receive the error: ouTube Live Error
404 Client Error: Not Found ("No such container: d541a9c3f6e358b570f8bc494e1c43aae2d13cdad1150c5003db4ac1aa215096")

YouTube Live Error 409

I've installed the plugin (put in client and stream IDs), used Putty to copy and paste the docker, etc..., changed my Webcam from localhost:8080 to 192.168... and I'm getting this message when I click on the go live button.

409 Client Error: Conflict ("Conflict. The container name "/YouTubeLive" is already in use by container "5fded366f754a80006e88dd2e30f8a1cd79b086516ea4d30d5e9e4fab023c15c". You have to remove (or rename) that container to be able to reuse that name.")

When I run the test line in Putty I get this message:

docker: Error response from daemon: Conflict. The container name "/YouTubeLive" is already in use by container "5fded366f754a80006e88dd2e30f8a1cd79b086516ea4d30d5e9e4fab023c15c". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

Any suggestions would be appreciated.

Edit: I ran through the instructions again from Pull Docker Image down to test. Now when I click on the Go Live button it just hangs there, the stream says offline and the Go Live button looks like it's been pressed and a wheel is just going in a circle like it's thinking. When I run the test in docker I get:

docker: Error response from daemon: Conflict. The container name "/YouTubeLive" is already in use by container "97ddf05a3dab76d784a3434e7185ced4972d65f38cf5094866b32247b99d47fd". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

Avoid running the container in privileged mode

Using Docker's --privileged option is a really bad idea unless absolutely necessary as it grants the container root access to the host. Instead, let's limit it to just what it needs. Docker run has an option for exactly this purpose: --device=/dev/vchiq.

Unable to Reslove Host

Hi, I have wanted to install this plugin and when I get to the second step, sudo usermod pi-aG docker. It gives me "unable to resolve host ______" I don't know what is going on.
screen shot 2018-10-02 at 4 33 01 pm

Connection refused / Cannot assign requested address

Hi,

thanks for your plugin - can't get it working.
Cloning works like a charm.

While running the test, I get the following lines every time:

pi@octopi:~ $ docker run --privileged --name YouTubeLive -ti octoprint/youtubelive:latest http://localhost:8080/?action=stream 1234-5678-90AB-CDEF
OctoPrint Webcam Stream: http://localhost:8080/?action=stream
Live-stream secret: 1234-5678-90AB-CDEF
ffmpeg version N-86118-g6111ac7 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree
libavutil 55. 63.100 / 55. 63.100
libavcodec 57. 96.101 / 57. 96.101
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 90.100 / 6. 90.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[tcp @ 0x26fb560] Connection to tcp://localhost:8080 failed (Connection refused), trying next address
http://localhost:8080/?action=stream: Cannot assign requested address

Searching the web tells me, that it may be an IPv4 <--> IPv6 problem, but I can't get it fixed.
...maybe an ACL issue because of routing, because the container, which is created with docker always uses the Class B (172.17.0.0/16) net while the Octoprint got an address of Class C (192.168.192.0/24)
Do you have some input for me?

Thank you

YouTube Live Error ('Connection aborted.', error(2, 'No such file or directory'))

I've installed the plugin and have put in my Channel ID and what I believe is my Stream ID, when I click Go Live I'm getting the error message above.

Do I still need to install docker? I'm very much a newbie when it comes to working in shell commands, I downloaded Putty but would prefer to not use it unless necessary.

Also, at the very bottom of your instructions you mention "changing your webcam stream url to a fully qualified URL using ip address of your pi", how do I find the IP address of my PI?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.