Author Topic: Install webcam in Linux Mint 21 so I can use it with Octoprint  (Read 314 times)

0 Members and 1 Guest are viewing this topic.

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1115
  • Country: ca
Install webcam in Linux Mint 21 so I can use it with Octoprint
« on: November 09, 2022, 03:12:54 am »
I have an old NUC with Intel Celeron and I thought why not use it as an Octoprint server. I installed Linux Mint 21, Octoprint, SSH and everything works like  a charm ... except for the video stream. I have a Logitech C615 and it works well in Cheese but I cannot get it to work with Octoprint. I tried every instruction on the web (I'm not very knowledgeable in Linux, so to speak) to install mjpg-streamer, with no luck. Is there any Linux  guru that can help me with this or do you know any working step by step sequence that I can follow?

Cheers,
Miti

Edit: To moderators, I think this topic belongs here because is about Octoprint and 3D printing and not only about computers, but if you want to move it then, well...
« Last Edit: November 09, 2022, 03:16:36 am by Miti »
Fear does not stop death, it stops life.
 

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 3498
  • Country: au
  • Cat video aficionado
Re: Install webcam in Linux Mint 21 so I can use it with Octoprint
« Reply #1 on: November 09, 2022, 03:39:16 am »
Only used cheese as a fleeting glimpse not familiar with Octoprint. But here's my quick guess anyway..

Cheese might be more aggressive in finding your camera but maybe Octoprint requires a specific parameter to find the camera.

I'd try and find what the location of the camera is, /dev/? and see if there's a way to make Octoprint accept it.
 

Offline Infraviolet

  • Regular Contributor
  • *
  • Posts: 171
  • Country: gb
Re: Install webcam in Linux Mint 21 so I can use it with Octoprint
« Reply #2 on: November 12, 2022, 06:46:54 pm »
Can Cheese's video be piped to octoprint somehow? Also, check if the camera setup works with zoom/google meet/other common videocall platforms, if it does than you knw this is an octoprint complication specifically, if it doesn't then you know it may be an issue with the camera which cheese happens to be lucky enough to overcome but nothing else can. I'm on Mint (and older version), and have found USB webcams and inbuilt ones to work fine with everything I've used, but I've never used Octoprint. Does octoprint have its own forum you could report this on?
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1115
  • Country: ca
Re: Install webcam in Linux Mint 21 so I can use it with Octoprint
« Reply #3 on: November 13, 2022, 10:35:07 am »
Thanks guys for your answers! Sorry, I was crazy busy these days. I finally managed to configure it with information combined from all the corners of the internet. There’s only one more thing to do, make it start at boot. That part doesn’t work yet. If I log in or ssh in and start it manually it works, but the service doesn’t seem to start at Linux start. I also get an M112 shutdown error when I connect with Octoprint to the printer and I think it is because I’m running Jyers SW which I like, but I understand it is based on an older version of Marlin which is buggy. I may have to upgrade to the latest Marlin.
Fear does not stop death, it stops life.
 
The following users thanked this post: Ed.Kloonk

Offline barelectricbear

  • Newbie
  • Posts: 3
  • Country: us
Re: Install webcam in Linux Mint 21 so I can use it with Octoprint
« Reply #4 on: November 22, 2022, 03:46:51 am »
You can make the program start on boot by adding the executable path to the /etc/rc.local file.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 



Advertise on the EEVblog Forum