Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not displaying USB Camera image - No suitable resolutions found to fit #182

Open
maklimcz opened this issue Nov 25, 2024 · 3 comments
Open

Comments

@maklimcz
Copy link

maklimcz commented Nov 25, 2024

Hardware

Device Connection Method Screen USB Device
Raspberry Pi 4 4GB USB Cable Chinese 5 inch screen Chinese RCA-USB adapter

Installation Method: Install.sh

Description of problem:

USB Camera image not displaying on camera page when connect. Only white screen. Overlay disabled.
In logs

No suitable resolutions found to fit in QSize(724, 480)

However my camera has 640x480 output. gst-device-monitor-1.0 output:

Device found:

        name  : USB2.0 PC CAMERA
        class : Video/Source
        caps  : image/jpeg, width=640, height=480, pixel-aspect-ratio=1/1, framerate={ (fraction)60/1, (fraction)30/1, (fraction)15/1, (fraction)5/1 }
        properties:
                udev-probed = true
                device.bus_path = platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1.4:1.0
                sysfs.path = /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1.4/1-1.1.4:1.0/video4linux/video0
                device.bus = usb
                device.subsystem = video4linux
                device.vendor.id = 18ec
                device.vendor.name = ARKMICRO
                device.product.id = 5555
                device.product.name = USB2.0 PC CAMERA
                device.serial = ARKMICRO_USB2.0_PC_CAMERA
                device.capabilities = :capture:
                device.api = v4l2
                device.path = /dev/video0
                v4l2.device.driver = uvcvideo
                v4l2.device.card = USB2.0 PC CAMERA
                v4l2.device.bus_info = usb-0000:01:00.0-1.1.4
                v4l2.device.version = 394803 (0x00060633)
                v4l2.device.capabilities = 2225078273 (0x84a00001)
                v4l2.device.device_caps = 69206017 (0x04200001)
        gst-launch-1.0 v4l2src ! ...


Expected Result:

Camera image displays correctly.

Walkaround:

I've managed walkaround changing the pipeline in the source and recompiling camera.cpp.
develop...maklimcz:dash:develop#diff-37c4b1554b048ac37e0a46f0275628bb7439221f8338f2f7cc2ea7f877b6ffab

@rsjudka
Copy link
Contributor

rsjudka commented Nov 27, 2024

yeah the camera interface has a lot to be desired 🙂 easiest would be to let you type your own in... but I kinda try to minimize keyboard input as much as possible (since not everyone has access to one in the car)

open to suggestions on how we can make this more customizable! (maybe like a "config" mode where more options are exposed? like when setting up your pi on a bench)

@robert5974
Copy link
Collaborator

robert5974 commented Nov 27, 2024 via email

@maklimcz
Copy link
Author

i think the best option is to specify whole pipeline command in config file
you configure that once and if it works there no reason to change it, unless you replace your camera

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants