cmauri / eviacam

webcam based mouse emulator
GNU General Public License v3.0
145 stars 38 forks source link

Wrong cam-ID detection if more webcam is plugged #42

Open blackPantherOS opened 1 year ago

blackPantherOS commented 1 year ago

The situation, i have 3 webcam and 1 FakeCam. This devices working fine in OBS and in other apps.

When i started eviacamloader and select any other cam instead default (video0), the eviacam cannot starting. (my suggestion is that there should be an error window here, because now there is nothing)

Example for reporcedure error:

My devices:

 ls /dev/video*
/dev/video0  /dev/video1  /dev/video2  /dev/video20  /dev/video3  /dev/video4  /dev/video5

After selected "FakeCam" which 'video20' the config this is:

cat .eviacam
[settings]
cameraName=" (Id:5) FakeCam"
checkUpdatesAtStartup=1

Cannot start, and the output displayed 'video1' device can't open....

Use: 1000, Group: 1001. Eff. usr: 0, Eff. group: 1001
[libwebcam] Invalid V4L2 control type encountered: ctrl_id = 0x00980001, name = 'User Controls', type = 6
[libwebcam] Invalid or unsupported V4L2 control encountered: ctrl_id = 0x00980001, name = 'User Controls'
[libwebcam] Unknown V4L2 user control ID encountered: 0x0098F900 (V4L2_CID_USER_BASE + 61440)
[libwebcam] Unknown V4L2 user control ID encountered: 0x0098F901 (V4L2_CID_USER_BASE + 61441)
[libwebcam] Unknown V4L2 user control ID encountered: 0x0098F902 (V4L2_CID_USER_BASE + 61442)
[libwebcam] Unknown V4L2 user control ID encountered: 0x0098F903 (V4L2_CID_USER_BASE + 61443)
[ WARN:0@13.088] global opencv-4.6.0/modules/videoio/src/cap_gstreamer.cpp (1405) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
[ WARN:0@13.091] global opencv-4.6.0/modules/videoio/src/cap_gstreamer.cpp (2401) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src1 reported: A(z) „/dev/video1” not a recorder device
[ WARN:0@13.091] global opencv-4.6.0/modules/videoio/src/cap_gstreamer.cpp (1356) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0@13.091] global opencv-4.6.0/modules/videoio/src/cap_gstreamer.cpp (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0@13.091] global opencv-4.6.0/modules/videoio/src/cap_v4l.cpp (902) open VIDEOIO(V4L2:/dev/video1): can't open camera by index
Use: 1000, Group: 1001. Eff. usr: 1000, Eff. group: 1001

eViacam works well with the default webcam (video0)! But this happens when I select a different camera (video2/4/20)...

RGDS