Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Writing UVC frames to a file

Writing UVC frames to a file

Scheduled Pinned Locked Moved Ask your questions right here!
7 Posts 4 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • KrisK Offline
    KrisK Offline
    Kris
    Regular
    wrote on last edited by
    #1

    Re: Video recording from a 4k camera to a SD card.

    Hello, I was wondering if I could get some assistance writing UVC frames to a file. This was mentioned in a previous post but I am not sure how to go about doing it.

    Also, I have a script that could possibly save UVC camera video to the onboard SD card but I am not sure how to implement this script into VOXL.

    1 Reply Last reply
    0
    • tomT Offline
      tomT Offline
      tom
      admin
      wrote on last edited by
      #2

      @Kris If you're just wanting to save frames I would take a look at https://docs.modalai.com/voxl-logger/

      KrisK 1 Reply Last reply
      0
      • tomT tom

        @Kris If you're just wanting to save frames I would take a look at https://docs.modalai.com/voxl-logger/

        KrisK Offline
        KrisK Offline
        Kris
        Regular
        wrote on last edited by
        #3

        @tom
        At the moment, it’s only possible to write frames from a UVC camera with either RAW8, RAW16, NV12/21, or FLOAT32 formats. Does H.264 format fall into that criteria?
        I am currently looking into purchasing a different UVC camera that has these output formats; H.264, MJPG, and YUY2.
        Has H.264 standard compressed format been tested for writing files to the VOXL’s onboard SD card?

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Hi,

          We're currently working on getting h264 encoding working in voxl-camera-server for our mipi hires cams, so this will be our default encoded format for those cameras as well. I believe uvc server would take a few small tweaks to accept that data and spit it out of a libmodal-pipe, but the support is already there on the other end, we know how to handle encoded frames on these pipes and we have a voxl-record-video on our dev branch that will take encoded frames over a pipe and write them to a file.

          KrisK 2 Replies Last reply
          0
          • ? A Former User

            Hi,

            We're currently working on getting h264 encoding working in voxl-camera-server for our mipi hires cams, so this will be our default encoded format for those cameras as well. I believe uvc server would take a few small tweaks to accept that data and spit it out of a libmodal-pipe, but the support is already there on the other end, we know how to handle encoded frames on these pipes and we have a voxl-record-video on our dev branch that will take encoded frames over a pipe and write them to a file.

            KrisK Offline
            KrisK Offline
            Kris
            Regular
            wrote on last edited by
            #5

            Hello @Alex-Gardner,
            I have tried looking for this voxl-record-video in the dev branch, but could not find it. Was it removed recently?
            I was looking in this location.
            If this is the wrong location, could you please let me know where to find the voxl-record-video ipk.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @Kris,

              voxl-record-video is a utility that is included in voxl-mpa-tools, see here (https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/dev/tools/voxl-record-video.c)

              1 Reply Last reply
              0
              • ? A Former User

                Hi,

                We're currently working on getting h264 encoding working in voxl-camera-server for our mipi hires cams, so this will be our default encoded format for those cameras as well. I believe uvc server would take a few small tweaks to accept that data and spit it out of a libmodal-pipe, but the support is already there on the other end, we know how to handle encoded frames on these pipes and we have a voxl-record-video on our dev branch that will take encoded frames over a pipe and write them to a file.

                KrisK Offline
                KrisK Offline
                Kris
                Regular
                wrote on last edited by
                #7

                @Alex-Gardner
                I am trying to get the C270 uvc camera to record its video or frames to the Seeker's onboard SD card.
                I have not had any luck using Gstreamer for this.
                Has this been successfully done with the voxl-record-video command from the dev branch?
                If so, how would I go about getting this to work?

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                ModalAI
                Categories Recent Tags ModalAI.com Docs
                © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups