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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. Modal Pipe Architecture (MPA)
  4. Get camera Frame from libmodal pipe client

Get camera Frame from libmodal pipe client

Scheduled Pinned Locked Moved Modal Pipe Architecture (MPA)
5 Posts 2 Posters 1.8k Views
  • 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.
  • Philemon BennerP Offline
    Philemon BennerP Offline
    Philemon Benner
    Regular
    wrote on last edited by
    #1

    Hey,
    i'm currently working on getting frames from libmodal pipe. I've looked up the examples of modal pipe, also had a look at voxl-streamer but didn't understood too much. Regarding too the struct of the pipe_client_set_camera_helper_cb in modal_pipe_client.h (l.322-355), is there any way to get the actual frame from that? I'm unfortunately not familiar with buffers and how they work. In voxl streamer the context is being used but in the header file only channel, metadata, and the frame beginning pointer? are being mentioned. Is the context the actual frame?

    1 Reply Last reply
    0
    • Steve TurnerS Offline
      Steve TurnerS Offline
      Steve Turner
      wrote on last edited by
      #2

      Check out https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-streamer/-/blob/master/src/main.c#L87 for an example of how to handle the callback.

      Philemon BennerP 1 Reply Last reply
      0
      • Steve TurnerS Steve Turner

        Check out https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-streamer/-/blob/master/src/main.c#L87 for an example of how to handle the callback.

        Philemon BennerP Offline
        Philemon BennerP Offline
        Philemon Benner
        Regular
        wrote on last edited by
        #3

        @Darkhive that's what i've mentioned above in the post. I don't have a clear understanding of how voxl-streamer camera_cb works and i don't want to use gstreamer to get the actual frame.

        1 Reply Last reply
        0
        • Philemon BennerP Offline
          Philemon BennerP Offline
          Philemon Benner
          Regular
          wrote on last edited by
          #4

          Would something like that work?

          char* buffer[meta.size_bytes];
          memcpy(buffer, frame, meta.size_bytes);
          
          1 Reply Last reply
          0
          • Steve TurnerS Offline
            Steve TurnerS Offline
            Steve Turner
            wrote on last edited by
            #5

            Link Preview Image
            Files · master · voxl / VOXL SDK / Services / voxl-portal · GitLab

            Web interface hosted on VOXL

            favicon

            GitLab (gitlab.com)

            Is an example of allocating a buffer and copying the frame into it. There are some other good examples in that file as well for processing frames and converting them to various formats within the callback. Hope that helps!

            1 Reply Last reply
            1

            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

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