From 895662001286a2b8c41f37feccbd8ffb4f962c24 Mon Sep 17 00:00:00 2001 From: Bogdan Pali Date: Thu, 27 Oct 2022 13:30:46 +0300 Subject: [PATCH] update usage code sample in python passing cam.getVideoSize() to videoEncoder.setDefaultProfilePreset generates DeprecationWarning: Input size no longer needed, automatically determined from first frame --- docs/source/components/nodes/video_encoder.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/components/nodes/video_encoder.rst b/docs/source/components/nodes/video_encoder.rst index 9c710d730..89fb48f0b 100644 --- a/docs/source/components/nodes/video_encoder.rst +++ b/docs/source/components/nodes/video_encoder.rst @@ -51,7 +51,7 @@ Usage # Create ColorCamera beforehand # Set H265 encoding for the ColorCamera video output videoEncoder = pipeline.create(dai.node.VideoEncoder) - videoEncoder.setDefaultProfilePreset(cam.getVideoSize(), cam.getFps(), dai.VideoEncoderProperties.Profile.H265_MAIN) + videoEncoder.setDefaultProfilePreset(cam.getFps(), dai.VideoEncoderProperties.Profile.H265_MAIN) # Create MJPEG encoding for still images stillEncoder = pipeline.create(dai.node.VideoEncoder)