#Creality cam didnt works

172 messages ยท Page 1 of 1 (latest)

languid marlin
wispy crow
#

Fix your tags #readme

#

Also send a crowsnest.log

#

And just fyi, this post isn't from us, but the guy who posted this, found it and shared it at first on this server. Overall I don't have the camera and therefore can only help with the details provided in this post: https://discord.com/channels/758059413700345988/1090261571063783564
Inside that post there is linked another post that got a lot more information

languid marlin
#

our channel didnt see #unknown

wispy crow
#

Set delete_log: true, log_level: debug and device: /dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index2 inside your crowsnest.conf

#

And mode: ustreamer

languid marlin
#

what

#

i cant understand

#

ffmpeg -i /dev/video0 ~/image.jpg
how to do that

wispy crow
#

Do what I said first

#

Open your crowsnest.conf

languid marlin
#

yep

wispy crow
#

And then read through it and set the values I said

#

After that you send a new log please and then we continue

languid marlin
#

[crowsnest]
log_path: /home/klipper/printer_data/logs/crowsnest.log
log_level: debug # Valid Options are quiet/verbose/debug
delete_log: true # Deletes log on every restart, if set to true
no_proxy: false

[cam 1]
mode: mjpg
port: 8080
device: /dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index3
resolution: 1920x1080
max_fps: 30

#

oke ?

wispy crow
#

No, you missed 2 values

languid marlin
#

[crowsnest]
log_path: /home/klipper/printer_data/logs/crowsnest.log
log_level: debug # Valid Options are quiet/verbose/debug
delete_log: true # Deletes log on every restart, if set to true
no_proxy: false

[cam 1]
mode: ustreamer
port: 8080
device: /dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index2
resolution: 1920x1080
max_fps: 30

wispy crow
#

mode: ustreamer and the device should end on 2 and not 3

languid marlin
#

?

wispy crow
#

Yes

languid marlin
#

save and restart

wispy crow
#

Then wait like 20s and send a new log

languid marlin
wispy crow
#

That values didn't get set

languid marlin
#

why

#

how fix

wispy crow
wispy crow
languid marlin
#

yep

wispy crow
#

Send the output of that please

languid marlin
#

wait

wispy crow
#

