SVO2 to AVI Conversion

I am trying to convert my svo2 file to avi/mp4 format.

Using the code given by the ZED documentation i am getting this error :

ocv_image_sbs_rgb = cv2.cvtColor(svo_image_sbs_rgba, cv2.COLOR_RGBA2RGB)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

cv2.error: OpenCV(4.11.0) :-1: error: (-5:Bad argument) in function ‘cvtColor’

Overload resolution failed:

  • src is not a numpy array, neither a scalar
  • Expected Ptrcv::UMat for argument ‘src’

please tell why this error and how to fix it!

Hello @adityashah1603,

Thank you for reaching us. I tried to run the svo_export.py (zed-sdk/recording/export/svo/python/svo_export.py at master · stereolabs/zed-sdk · GitHub) script on a svo and it worked. I am using pyzed==5.0 (installed from latest sdk version 5.0.2), opencv-python==4.11.0.86 and numpy==2.3.1 to run the script.

Could you please run a ZEDDiagnostic, save the generated json file and send it to us to investigate ? Also, please send us your pip list to compare packages.

Best regards,