Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

v4l2 Webcam Error "Inappropriate ioctl for device"

Featured Replies

I have a Logitech C920 webcam I am trying to use on my Radxa Zero.

I'm running Armbian 23.11.1 Bookworm 6.1.63 64-bit.

 

When I run v4l2-ctl -i /dev/video1 --list-formats to query the webcam, it errors out.

 

VIDIOC_S_INPUT: failed: Inappropriate ioctl for device
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture Multiplanar

        [0]: 'NM12' (Y/UV 4:2:0 (N-C))

 

It seems anything relying on v4l2 is also failing to work.

 

Anyone have ideas of what the issue may be?

 

Thanks!

 

----------------------

 

FYI...If I use this webcam on a RaspberryPi 4 running Bookworm, it produces the following output and all v4l2 work.

Video input set to 0 (Input 1: Camera, ok)
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'YUYV' (YUYV 4:2:2)
        [1]: 'H264' (H.264, compressed)
        [2]: 'MJPG' (Motion-JPEG, compressed)

 

  • Author
On 1/14/2024 at 1:06 PM, Igor said:

You get anything from:
 

v4l2-ctl --list-devices

 

 

No, that does not work either.

The issue happens under "Armbian Bookworm    Minimal CLI".

 

 

Another fact I've found:

Since posting the original question, I tried "Armbian Jammy    Minimal CLI".

The camera works under Jammy.

 

So the issue seems specific to Armbian Bookworm.

(Note the camera also works under Raspberry PI's Bookworm.)

Hi! I'm new here too. I tested my webcam using webcammictest.io, and it worked fine, so the hardware seems okay. If you're encountering the "Inappropriate ioctl for device" error with v4l2-ctl, it might be due to driver compatibility issues or kernel differences. You could try using a different Armbian version, like Jammy, to see if that resolves the problem

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.