My code I am using to record the video is :
left = oak.create_camera('left', resolution='720p', fps=20, encode='H265')
right = oak.create_camera('right', resolution='720p', fps=20, encode='H265')
# Synchronize & save all (encoded) streams
oakR =OakCamera("1844301081B8AC0F00")
leftR = oakR.create_camera('left', resolution='720p', fps=20, encode='H265')
rightR = oakR.create_camera('right', resolution='720p', fps=20, encode='H265')
oak.record([ left.out.encoded, right.out.encoded], out_path, RecordType.VIDEO)
oakR.record([ leftR.out.encoded, rightR.out.encoded], out_path, RecordType.VIDEO)`
The code I am trying to use to open the mp4 file is:
from depthai_sdk import OakCamera
with OakCamera(recording='E:\\Junk\\vid\\1-1844301081B8AC0F00\\CAM_B_bitstream.mp4') as oak:
left =oak.create_camera('left', resolution='720p', fps=20, encode='H265')
oak.visualize([left.out.camera], scale=2/3, fps=True)
oak.visualize(left.out, fps=True)
oak.start(blocking=True)
My error is this :
Exception has occurred: TypeError
OakCamera.init() got an unexpected keyword argument 'recording'
File "D:\Programming\OAK_D\replaysdk.py", line 2, in <module>
with OakCamera(recording='E:\Junk\vid\1-1844301081B8AC0F00\CAM_B_bitstream.mp4') as oak:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: OakCamera.init() got an unexpected keyword argument 'recording'