A screenshot would be fine too (if it's better for you)

languid marlin
wispy crow
#

The log should be there ๐Ÿค”

#

But it doesn't matter right now.

languid marlin
#

what should I do

wispy crow
#

Just wait for my instructions, I have to read up on it too..

#

Omg, this is a pi5....

languid marlin
#

yep

wispy crow
#

I already wondered as there is missing some stuff

#

We really need to push that fix ^^

#

Send the output of the command v4l2-ctl --list-devices

languid marlin
#

How did you know it was pi5?
pispbe (platform:1000880000.pisp_be):
/dev/video20
/dev/video21
/dev/video22
/dev/video23
/dev/video24
/dev/video25
/dev/video26
/dev/video27
/dev/video28
/dev/video29
/dev/video30
/dev/video31
/dev/video32
/dev/video33
/dev/video34
/dev/video35
/dev/video36
/dev/video37
/dev/media0
/dev/media1

rpivid (platform:rpivid):
/dev/video19
/dev/media2

CREALITY CAM: CREALITY CAM (usb-xhci-hcd.1-2):
/dev/video0
/dev/video1
/dev/video2
/dev/video3
/dev/media3

wispy crow
#

Then run ffmpeg -i /dev/video0 ~/image.jpg

languid marlin
#

ffmpeg -i /dev/video0 ~/image.jpg
-bash: ffmpeg: command not found

wispy crow
#

sudo apt install ffmpeg -y

#

And then try it again

languid marlin
#

installing, How did you know it was pi5?

wispy crow
#

It's inside your log and it has a bug that is currently only on the pi5 ^^

languid marlin
languid marlin
wispy crow
languid marlin
#

/dev/video2: Device or resource busy

wispy crow
#

sudo systemctl stop crowsnest and then try it again

wispy crow
languid marlin
wispy crow
#

y

languid marlin
#

Conversion failed!

wispy crow
#

Now run sudo systemctl start crowsnest

languid marlin
#

?

wispy crow
#

Yes, run it anyway

languid marlin
#

๐Ÿ‘

wispy crow
languid marlin
#

started

wispy crow
languid marlin
#

in klipper.local/webcam? yes

#

but

#

i cant see in dashboard

wispy crow
languid marlin
wispy crow
languid marlin
#

what i cant understand

#

cant see

wispy crow
#

Without a webcam added you can see no webcam....

languid marlin
#

oh

#

i see it

#

Should I make any adjustments here?

#

Should I fix fps etc?

#

max 200+

#

cam fps

wispy crow
#

You should set a maximum of 30 and I recommend to lower it even further down

languid marlin
#

set 999

languid marlin
wispy crow
#

Your cam can only put out 30 fps.....So anything higher will give you only double the same frame

#

You can get 1 Millionen frames if you want, but if your cam only output 3 fps you only get those 3 frames and nothing more

#

And no you cannot simply increase it inside the crowsnest.conf......

#

An important note. You might have to run ffmpeg -i /dev/video0 ~/image.jpg again after you rebooted the pi.

languid marlin
wispy crow
wispy crow
languid marlin
#

It generally gives less lag in games, is there a load on it when you remove the limit?

wispy crow
#

Ofc there is a load......Like in your games....

languid marlin
#

We just tried it and it gave an error

wispy crow
#

Also you might be right, but first of all your monitor is most likely not capable of 200 frames, so it doesn't even matter..

wispy crow
languid marlin
#

Damn, is 30 enough? What would you suggest?

wispy crow
#

I use 15

#

And your cam isn't capable of more than 30 anyways.....

languid marlin
#

Yes, they both said the same thing, but the last one we tried, y/n, asked.

wispy crow
#

Also this isn't just a load on your CPU of the PC but also on your poor network, as this is some huge amount of data that get's transferred

wispy crow
#

If you read that message, it just says that the file you want to write to is already there. Why? Because we wrote to that file with the other command directly before that

languid marlin
#

oh

#

im didnt readed it

#

mb

#

Can I change the location of the tabs on the dashboard?

#

And is moonraker and mobileraker compatible? Can I use them both together?

wispy crow
# languid marlin

Just go to the dashboard settings that you can see at the left top of your screenshot there

wispy crow
languid marlin
#

The webcam is showing too big, can we make it a little smaller?

languid marlin
wispy crow
wispy crow
languid marlin
wispy crow
#

You could try to lower the resolution maybe ๐Ÿคทโ€โ™‚๏ธ

languid marlin
#

1920x1080 what should I do now?

wispy crow
#

Oh, right the resolutions aren't listed inside the log xD

languid marlin
#

I have sent the config above .d

wispy crow
#

Yes, but it doesn't tell what your cam supports.............

#

You can only set something your cam support.....

languid marlin
#

1080..........................................

wispy crow
#

Run v4l2-ctl -d /dev/video0 --list-formats-ext

wispy crow
languid marlin
#

v4l2-ctl: unrecognized option '--lsit-formats-ext'

wispy crow
#

typoed, I corrected it

languid marlin
#

$ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

    [0]: 'H264' (H.264, compressed)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 1280x720
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 640x480
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
    [1]: 'HEVC' (HEVC, compressed)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 1280x720
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 640x480
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
wispy crow
#

Oh, that makes sense now xD

#

Run the same command but with /dev/video2

languid marlin
#

$ v4l2-ctl -d /dev/video2 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

    [0]: 'MJPG' (Motion-JPEG, compressed)
            Size: Discrete 320x240
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
            Size: Discrete 640x360
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
            Size: Discrete 720x576
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
            Size: Discrete 640x480
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
            Size: Discrete 320x240
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
                    Interval: Discrete 0.033s (30.000 fps)
                    Interval: Discrete 0.040s (25.000 fps)
wispy crow
#

Wait, so it doesn't even do 1080?

languid marlin
#

raspberry?

wispy crow
languid marlin
#

says 1080

wispy crow
#

But we cannot use /dev/video0

#

We can only use /dev/video2 of that cam with crowsnest

#

And there it doesn't support 1080

languid marlin
#

So what should I do?

#

720x576 ?

wispy crow
#

It also explains why it's so huge in your panel. Because it's a 4:3 aspect ratio instead of 16:9

#

640x360 should be better for the height/width ratio

#

That way it should get a bit smaller

languid marlin
#

[cam 1]
mode: ustreamer
port: 8080
device: /dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index2
resolution: 640x360
max_fps: 30

#

?

wispy crow
#

Yes

#

I'm off now. Already 0:30 for me

languid marlin
#

after big

languid marlin
languid marlin
#

ffmpeg -i /dev/video0 ~/image.jpg

#

works

wispy crow
languid marlin
wispy crow
languid marlin
wispy crow
#

I saw your cryptic message there too, but that information there was useless tbh.
First of all you pinged James, maybe without context, I don't know. Then you just said, your usb cam is not working, and then some output from lsusb?
Like I said, we are all doing that in our free time and without payment, James too.
So I recommend to give always as much information as possible, that the supported don't need extra time just to find out the actual problem

languid marlin
wispy crow
#

All I wanted to say is, give more information than that messages on the Klipper Discord next time you ask for help ๐Ÿ˜„

James my cam not works. (usb)
cant setup
Bus 001 Device 002:

It's as if I would say:
My car is broken
cannot drive
VW xyz

#

If there are no further questions, please close this post