Community
cancel
Showing results for 
Search instead for 
Did you mean: 
YMand1
Beginner
1,505 Views

VIDIOC_QUERYCAP: failed: Invalid argument

As following https://github.com/intel-aero/meta-intel-aero/wiki/90-(References)-OS-user-Installationhttp:// this for number of video devices and run

sudo v4l2-ctl --list-devices

I am getting some error messages before device list:-

VIDIOC_QUERYCAP: failed: Invalid argument

VIDIOC_QUERYCAP: failed: Invalid argument

VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device

VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device

VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device

VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device

VIDIOC_QUERYCAP: failed: Inappropriate ioctl for device

():

/dev/v4l-subdev7

/dev/v4l-subdev8

ATOM ISP (PCI-3):

/dev/video0

/dev/video1

/dev/video2

/dev/video3

/dev/video4

/dev/video5

/dev/video6

/dev/video7

/dev/video8

/dev/video9

/dev/video10

Intel RealSense 3D Camera R200 (usb-0000:00:14.0-4):

/dev/video11

/dev/video12

/dev/video13

/dev/v4l-subdev0

/dev/v4l-subdev1

/dev/v4l-subdev2

/dev/v4l-subdev3

/dev/v4l-subdev4

/dev/v4l-subdev5

/dev/v4l-subdev6

0 Kudos
4 Replies
idata
Community Manager
184 Views

Hello Yograj,

 

 

Thank you for your interest in the Intel Aero drone.

 

 

You can try to rebuild v4l2 . Please follow these steps to do so.
  • sudo apt-get install libv4l-dev
  • cmake -DWITH_LIBV4L=ON .. (or similar, it's important to have the WITH_LIBV4L enabled
  • make && sudo make install
If the issue still persists, please provide me the output of the command aero-get-version.py

 

 

Hope this helps.

 

 

Regards,

 

Octavian
YMand1
Beginner
184 Views

when I run following commands I get these messages

cmake -DWITH_LIBV4L=ON

CMake Error: The source directory "/home/smart_drone" does not appear to contain CMakeLists.txt.

Specify --help for usage, or press the help button on the CMake GUI.

aero-get-version.py

/sys/firmware/dmi/tables/smbios_entry_point: Permission denied

/dev/mem: Permission denied

BIOS_VERSION = unknown

OS_VERSION = Ubuntu 16.04.3 LTS"

AIRMAP_VERSION = unknown

FPGA_VERSION = unknown

AeroFC firmware version = 1.6.5

and with sudo

sudo aero-get-version.py

BIOS_VERSION = Aero-01.00.13

OS_VERSION = Ubuntu 16.04.3 LTS"

AIRMAP_VERSION = unknown

FPGA_VERSION = 0xc2

AeroFC firmware version = 1.6.5

idata
Community Manager
184 Views

Hello Yograj,

 

 

Thank you for your reply.

 

 

The black and white camera is not fully v4l2 compliant. Using opencv or gstreamer with the camera device node to grab camera frames will not work. The sequence of operation as shown in the sample needs to be done. Polling on device file descriptor times out after certain interval. This requires the device to be restarted.

 

 

You can access the camera with /dev/video2 but can't stream this device with gstreamer. Instead, you can download a sample code from https://github.com/intel-aero/sample-apps/tree/master/capturev4l2 https://github.com/intel-aero/sample-apps/tree/master/capturev4l2 to see how you can capture a few frames to raw format, then output jpg frames:

 

git clone https://github.com/intel-aero/sample-apps.git cd sample-apps/capturev4l2/ make C=10 INPUT=1 MODE=PREVIEW ./capture_v4l2 --userp -d /dev/video2 ffmpeg -f rawvideo -s 640x480 -pix_fmt yuv420p -i Image-video<*> test.jpg You can find more info on our wiki: https://github.com/intel-aero/meta-intel-aero/wiki/06-Cameras-and-Video# take-a-photo-with-the-black-and-white-camera Regards, Octavian
idata
Community Manager
184 Views

Hello Yograj,

 

 

Do you require any more assistance with this issue?

 

 

Regards,

 

Octavian