Hi all,

Is there a demo script to stream the three cameras as h264 or the RGB + disparity?

  • erik replied to this.

    Hi Gecastro ,
    You can check our encoding max limit example that does exactly that - 2x 720P mono and 4k color H264 video encoding. Thoughts?
    Thanks, Erik

    3 months later

    That looks good, but is it possible to do the same with the depth image?

    I'm receiving the following error:

    [VideoEncoder(3)] [warning] Arrived frame type (14) is not either NV12 or YUV400p (8-bit Gray)

    • erik replied to this.

      Hi Gecastro ,
      Yes, VideoEncoder can't encode depth - only mono frames (8bit gray) or NV12 (colorCam.video). It's a hardware limitation (of the videoencoder silicon block) so we can't add support for it.
      Thanks, Erik

      5 days later

      So, does the disparity compression work? I did see this example. I can send and receive the compressed images, but I'm not sure if I'm preserving the correct disparity values after decoding.

      Do you have an example for decoding the disparity image?

      • erik replied to this.

        Would this preserve the disparity values? I'm trying to create the depth image from it, instead of visualize it.

        Thanks

        • erik replied to this.

          Hi Gecastro ,
          Only lossless MJPEG is lossless, others (h264,h265, "non-lossless" mjpeg) aren't, but if "good enough" is ok for your application you might want to consider it, as lossless mjpeg doesn't provide great compression.
          Thanks, Erik

          Thanks, MJPEG works well. I was testing with h264, but the compression seems to alter the image.