Run program on slow cpu

Alexander
2012-08-11
2013-05-30
  • Alexander
    Alexander
    2012-08-11

    When i compile program for ARM device (Allwinner A10 1,2 GHz CPU, LUbuntu 12.04), program fail with such message: "unable to start capture: Message too long". But web cam LED flash one time and off then. Web cam have UVC interface and working stable under X86. What module i can correct to increase delay?

     
  • I have did a quick search for the error message in the source code of the  mjpg-streame, but nothing found. This means that this message came from layers below (kernel, or if you linked with libV4L2 there). Could you please post the full output?
    What kind of distribution do you run on your board?

     
  • Alexander
    Alexander
    2012-08-12

    "Message too long" - message from perror of v4l2uvc.c
    static int video_enable(struct vdIn *vd)
    {
        int type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        int ret;

        ret = xioctl(vd->fd, VIDIOC_STREAMON, &type);
        if(ret < 0) {
            perror("Unable to start capture");
            return ret;
        }
        vd->streamingState = STREAMING_ON;
        return 0;
    }

     
  • Alexander
    Alexander
    2012-08-12

    p.s. mjpg-streamer revision 160

     
  • Could you please try out the setup with fswebcam?

     
  • Alexander
    Alexander
    2012-08-12

    I try fswebcam, it not work. I think what problem in kernel. Thank you for help.