Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Device or resource busy

Hi there,

I'm trying to write a program that uses 2 cameras. In the first step I open the cameras on by one for configuration (which is left, right, not to use and so on). After that I open the left and right camera each in on thread. I close the configuration with:

destroyWindow(id);

cap.release();

The Problem is after the configuration I get the massage:

  VIDEOIO ERROR: V4L/V4L2: VIDIOC_CROPCAP
    VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
    VIDIOC_REQBUFS: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor
    Unable to stop the stream.: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor

Device or resource busy

Hi there,

I'm trying to write a program that uses 2 cameras. In the first step I open the cameras on by one for configuration (which is left, right, not to use and so on). After that I open the left and right camera each in on thread. I close the configuration with:

destroyWindow(id);

cap.release();

The Problem is after the configuration I get the massage: following massage when I try to open the capturing:

  VIDEOIO ERROR: V4L/V4L2: VIDIOC_CROPCAP
    VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
    VIDIOC_REQBUFS: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor
    Unable to stop the stream.: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor

Device or resource busy

Hi there,

I'm trying to write a program that uses 2 cameras. In the first step I open the cameras on by one for configuration (which is left, right, not to use and so on). After that I open the left and right camera each in on thread. I close the configuration with:

destroyWindow(id);

cap.release();

The Problem is after the configuration I get the following massage when I try to open the capturing:

  VIDEOIO ERROR: V4L/V4L2: VIDIOC_CROPCAP
    VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
    VIDIOC_REQBUFS: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor
    Unable to stop the stream.: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor

Another thing thats happening is that the camera window stays open for much to long. I put a sleep(60) after closing the video feed and the window stays open until the sleep is over. It's like the command is not even executed when the command is given.

Device or resource busy

Hi there,

I'm trying to write a program that uses 2 cameras. In the first step I open the cameras on by one for configuration (which is left, right, not to use and so on). After that I open the left and right camera each in on thread. I close the configuration with:

destroyWindow(id);

cap.release();

The Problem is after the configuration I get the following massage when I try to open the capturing:

  VIDEOIO ERROR: V4L/V4L2: VIDIOC_CROPCAP
    VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
    VIDIOC_REQBUFS: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor
    Unable to stop the stream.: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor

Another thing thats happening is that the camera window stays open for much to long. I put a sleep(60) after closing the video feed and the window stays open until the sleep is over. It's like the command is not even executed when the command is given.

Edit: Full Code in here: http://pastebin.com/MgYen8pL

Device or resource busy

Hi there,

I'm trying to write a program that uses 2 cameras. In the first step I open the cameras on by one for configuration (which is left, right, not to use and so on). After that I open the left and right camera each in on thread. I close the configuration with:

destroyWindow(id);

cap.release();

The Problem is after the configuration I get the following massage when I try to open the capturing:

  VIDEOIO ERROR: V4L/V4L2: VIDIOC_CROPCAP
    VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
    VIDIOC_REQBUFS: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor
    Unable to stop the stream.: Device or resource busy
    VIDIOC_G_FMT: Bad file descriptor

Another thing thats happening is that the camera window stays open for much to long. I put a sleep(60) after closing the video feed and the window stays open until the sleep is over. It's like the command is not even executed when the command is given.

Edit: Full Code in here: http://pastebin.com/MgYen8pLhttp://pastebin.com/MgYen8pL The important part is the main function and the registerCameras function.