Skip to content

Commit 35b19d4

Browse files
committed
renaming oak-d stream names
1 parent 652c325 commit 35b19d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stream.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def start_app_pipeline(self, file):
105105

106106
videoEnc = pipeline.create(dai.node.VideoEncoder)
107107
rgbEncOut = pipeline.create(dai.node.XLinkOut)
108-
rgbEncOut.setStreamName('rgbout')
108+
rgbEncOut.setStreamName('rgb')
109109
videoEnc.setDefaultProfilePreset(25, dai.VideoEncoderProperties.Profile.H264_MAIN)
110110
camRgb.video.link(videoEnc.input)
111111
videoEnc.bitstream.link(rgbEncOut.input)
@@ -144,7 +144,7 @@ def start_app_pipeline(self, file):
144144
colormap.out.link(videoEnc.input)
145145

146146
xout = pipeline.create(dai.node.XLinkOut)
147-
xout.setStreamName('enc')
147+
xout.setStreamName('depth')
148148
videoEnc.bitstream.link(xout.input)
149149

150150
# Start the RTSP server
@@ -168,8 +168,8 @@ def start_app_pipeline(self, file):
168168

169169
try:
170170
# Output queue will be used to get the encoded data from the output defined above
171-
depth = device.getOutputQueue(name='enc', maxSize=30, blocking=True)
172-
rgb = device.getOutputQueue(name='rgbout', maxSize=30, blocking=True)
171+
rgb = device.getOutputQueue(name='rgb', maxSize=30, blocking=True)
172+
depth = device.getOutputQueue(name='depth', maxSize=30, blocking=True)
173173
except RuntimeError as ex:
174174
if str(ex) == 'No available devices':
175175
print('Unable to initialize camera output streams. Closing...')

0 commit comments

Comments
 (0)