# VOXL2 + Logitech C270 UVC Camera Resolution

Source: https://forum.modalai.com/topic/2723/voxl2-logitech-c270-uvc-camera-resolution
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2023-10-05 04:54:47 UTC by Jskim
Replies: 13 · Views: 2433

## Jskim · 2023-10-05 04:54:47 UTC

I am using the recommended UVC camera.
There is a problem using the UVC camera Logitech C270 in VOXL-2.
Logitech C270 supports 720p resolution.

There is no problem if I set it to 640x480.
If you set it to 1280x720, the UVC server does not work.
voxl-uvc-server
{
  "pipe name" : "uvc",
"width" : 1280,
"height" : 720,
"fps" : 30,
}
When set to 720p, UVC server appears as Not running.

UVC server program modification is required.

Thanks,

JongSoo, Kim

![Camera Server.jpg](https://forum.modalai.com/assets/uploads/files/1696481563991-camera-server.jpg) ![Services.jpg](https://forum.modalai.com/assets/uploads/files/1696481622811-services.jpg)

## Reply by tom (ModalAI staff) · 2023-10-05 18:02:24 UTC

@Jskim What do you see with `journalctl -u voxl-uvc-server`

## Reply by Jskim · 2023-10-11 08:26:51 UTC (in reply to tom)

@tom 

Thank you for the quick reply.
Sorry for the late reply. It was a holiday season in Korea.

When executing the journalctl -u voxl-uvc-server command,
It says that the format size is incorrect.
![Resolution fail_20231011_172059795.jpg](https://forum.modalai.com/assets/uploads/files/1697012736272-resolution-fail_20231011_172059795.jpg) 

Thanks

JS, kim

## Reply by Eric Katzfey (ModalAI staff) · 2023-10-11 15:42:07 UTC (in reply to Jskim)

@Jskim If you are using USB 2.0 it probably cannot support that data rate. Please read the UVC tips here: https://docs.modalai.com/voxl-uvc-server/#tips to figure out what width, height, frame rate, and format combinations the camera is advertising as available.

## Reply by Jskim · 2023-11-02 07:51:47 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

Hi Eric,
1. Is there a way to support H.265 when using a UVC camera in VOXL 2?
2. The same symptom occurs even when using the USB3 port. Please tell me how to increase the UVC camera resolution?
1) Existing 640x480 to 1024x768 or 1280x720
2) Camera manufacturer Logitech C270, YUY2

Thanks,

## Reply by Eric Katzfey (ModalAI staff) · 2023-11-02 23:19:04 UTC (in reply to Jskim)

@Jskim You would need to modify the voxl-uvc-server code to support h265 format. It doesn't currently support that.

## Reply by Eric Katzfey (ModalAI staff) · 2023-11-02 23:20:27 UTC (in reply to Jskim)

@Jskim What is the output of `lsusb -v -d 046d:0825` when you attach the camera to USB 3.0?

## Reply by Jskim · 2023-11-03 02:39:08 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

It's too long, so I'm only attaching the front part.![C270 CAM_01.PNG](https://forum.modalai.com/assets/uploads/files/1698979130401-c270-cam_01.png) ![C270 CAM_02.PNG](https://forum.modalai.com/assets/uploads/files/1698979137784-c270-cam_02.png) ![C270 CAM_03.PNG](https://forum.modalai.com/assets/uploads/files/1698979145777-c270-cam_03.png) 

Thanks,
Kim

## Reply by Eric Katzfey (ModalAI staff) · 2023-11-03 15:34:38 UTC (in reply to Jskim)

@Jskim The information you need is in the part you cut out. It will tell you all of the formats it supports. But since it is only USB 2.0 you are not going to get the higher resolutions without compression. USB 2.0 just doesn't have the bandwidth for it.

## Reply by Jskim · 2023-11-06 00:48:16 UTC (in reply to Eric Katzfey)

@Eric-Katzfey 

This is the result of our test using VOXL 2 USB3.0 / UART Expansion Adapter.
The symptom is the same even when using USB2.0 and USB3.0.

Thanks,
Kim.

## Reply by Eric Katzfey (ModalAI staff) · 2023-11-06 15:42:40 UTC (in reply to Jskim)

@Jskim You need to look at that output of lsusb to see what formats it is supporting. I don't think the C270 is capable of USB 3.0. So those higher resolutions will only be available with compression. voxl-uvc-server does not support the compressed formats at this time.

## Reply by Jskim · 2023-11-07 02:39:53 UTC (in reply to Eric Katzfey)

@Eric-Katzfey Thanks for the reply. I'll try it with a different camera and let you know the results.

## Reply by Jskim · 2023-11-13 04:46:16 UTC (in reply to Jskim)

@Jskim 
Please tell me how to change the UVC camera format.
It is currently set to YUY2.
I want to change it to MJPG. The reason is to increase the resolution.

[Refer to DOCS contents on website]
The Arducam B0229 is an excellent choice:
Field of View (FOV)D=105°, H= 90°, V= 65°
Supports MJPG 15fps@ 3264x2448, 30fps@1080P, and YUY2 30fps@ 640x480 formats.

Thanks, 
KIm,

## Reply by Eric Katzfey (ModalAI staff) · 2023-11-13 15:03:18 UTC (in reply to Jskim)

@Jskim voxl-uvc-server doesn't support that format. You would have to modify the code to add that feature.
