Webcam sources - settings location

More
12 Oct 2024 14:29 #311870 by gitano
Hello!

I've been searching quite a lot in the documentation and on here, but i couldn't find a solution to a - probably relatively simple - problem, so i am asking here:

I'm in the middle of setting up a production system with LinuxCNC 2.9.3 and qtdragon, currently i am planning to implement 1-3 webcams,  the first as a probing cam in the CAMERA tab in the qtdraqgon UI, a second or third as a panorama cam from a different angle for remote surveillance.

The latter will be controlled via a streaming daemon like ustreamer, been using that on my 3d printers already and works great. The primary camera will be controlled directly via LinuxCNC and here my question kicks in:

Is there any configuration option located in the machine .ini file or elsewhere? If yes, where is it located and how is the syntax? Some entry where i can tell LinuxCNC exactly which video device to use, f.e. /dev/video0 or in my case more specific /dev/v4l/by-id/"vendorid", so that no service on the PC mixes up the devices. Or even grab a streaming daemon like ustreamer as well. 

I couldn't find such thing, neither for qtdragon nor for axis :/

If anyone here has an idea, that would be gladly appreciated!

Thank You very much!

Best Regards,
-lgitano
 

Please Log in or Create an account to join the conversation.

More
12 Oct 2024 17:31 #311886 by cmorley
In the preference file look for

[CUSTOM_FORM_ENTRIES]

Camview xscale = 100
Camview yscale = 100
Camview cam number = 1

Please Log in or Create an account to join the conversation.

More
12 Oct 2024 20:49 - 12 Oct 2024 20:51 #311899 by gitano
Thank You very much!

found that section in qtdragon.pref, i guess that xscale and yscale are the camera offsets to the spindle center, correct?

Does Camview cam number = 1 also accept paths to device nodes or even streaming urls? Right now i just get:
invalid literal for int() with base 10: '/dev/video0'

and after shutting down LinuxCNC the default vale "1" is set again in that section.

Thank You very much!

Best Regards,
-lgitano
Last edit: 12 Oct 2024 20:51 by gitano.

Please Log in or Create an account to join the conversation.

More
12 Oct 2024 21:14 - 12 Oct 2024 21:21 #311900 by gitano
Ah ok,

so, playing around with the Camview numbers whhile having 2 webcams connected i guess the following is applicable:

At the moment i have the cameras connected as these devices:

/dev/v4l/by-id/usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera-video-index0 -> ../../video0
/dev/v4l/by-id/usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera-video-index1 -> ../../video1
/dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index0 -> ../../video2
/dev/v4l/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-3000-video-index1 -> ../../video3

Camview interpretes this as such:


Camview cam number = 0 <= the first found device in system, /dev/video0 oder video1
Camview cam number = 1 <- /dev/video0 oder video1
Camview cam number = 2 <- /dev/video2 oder video3

if i put in Camvew = 3 which is not available, qtdragon defaults back to number 0 or 1 allthough this doesn't get changed in the .pref file.

Correct?

Well, i guess i could live with that, it would be really cool though if one could give the exact device node in that file. Even cooler would be the option to put in an url to a shared webstream :) But i totally get if this will not be implemented soon.

Best Regards,
-lgitano
Last edit: 12 Oct 2024 21:21 by gitano.

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum