Skip to content

Commit f9de3b7

Browse files
author
Matevz Morato
committed
Merge branch 'v3_develop' of https://www.github.com/luxonis/depthai-core into v3_develop
2 parents aef27fc + 262e095 commit f9de3b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bindings/python/examples/v3/RecordReplay/record_video.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,16 @@ def signal_handler(sig, frame):
1616
signal.signal(signal.SIGINT, signal_handler)
1717

1818
cam = pipeline.create(dai.node.ColorCamera)
19-
cam.setBoardSocket(dai.CameraBoardSocket.RGB)
19+
cam.setBoardSocket(dai.CameraBoardSocket.CAM_A)
2020
cam.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
2121
cam.setVideoSize(320, 320)
2222

23-
videoEncoder = pipeline.create(dai.node.VideoEncoder)
23+
videoEncoder = pipeline.create(dai.node.VideoEncoder).build(cam.video)
2424
videoEncoder.setProfile(dai.VideoEncoderProperties.Profile.H264_MAIN)
2525

2626
record = pipeline.create(dai.node.Record)
2727
record.setRecordFile(args.output)
2828

29-
cam.video.link(videoEncoder.input)
3029
videoEncoder.out.link(record.input)
3130

3231
pipeline.start()

0 commit comments

Comments
 (0)