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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL 2 Mini
  4. RTSP streaming issues

RTSP streaming issues

Scheduled Pinned Locked Moved VOXL 2 Mini
5 Posts 2 Posters 420 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.
  • S Offline
    S Offline
    SKA
    Contributor
    wrote on last edited by
    #1

    Hi! I need to be able to network stream to VLC with caching set to 0ms. It seems like older SDKs stream just fine with 0ms cache, but SDK 1.6.0 does not.

    Using SDK 1.4.0, I'm able to stream with no problems. The voxl-streamer version is 0.7.5, and I also switched over to voxl-streamer 0.8.0 (from SDK1.6) to narrow down the root cause of the problem, but noticed that streaming worked in this configuration too.

    Then, I flashed the voxl to SDK 1.6.0, and tried both versions of voxl-streamer (0.7.5 and 0.8.0) and neither of them were able to stream with 0ms cache.

    Where should I look to solve this problem? Thanks!

    For reference, here's my voxl-streamer.conf:

    voxl2-mini-test-fixture (TF-M0104):/$ cat etc/modalai/voxl-streamer.conf
    {
            "input-pipe":   "hires_misp_color",
            "bitrate":      3000000,
            "rotation":     0,
            "decimator":    1,
            "encoder":      "h264",
            "port":         8900
    }
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SKA
      Contributor
      wrote on last edited by
      #2

      Following up on this, @Alex-Kushleyev do you have any initial leads that might help me - thanks!

      Alex KushleyevA 1 Reply Last reply
      0
      • S SKA

        Following up on this, @Alex-Kushleyev do you have any initial leads that might help me - thanks!

        Alex KushleyevA Offline
        Alex KushleyevA Offline
        Alex Kushleyev
        ModalAI Team
        wrote on last edited by
        #3

        Hi @SKA ,

        Can you please clarify a few things:

        • using latest SDK, does rtsp streaming work, if you do NOT specify 0ms cache?
        • what player are you using for receiving the video? have you tried ffmpeg (if so, what is the full command?)
        • are you sure that you are actually have the hires_misp_color stream available from the camera server? you can check it using either voxl-portal or using voxl-inspect-cam hires_misp_color.

        Alex

        S 1 Reply Last reply
        0
        • Alex KushleyevA Alex Kushleyev

          Hi @SKA ,

          Can you please clarify a few things:

          • using latest SDK, does rtsp streaming work, if you do NOT specify 0ms cache?
          • what player are you using for receiving the video? have you tried ffmpeg (if so, what is the full command?)
          • are you sure that you are actually have the hires_misp_color stream available from the camera server? you can check it using either voxl-portal or using voxl-inspect-cam hires_misp_color.

          Alex

          S Offline
          S Offline
          SKA
          Contributor
          wrote on last edited by
          #4

          Hey @Alex-Kushleyev! To answer your questions:

          • Yes, with the latest SDK, RTSP streaming works in VLC as long as the cache is not set to 0 ms. I’ve seen stable playback once the cache is increased (around ~300 ms).

          • I’m using VLC to test playback, but I also tested using ffmpeg and was able to successfully record video from the RTSP stream even with 0ms cache. This led me to think that frames are being transmitted correctly, but there’s likely a timing / timestamp issue in the RTSP stream that ffmpeg is tolerant of, but causes VLC to freeze. I don't remember the exact command I used but it was similar to:

          ffmpeg \
            -rtsp_transport tcp \
            -fflags nobuffer \
            -flags low_delay \
            -an \
            -i rtsp://<voxl-ip>:8900/live \
            -t 10 \
            -c copy \
            out.mp4
          
          • Yes, '''hires_misp_color''' has been available when I've tested this. When I set VLC to 0ms cache, I always only receive one frame before the stream freezes.
          Alex KushleyevA 1 Reply Last reply
          0
          • S SKA

            Hey @Alex-Kushleyev! To answer your questions:

            • Yes, with the latest SDK, RTSP streaming works in VLC as long as the cache is not set to 0 ms. I’ve seen stable playback once the cache is increased (around ~300 ms).

            • I’m using VLC to test playback, but I also tested using ffmpeg and was able to successfully record video from the RTSP stream even with 0ms cache. This led me to think that frames are being transmitted correctly, but there’s likely a timing / timestamp issue in the RTSP stream that ffmpeg is tolerant of, but causes VLC to freeze. I don't remember the exact command I used but it was similar to:

            ffmpeg \
              -rtsp_transport tcp \
              -fflags nobuffer \
              -flags low_delay \
              -an \
              -i rtsp://<voxl-ip>:8900/live \
              -t 10 \
              -c copy \
              out.mp4
            
            • Yes, '''hires_misp_color''' has been available when I've tested this. When I set VLC to 0ms cache, I always only receive one frame before the stream freezes.
            Alex KushleyevA Offline
            Alex KushleyevA Offline
            Alex Kushleyev
            ModalAI Team
            wrote on last edited by
            #5

            Hello @SKA,

            Thank you for the details. I can't think of anything right now, but will double check this.

            I know that there is one potential issue in voxl-camera-server - the SPS header (which is part of the H264 / H265 stream) is only sent by the video encoder once (at the beginning of the stream). I believe that voxl-streamer will cache the SPS packet (which contains things like resolution, etc) and i think when clients connect to voxl-streamer, then it will send that SPS header to the clients. However, if voxl-streamer does not get that first header, it will not be able to forward it to the clients. This is a guess for now, but could be related to the issue that you are seeing.

            I can look into this issue. Can you please let me know how exactly to set up VLC for 0ms cache? I want to make sure that my test is the same. Also, which version of VLC are you using?

            Also, i noticed one thing - you are using hires_misp_color stream from camera server, which is not actually encoded, but YUV. Then voxl-streamer will take those YUVs and encode them (using hardware encoder). Is there a reason why you are not using the hires_misp_encoded stream to get H264 directly from camera server and serve it using voxl-streamer without re-encoding? I wonder if in the old SDK you were using _color or _encoded stream?

            Alex

            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