Camera Module JPEG Video Capture



  • Hi,

    I would be interested in using the Spresense Camera module (ISX012) in video capture mode with the JPEG image format.

    From the source code (GitHub), looks like this is not supported:

    static int isx012_check_fmt(enum v4l2_buf_type buf_type,
                                uint32_t           pixel_format)
    {
      switch (buf_type)
        {
          case V4L2_BUF_TYPE_VIDEO_CAPTURE:
            if (pixel_format != V4L2_PIX_FMT_UYVY)
              {
                /* Unsupported format */
                return -EINVAL;
              }
    
            break;
            ...
         }
    }
    

    What is the reason for this?

    Is it a limitation of the ISX012?
    (the full datasheet does not seems to be public and from the product brief is not really clear)

    I want to capture some video, so the still capture mode is little bit slow. Because of the limited memory (1.5 Mb) using other formats (UYVY) works only for low resolutions.

    Thanks,
    Attila


  • DeveloperWorld

    Hi @bluetiger9

    I will investigate this and comeback to you.

    Thank for lifting this up.

    BR
    Karl


  • DeveloperWorld

    Hi @bluetiger9

    So the "final" answer I got for this is that the ISX012 camera can only stream in UYVY format.
    If you want JPEG streaming the only way is to still mode capture using QBUF/DQBUF continously.

    Best regards,
    Karl



  • Hi @TE-KarlKomierowski,

    Thanks for the answer. I think, I will check what resolution can be achieved with UYVY.

    Cheers,
    Attila