(node, name)
| 211 | |
| 212 | if args.gray: |
| 213 | def create_gray_encoder(node, name): |
| 214 | videoEnc = pipeline.create(depthai.node.VideoEncoder) |
| 215 | xout = pipeline.create(depthai.node.XLinkOut) |
| 216 | xout.setStreamName("h264-" + name) |
| 217 | videoEnc.setDefaultProfilePreset(30, depthai.VideoEncoderProperties.Profile.H264_MAIN) |
| 218 | node.link(videoEnc.input) |
| 219 | videoEnc.bitstream.link(xout.input) |
| 220 | |
| 221 | create_gray_encoder(vio_pipeline.stereo.rectifiedLeft, 'left') |
| 222 | create_gray_encoder(vio_pipeline.stereo.rectifiedRight, 'right') |