I am recording video stream using OAK-D S2 camera but no matter what resolution I create the cameras with, the recorded video will always have a resolution of 640x480. How can I change that?
Here is my code example:

from depthai_sdk import OakCamera, RecordType

with OakCamera() as oak:

left = oak.create_camera('left', encode='jpeg', resolution='1080P', fps=90)

right = oak.create_camera('right', encode='jpeg', resolution='1080P', fps=90)       

record_components = [left.out.encoded, right.out.encoded]       

oak.record(record_components, 'record', record_type=RecordType.VIDEO)    

oak.start(blocking=True)
  • erik replied to this.

    MaxCoenen Can you take a photo of your camera? Note that max resolution of stereo cams on OAK-D-S2 is 800p, not 1080p (and max res on OAK-D-Lite's stereo cams is 480p).

    Sure, I can take a photo of my camera (attached). The problem still remains when I change the resolution to 800p.
    I appreciate your help

    • erik replied to this.

      erik there are no warnings and everythings works fine except that the resulting video files (mp4) always have the same resolution of 640x480, independent of how I set the resolution when creating the camera.
      Strange thing is, that when I also visualize the stream by using oak.visualize(left.out.encoded), the size of the visualised images changes accordingly to the resolution setting. But not in the recorded video output…

      I use latest depthai-sdk (1.15) and it works as expected:

        erik "pip show depthai" tells me that i am using version 2.24.0.0. Is it a matter of the version? How can I change to another version (1.15)?

        • erik replied to this.

          MaxCoenen please consult with google/gpt4 with such general/basic questions.