Skip to content
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

Issues getting webcam to work on OrangePi 3 LTS. #36

Closed
murmlei opened this issue Jan 23, 2023 · 7 comments
Closed

Issues getting webcam to work on OrangePi 3 LTS. #36

murmlei opened this issue Jan 23, 2023 · 7 comments

Comments

@murmlei
Copy link

murmlei commented Jan 23, 2023

Hello,

I am trying to get the webcam/timelapse to work on an OrangePi 3 LTS, I am using a Logitech C920.

I am unable to turn the WebCam Streamer on by using sudo scripts/citrico-config.

I have modified octopi.txt as follows:
camera="usb"
camera_usb_option="-r 1920x1080 -f 30"
All other options I have left untouched.

I have also ran the commands from this comment:
#9 (comment)

Despite all of this, OctoPrint says the webcam server is currently not running.

Attached are screenshots of other troubleshooting I have done. Any help regarding this is appreciated and please ask me to provide any additional information you need. Either way a big thank you for creating the boot image.
webcam1
webcam2
webcam3

@ludiazv
Copy link
Owner

ludiazv commented Jan 24, 2023

WebCam service changed with in recent versions of octopi. Commands in #9 are not sufficient now. Another service must be started called streamer_select.service which is disabled by default. Run pi/scripts/citrico-config and enable webcam service and reboot. This service will on every boot active webcamd or hls_streamer (experimental) on each boot based on the configuration file.

A quick fix is also to create the file that webcamd service needs to start:
sudo touch /etc/octopi_streamer/mjpeg

@murmlei
Copy link
Author

murmlei commented Jan 24, 2023

Thank you for the advice. For some reason I can't figure out how to turn on the streamer_select.service through the citrico-config. Any navigational key I hit just changes between the listed items or 'OK' and 'Cancel', pressing enter just turns on all the features already turned on.

With the sudo touch /etc/octopi_streamer/mjpeg I get a 'cannot touch '/etc/octopi_streamer/mjpeg': No such file or directory.

@ludiazv
Copy link
Owner

ludiazv commented Jan 24, 2023

does /etc/octopi_streamer directory exists? Create it if not and then run the touch command

@murmlei
Copy link
Author

murmlei commented Jan 24, 2023

I created the /etc/octopi_streamer directory and ran the touch command, but still in OctoPrint I'm getting an error of the server not running.

@murmlei
Copy link
Author

murmlei commented Jan 27, 2023

I have managed to start the service, which I can confirm from the citrico-config tool. Unfortunately the webcam is still not showing up.

@ludiazv
Copy link
Owner

ludiazv commented Jan 27, 2023

Can you provide the logs of webcamd.service? Is this service enabled?

Also check #11. As in some cases you have to modify boot.txt with correct video device with the option -d in camera_usb_option

@murmlei
Copy link
Author

murmlei commented Jan 28, 2023

It works now!

I looked at the webcam.service logs and it seemed like it was trying to find the camera in the wrong place.

Changing camera_usb_options="-d /dev/video1 -r 1920x1080 -f 30" in octopi.txt seemed to make it work now.

Thank you very much for all your help!

@ludiazv ludiazv closed this as completed Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants