@@ -105,7 +105,7 @@ def start_app_pipeline(self, file):
105105
106106videoEnc = pipeline .create (dai .node .VideoEncoder )
107107rgbEncOut = pipeline .create (dai .node .XLinkOut )
108- rgbEncOut .setStreamName ('rgbout ' )
108+ rgbEncOut .setStreamName ('rgb ' )
109109videoEnc .setDefaultProfilePreset (25 , dai .VideoEncoderProperties .Profile .H264_MAIN )
110110camRgb .video .link (videoEnc .input )
111111videoEnc .bitstream .link (rgbEncOut .input )
@@ -144,7 +144,7 @@ def start_app_pipeline(self, file):
144144colormap .out .link (videoEnc .input )
145145
146146xout = pipeline .create (dai .node .XLinkOut )
147- xout .setStreamName ('enc ' )
147+ xout .setStreamName ('depth ' )
148148videoEnc .bitstream .link (xout .input )
149149
150150# Start the RTSP server
@@ -168,8 +168,8 @@ def start_app_pipeline(self, file):
168168
169169try :
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 )
173173except RuntimeError as ex :
174174 if str (ex ) == 'No available devices' :
175175 print ('Unable to initialize camera output streams. Closing...' )
0 commit comments