jneilliii / OctoPrint-YouTubeLive

43 stars 10 forks source link

YouTube Live Error #11

Closed trev502000 closed 6 years ago

trev502000 commented 6 years ago

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

jneilliii commented 6 years ago

Did you set the webcam url for the stream in octoprint to be a fully qualified url using the ip address?

trev502000 commented 6 years ago

yes i have done that and no change

jneilliii commented 6 years ago

And you followed the instructions for getting everything set up and configured?

jneilliii commented 6 years ago

Does the test command in the instructions work for you?

trev502000 commented 6 years ago

it works perfect now started from scratch i must have done something wrong thank you for your help its a brilliant add on

john5634 commented 6 years ago

I get the error referenced above and I fixed my url to look like this: http://10.0.0.49/webcam/?action=stream. And I still get the "YouTube Live Error ('Connection aborted.', error(2, 'No such file or directory'))" error, and I am 100% sure I have the channel ID and stream id correct.

Any ideas?

jneilliii commented 6 years ago

After changing the stream url I believe you need to restart octoprint. Sorry, it's been a while, but I think I remember some others reporting that.

john5634 commented 6 years ago

No luck, just restarted it and rebooted the whole pi as well. Any help would be greatly appreciated! I can even give you a temp login to my octopi if you want!

jneilliii commented 6 years ago

Did you follow these instructions?

DarasuumNebelin commented 6 years ago

Were do I input these commands exactly ?

jneilliii commented 6 years ago

You have to ssh into your pi or connect a keyboard/monitor and log into the os.

DarasuumNebelin commented 6 years ago

Did everything as described but had some trouble: the test didn't work said "-bash: iP: No such file or directory" and in octoprint i when i pushed "go live" I got that:

404 Client Error: Not Found ("No such container: 737c53f5776968a7c84b460caba7d4562b59bf3b0f14cf8d9ecb9c8a00613afa")

jneilliii commented 6 years ago

If you never get the test to work, then the plugin will never work. It looks to me that you may have just copy/pasted the test lines. You need to replace the <ip> part with the ip address of your pi. Also, try using the following test command replacing <ip> with your pi's ip address and if that one works then we will be closer to getting you working with the plugin. Also make sure you replace the xxxx-xxxx-xxxx-xxxx part with your personal stream id from YouTube.

docker run --privileged --name YouTubeLive -ti octoprint/youtubelive:latest http://<ip>/webcam/?action=stream xxxx-xxxx-xxxx-xxxx null
DarasuumNebelin commented 6 years ago

Hi Thanks for the help! You were right I put the IP address in wrong. Got the test working (and typed "docker rm YouTubeLive")

But on the Octoprint side I still get the same message.

404 Client Error: Not Found ("No such container: 737c53f5776968a7c84b460caba7d4562b59bf3b0f14cf8d9ecb9c8a00613afa")

Thou if I ssh into my octoprint and start a stream it works even in octoprint but I can't close it or open it. Any Ideas ? I mean it is working, but for convenience sake the one button method of the plugin would be nice. Thank you in advance!!

also, havent looked into it but is there a way to change resolution ? the image is very low res

jneilliii commented 6 years ago

Good. The last step is updating your webcam stream url to the same that you used in the test command and then restart your pi and it should work as long as you added in your stream url in settings.

DarasuumNebelin commented 6 years ago

Got it working! Thx But the resolution is still bad! I have 640x480, thou the default should be 1080x1080 Any idear ?

jneilliii commented 6 years ago

The resolution was set low to try and reduce the lag. I may update the plugin in the future to allow the user to adjust that. I'm not 100% sure what mjpgstreamer is set for so there may be a ceiling on how high it can go anyway since the plugin just re-encodes that stream.

DarasuumNebelin commented 6 years ago

OK, thank you anyway for the help. Much appreciated !!