Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9029979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:22:38+00:00 2026-06-16T07:22:38+00:00

I have been developing some video apps using USB webCam and the v4l2 API.

  • 0

I have been developing some video apps using USB webCam and the v4l2 API. The API gives lots of ioctl() calls to enumerate general capabilities, video standard, pixel color formats, etc. But there is not an ioctl() to enumerate all of the possible image sizes the USB webCam supports.

What is the preferred way to do this?

The API documentation says you can set a particular image size and the ioctl() will return its closest match. So I guess I could try every possible image size and see if the USB webCam rejects it. But that seems like a rather inefficient way to enumerate all possible supported image sizes when there are so many standard size formats (QCIF, CIF, 4CIF, 16CIF,VGA, DV, SVGA, XGA, UVGA, SXGA, UXGA, etc).

Thanks,

-Andres

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:22:39+00:00Added an answer on June 16, 2026 at 7:22 am

    I will answer my own question…

    Turns out I have been viewing some very old documentation on v4l2 that did not include any reference to the ioctl() for image sizes. The newer documentation does indeed had an VIDIOC_ENUM_FRAMESIZES ioctl() for enumerating all of the supported frame sizes.

    Moral of this story: Always get the most current documentation for any API you intend to use. For video4linux2 use this:

    http://linuxtv.org/downloads/v4l-dvb-apis/

    -Andres

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been developing some iOs stuff using the simulator and a real iPad.
I have been developing the application for drawing and I have some problems: the
I have been developing with objective C and the Cocoa framework for quite some
I have been developing a script on my linux box for quite some time,
I have been developing some computer vision tools with openCV, but every time that
I have an outlook addin that I have been developing for some time now,
I have been developing websites for quite some time and I am not so
I have been developing a Silverlight application using WCF. The problem is that sometimes
I have been developing android apps out of hobby and fun. I want to
I have been developing some software and want to give it version numbers. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.