#webcam feed stops after a couple of seconds

77 messages ยท Page 1 of 1 (latest)

pliant depot
#

So I just switched to Crows nest.
Running raspberry pi4 Mainsail OS on a Voron2.4

Somehow the webcam stops after a couple of seconds when I restart Crows nest service. Any help is appreciated!

sleek obsidian
#

A crowsnest.log is appreciated ๐Ÿ˜œ

pliant depot
#

On it!

#

Doesn't help if I change it to 800x600

#

Which is actually a supported format

sleek obsidian
#

What UI do you use? Mainsail or Fluidd? And which service (mjpg, adaptive mjpg, webrtc)?

pliant depot
#

Mainsail

sleek obsidian
#

Oh, I see you are on Buster, so no webrtc. Do you use adaptive mjpg or mpg then?

pliant depot
#

Got it on adaptive right now

sleek obsidian
#

Ok, plaese set log_level: debug and send a new log, after that issue appears again

pliant depot
#

On it

#

Basically it reports this

sleek obsidian
#

Send the file please

#

Also run dmesg > ~/printer_data/config/dmesg.txt and send the dmesg.txt that can be found on the machine page with your configs

pliant depot
#

There we go

#

I don't see anything particularly wrong except for can't set input channel

sleek obsidian
#

What exact model is that Brio Logitech? Some browsing on the models let me think that this series of cams might not be compatible with Linux

pliant depot
#

Had it working at one point with webcamd

sleek obsidian
#

Then might be a problem with ustreamer ๐Ÿคทโ€โ™‚๏ธ

pliant depot
#

I don't see your dames.txt

#

Dmesg

sleek obsidian
#

Can you send a screenshot of ls ~/printer_data/config?

#

Maybe it's just on the second page of the configs?

pliant depot
sleek obsidian
#

Seems like you didn't execute it correctly maybe?

#

Or maybe I'm just dumb ^^

#

No, the command should be correct

pliant depot
#

Where is the dmesg txt related to?

sleek obsidian
#

It should be inside ~/printer_data/config

#

ls ~ will be printing the files in your home btw

pliant depot
#

Ok but it tells you about?

#

Yeah I am on my phone

sleek obsidian
#

About some deeper errors

pliant depot
#

I read it wrong the second time

#

Is it specific for crowsnest

#

Or ustream

sleek obsidian
#

Nope

pliant depot
#

I am btw on the legacy build

sleek obsidian
#

It shows overall messages from the kernel

sleek obsidian
#

But this shouldn't matter for this

pliant depot
#

fixed it

#

int input = dev->input; // Needs a pointer to int for ioctl()
LOG_INFO("Using input channel: %d", input);
if (xioctl(RUN(fd), VIDIOC_S_INPUT, &input) < 0) {
LOG_ERROR("Can't set input channel");
return -1;
}

#

commented this out in the device.c file of ustreamer

sleek obsidian
#

I wouldn't do that ^^
Also the dmesg output might help

pliant depot
#

which I don't have

#

and why wouldn't you do that ^^

sleek obsidian
#

Most likely there is a reason for an exit. There might be no problems, but it could also create problems

sleek obsidian
pliant depot
#

Ok the fix wasn't actually the fix

#

I ran sudo make config

#

And with the option apply raspi fix

#

I chose yes

#

That was the fix

sleek obsidian
#

This shouldn't have fixed anything.....That fix is for something completely different ๐Ÿค”

pliant depot
#

Yeah

#

Somehow it worked

#

What was it suppose to fix?

#

Btw how can I open a direct stream

sleek obsidian
pliant depot
#

Owyeah I read that

sleek obsidian
pliant depot
#

Aah ok

#

So that wasn't also a fix

#

It is probably webcamd taking over because crowsnest is failing to start

sleek obsidian
#

Run systemctl disable webcamd

#

If it succesfully disables, then you might be right

#

If no service is found, then it's not running

#

Then I need the dmesg output somehow (copy paste, screenshot, the command I send, ....)

pliant depot
#

Update: I did a fresh install now the camera works properly with crowsnest. Probably some old residu is messing too much with the services.

sleek obsidian
#

Fresh install of the whole system?

#

Or just crowsnest?