Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Camera Module JPEG Video Capture

    Spresense
    2
    4
    12373
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • bluetiger9
      bluetiger9 last edited by TE-KarlKomierowski

      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

      1 Reply Last reply Reply Quote
      • TE-KarlKomierowski
        TE-KarlKomierowski DeveloperWorld last edited by

        Hi @bluetiger9

        I will investigate this and comeback to you.

        Thank for lifting this up.

        BR
        Karl

        1 Reply Last reply Reply Quote
        • TE-KarlKomierowski
          TE-KarlKomierowski DeveloperWorld last edited by

          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

          1 Reply Last reply Reply Quote
          • bluetiger9
            bluetiger9 last edited by

            Hi @TE-KarlKomierowski,

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

            Cheers,
            Attila

            1 Reply Last reply Reply Quote
            • First post
              Last post
            Developer World
            Copyright © 2021 Sony Group Corporation. All rights reserved.
            • Contact us
            • Legal