Home        Store        Docs        Blog

USB camera image formats


(Carl Chatfield) #1

The low light USB camera docs mention h264 hardware. Does the camera also support raw yuv frames?

What is the output of

v4l2-ctl --list-formats /dev/videoX

Thank you


Who can help my raspberry
(Patrick José Pereira) #2

Hi Carl,

You can use --list-formats-ext, it’ll show the available formats and resolutions for extra information.
The output of the low light USB camera is:

$ v4l2-ctl --list-formats-ext 
ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'MJPG' (compressed)
	Name        : Motion-JPEG
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 800x600
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)

	Index       : 1
	Type        : Video Capture
	Pixel Format: 'YUYV'
	Name        : YUYV 4:2:2
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 800x600
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.040s (25.000 fps)
			Interval: Discrete 0.067s (15.000 fps)


(曾琨智) #3

Do you want to use H264 as an ARDUSUB relationship? Or as a raspberry, because I currently want to use FA-202 which is specific to raspberry, thank you.


(Patrick José Pereira) #4

Hi @sengo,

You should use any compressed method like H264, we recommend using webcams that can provide H264 output because of the gstreamer pipeline used in companion. If you want to use any other format, you’ll need to modify the pipeline to support your webcam type.


(曾琨智) #5

Thanks, I understand


(曾琨智) #6

In addition to h264, what else to pay attention to. Thank you


(Patrick José Pereira) #7

Hi sengo,

The camera hardware must have an USB and a V4L interface to allow a better configuration. For underwater operations, usually low-light sensibility is a important feature.


(Jacob) #8

@sengo If you get the usb camera in our store, you can be sure it will work. https://www.bluerobotics.com/store/electronics/cam-usb-low-light-r1/


(曾琨智) #9

I want to change the setting of 5 in the axis monitor. How to change it?


(Jacob) #10

Only 4 analog axes are used. You can configure them with the ‘calibrate’ button.


(曾琨智) #11

I do not understand. Because the calibration key, after the press, did not calibrate this 5, and then did not appear between 0-14, only by pressing the rocker in front of the bottom of the key to see the white point moving, thank you


(Jacob) #12

You cannot use the rocker. Only the joysticks and the buttons.


(曾琨智) #13

I am using the game joystick.


(Jacob) #14

You cannot use axis 5. Only the ones that move with the thumb sticks.


(曾琨智) #15

This one


(曾琨智) #16

ok thank you.


(曾琨智) #17

I used the H264 lens to connect the image for the first time. Later, it was gone. What is wrong with this? How to fix it.
:sweat_smile:


(Jacob) #18

It’s not clear what the problem is. I do not know what you did. You can try the troubleshooting steps here:
https://www.ardusub.com/troubleshooting/troubleshooting.html#no-video


(曾琨智) #19

It’s really hard to have a H264 lens.

My transmission line must be cut and soldered at least two times during the installation process.

However, there are h264 lenses, as long as the transmission line has shear and re-welding, it will not work.

I cut the heavy weld and didn’t change the length.

So I bought one more line this time.

Is to test

really

Replace with uncut line

There is an image

But you know

I have to do waterproof joints

So must be cut

But once cut

There is no video

I only have a way to do it after I have edited it.

But I have to cut at least two places.

Is this what is the reason

Is there a way to solve

There is still this problem

I thought it was a broken lens.

So buy different labels

The result is still the same

I have repeatedly checked the line, so it is definitely not a problem of not being soldered or disconnected or wrong.

The meter measurement path is normal

The voltage is also around 5.25

But just can’t

Trouble pointing me

Troublesome


(曾琨智) #20

Thank you for your help, my basic construction has been completed. I want to add a propeller, as shown in the drawing. Currently it is Figure 1. To change the picture 2. Is there a way, thank you5555555555