#Crowsnest / No signal > cant start capturing: input/output error

75 messages ยท Page 1 of 1 (latest)

quartz zenith
#

I have a multi-camera crowsnest setup on a laptop that works fine for 2 out of 3 devices. I just get a 'no signal' with a working fps counter.

Config:

[cam 3]
mode: mjpg # mjpg/rtsp
port: 8082 # Port
device: /dev/video4 # See Log for available ...
resolution: 1920x1080 # widthxheight format
max_fps: 25 # If Hardware Supports this it will be forced, otherwise ignored/coerced.

The log mentions it can find all 3 cams, and gives me both a /dev/video address as a /dev/v4l/by-id..... address. AFter that, i get the following logs where the error block repeats:

[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.981 stream] -- Device fd=8 opened
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.981 stream] -- Using input channel: 0
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.982 stream] -- Using resolution: 1920x1080
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.982 stream] -- Using format: MJPEG
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.983 stream] -- Using HW FPS: 25
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- ERROR [276200.983 stream] -- Device doesn't support setting of HW encoding quality parameters
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.983 stream] -- Using IO method: MMAP
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.987 stream] -- Requested 5 device buffers, got 5
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- ERROR [276200.988 stream] -- Can't start capturing: Input/output error
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.990 stream] -- Device fd=8 closed
[04/12/23 15:13:23] crowsnest: DEBUG: ustreamer [cam 3]: -- INFO [276200.990 stream] -- Sleeping 1 seconds before new stream init ...

stable oxide
#

Are those 4 times the same logs?

quartz zenith
#

yep, i seem to be an idiot

stable oxide
#

And please send the whole log

quartz zenith
stable oxide
#

So what exactly is your problem atm? That this one cam isn't working or that 2 out of 3 cams aren't working?

quartz zenith
#

1 out of 3 is not working

#

in the current log i disabled the two others, and disconnected one other

#

so the one enabled is the one failing

stable oxide
#

Ok, got it

#

Can you send the output of v4l2-ctl --list-devices

quartz zenith
stable oxide
#

That's what I thought. Please use the full device patch instead of /dev/video. /dev/video can change on reboots and sometimes crowsnest reports the wrong index somehow

quartz zenith
#

so the '/dev/v4l/by-id/usb-YGTek_Webcam_YG_U700_D.2021.0104.1403-video-index0' thingy?

stable oxide
#

yes

quartz zenith
#

okay, i'll give that a shot

stable oxide
#

I googled now and it's just saying the same thing as I already thought. Might be a driver issue

#

Maybe you can find online some driver for this cam.

#

Only thing you could try is to change to the other video device. Maybe this manufacturer is doing something weird.
This would be /dev/v4l/by-id/usb-YGTek_Webcam_YG_U700_D.2021.0104.1403-video-index1 or /dev/video3 according to your last log

quartz zenith
#

i'll try changing it first

#

does it help if i mention that it worked out of the box on a raspberry pi with raspbian, and not on ubuntu22?

stable oxide
#

Ok, that's weird

quartz zenith
#

clarification, not on my laptop running ubuntu22

stable oxide
#

Try to find the driver on that website and install them on your laptop

#

If this is the right one ofc

#

nvm

#

I just googled something and then posted it without thinking

#

Is this the builed in laptop cam?

quartz zenith
#

๐Ÿ˜…

#

nope, it's a free usb cam

stable oxide
#

Sry

quartz zenith
stable oxide
#

I'm dumb right now xD

quartz zenith
#

Haha ๐Ÿ˜†

stable oxide
#

@exotic steeple you maybe have some idea on this? For short: ERROR [276200.988 stream] -- Can't start capturing: Input/output error on a basic usb webcam that was working on a raspi first but not on an Ubuntu 22.04.02 LTS Laptop

exotic steeple
#

Didnt finish the test yet, but could be possible ubuntu uses a special group to access cameras as a normal user

#

Kernel wise it should be nearly the same

quartz zenith
#

2 other camera's do work, is that helpful?

exotic steeple
#

Okayy.... Thats wierd ๐Ÿค”

#

But luck for you, I will try to replicate, I own the same cam too ๐Ÿ˜‰

#

Please be patient

quartz zenith
#

lmao that's cool

#

no worries :)

exotic steeple
#

Do you use the server variant or a desktop?

quartz zenith
#

how do you mean?

stable oxide
#

Are you using Ubuntu with a desktop environment or only headless server version?

quartz zenith
#

ah, with a desktop env

exotic steeple
#

Which one?

#

Want to use the exact same to see differences

quartz zenith
#

is there a command to get specific info like that?

#

i just downloaded ubuntu 2204 lts

exotic steeple
#

Ok, then it should be the default GNOME edition... So nothing like KDE or XFCE right?

quartz zenith
#

nope, nothing like that

exotic steeple
#

So... Cant replicate, but please share output of ls -l /dev/video*

#

Could be an permission problem

quartz zenith
exotic steeple
#

groups

quartz zenith
#

groups?

exotic steeple
#

command groups need output

quartz zenith
exotic steeple
#

sudo usermod -aG video pi reboot after

#

Oh stop

quartz zenith
#

that was just in time xD

exotic steeple
#

missed you are in group video

#

Thats wierd. I'll try another pc with ubuntu, maybe it shows up there on my lenovo thinkpad I couldnt replicate

quartz zenith
#

hey guys, update: turned out my usb hub wasn't playing fair

#

the one that was already working seems fine with the hub, the one that didn't work hates the usb hub

#

without the hub it works fine

#

i'll try a new hub later on

#

different hub has the same issues

#

interesting

#

printer via hub instead of direct does seem to work, so i can put the webcam in directly

#

so i have a working workaround