File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
bindings/python/examples/v3/RecordReplay Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,16 @@ def signal_handler(sig, frame):
16
16
signal .signal (signal .SIGINT , signal_handler )
17
17
18
18
cam = pipeline .create (dai .node .ColorCamera )
19
- cam .setBoardSocket (dai .CameraBoardSocket .RGB )
19
+ cam .setBoardSocket (dai .CameraBoardSocket .CAM_A )
20
20
cam .setResolution (dai .ColorCameraProperties .SensorResolution .THE_1080_P )
21
21
cam .setVideoSize (320 , 320 )
22
22
23
- videoEncoder = pipeline .create (dai .node .VideoEncoder )
23
+ videoEncoder = pipeline .create (dai .node .VideoEncoder ). build ( cam . video )
24
24
videoEncoder .setProfile (dai .VideoEncoderProperties .Profile .H264_MAIN )
25
25
26
26
record = pipeline .create (dai .node .Record )
27
27
record .setRecordFile (args .output )
28
28
29
- cam .video .link (videoEncoder .input )
30
29
videoEncoder .out .link (record .input )
31
30
32
31
pipeline .start ()
You can’t perform that action at this time.
0 commit comments