Skip to content

Commit 8956620

Browse files
authored
update usage code sample in python
passing cam.getVideoSize() to videoEncoder.setDefaultProfilePreset generates DeprecationWarning: Input size no longer needed, automatically determined from first frame
1 parent 472bc41 commit 8956620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/components/nodes/video_encoder.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Usage
5151
# Create ColorCamera beforehand
5252
# Set H265 encoding for the ColorCamera video output
5353
videoEncoder = pipeline.create(dai.node.VideoEncoder)
54-
videoEncoder.setDefaultProfilePreset(cam.getVideoSize(), cam.getFps(), dai.VideoEncoderProperties.Profile.H265_MAIN)
54+
videoEncoder.setDefaultProfilePreset(cam.getFps(), dai.VideoEncoderProperties.Profile.H265_MAIN)
5555

5656
# Create MJPEG encoding for still images
5757
stillEncoder = pipeline.create(dai.node.VideoEncoder)

0 commit comments

Comments
 (0)