Hi,

I have encountered the following message:

"Available devices:

[0] 1844301081229D0F00 [X_LINK_BOOTLOADER]

Enabling low-bandwidth mode due to connection mode... (protocol: XLinkProtocol.X_LINK_TCP_IP)

Setting PoE video quality to 50 to reduce latency...

IR drivers found on OAK-D Pro: ['LM3644 on bus 2']

--> Go to the `Depth` tab to enable!

Creating MJPEG link for MonoCamera node and left xlink stream...

Creating MJPEG link for MonoCamera node and right xlink stream...

Creating MJPEG link for ColorCamera node and color xlink stream...

C:\Users\wubi\AppData\Local\Programs\DepthAI\venv\lib\site-packages\depthai_sdk\previews.py:186: RuntimeWarning: invalid value encountered in cast

dispFrame = (dispFrame * 255. / dispIntegerLevels).astype(np.uint8)

… "

Can help me out here? where it could go wrong?

/BR

Wu Bi

    Hi biwu
    What exactly are you trying to solve? I believe the demo should be working fine despite the warnings. If you are getting high latency, i'd suggest testing the bandwidth.

    Hope this helps,
    Jaka

    • biwu replied to this.

      jakaskerl

      Hi, Jaka,

      I just wanted to run the depthAI_demo.py and record color video with 60fps.

      Here is the screenshot when i started the demo:

      And here is the the screenshot when i switch on the record switch ( it was not the same when I run depthAI last time and i don't know where/what is the difference):

      I have the camera connected to a PoE switch and then my PC direct connect to the switch, both in the same subnet. For the time being, I just need to practise to get the right data. Could you please help on these errors?

      Thanks a lot!

      Wu Bi

        Hi biwu,

        I played around with the demo and was able to recreate the error you are experiencing.
        When enabling the recording for any camera, mono or RGB, without also specifying video FPS results in 'IP_Utils 553'. If you specify FPS, no problems occur.

        So perhaps you aren't setting the FPS of the video you wish to record and it seems like depthai_demo.py doesn't handle that well.

        Verison details:
        depthai==2.20.2.0
        depthai_sdk==1.9.4

        Hope this solves your issue,
        Jaka

        • biwu replied to this.

          jakaskerl

          Thanks Jaka, here are further questions:

          1. So, the first screenshot was correct? how about the enabling the low-bandwidth mode? how should I use the normal or fast mode?
          2. Scratch this: "I set the FPS in camera tab, where to set the FPS for recording?"
          3. How can I make sure I can record a color video with 60 FPS?
          4. What is the best FPS if I want to record color and depth together? if possible, do you have any example code just do this?

          /BR

          Wu Bi

            Hi biwu

            1. I'm not sure what you mean by "correct". Low bandwidth mode gets automatically enabled when running cameras via TCP (you are using ethernet).

            Snippet from config_manager.py:

              -bandw {auto,low,high}, --bandwidth {auto,low,high}
                                    Force bandwidth mode. 
                                    If set to "high", the output streams will stay uncompressed
                                    If set to "low", the output streams will be MJPEG-encoded
                                    If set to "auto" (default), the optimal bandwidth will be selected based on your connection type and speed
            1. Under misc tab when you toggle recording.

            2. You need to ensure your file size for 60fps does not exceed your bandwidth and depends on resolution, format, and LAN bandwidth.

            3. Best FPS is the most you can get at a certain resolution. Enabling sync between stereo and RGB, will ensure that depth and RGB are synced together.

            If you want to calculate bandwidth requirements for different camera configurations, I can point you to https://docs.luxonis.com/projects/api/en/latest/tutorials/low-latency/#bandwidth

            Hope this helps,
            Jaka

            • biwu replied to this.

              jakaskerl

              Thanks Jaka! Let me play around with it first and get back to you with use case details.