Open hacker1024 opened 11 months ago
When attempting to stream from a THETA S in either 2K or 4K, it fails with "no available stream".
$ GST_DEBUG=thetauvcsrc:6 gst-launch-1.0 thetauvcsrc mode=2K ! queue ! h264parse ! decodebin ! queue ! autovideosink sync=false 0:00:00.041122779 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:207:gst_thetauvcsrc_set_property:<thetauvcsrc0> set_property 0:00:00.041136529 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:207:gst_thetauvcsrc_set_property:<thetauvcsrc0> set_property 0:00:00.042788707 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:687:gst_thetauvcsrc_query:<thetauvcsrc0> query 0:00:00.042800466 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:699:gst_thetauvcsrc_query:<thetauvcsrc0> query CAPS 0:00:00.042830113 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:313:get_current_caps:<thetauvcsrc0> video/x-h264, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], stream-format=(string)byte-stream, alignment=(string)nal, profile=(string){ high, constrained-baseline } 0:00:00.042843506 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:687:gst_thetauvcsrc_query:<thetauvcsrc0> query 0:00:00.042846070 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:699:gst_thetauvcsrc_query:<thetauvcsrc0> query CAPS 0:00:00.042850664 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:313:get_current_caps:<thetauvcsrc0> video/x-h264, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], stream-format=(string)byte-stream, alignment=(string)nal, profile=(string){ high, constrained-baseline } 0:00:00.042860145 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:687:gst_thetauvcsrc_query:<thetauvcsrc0> query 0:00:00.042862744 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:699:gst_thetauvcsrc_query:<thetauvcsrc0> query CAPS 0:00:00.042867236 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:313:get_current_caps:<thetauvcsrc0> video/x-h264, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], stream-format=(string)byte-stream, alignment=(string)nal, profile=(string){ high, constrained-baseline } 0:00:00.042878145 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:687:gst_thetauvcsrc_query:<thetauvcsrc0> query 0:00:00.042880538 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:699:gst_thetauvcsrc_query:<thetauvcsrc0> query CAPS 0:00:00.042884329 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:313:get_current_caps:<thetauvcsrc0> video/x-h264, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], stream-format=(string)byte-stream, alignment=(string)nal, profile=(string){ high, constrained-baseline } Setting pipeline to PAUSED ... 0:00:00.045542053 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:467:gst_thetauvcsrc_start:<thetauvcsrc0> start 0:00:00.045551026 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:468:gst_thetauvcsrc_start:<thetauvcsrc0> dev=-1 mode=1 0:00:00.055649379 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:545:gst_thetauvcsrc_start:<thetauvcsrc0> Serial: **serial** 0:00:00.077626321 162548 0x1257b90 WARN thetauvcsrc gstthetauvcsrc.c:573:gst_thetauvcsrc_start:<thetauvcsrc0> error: No available stream ERROR: from element /GstPipeline:pipeline0/GstThetauvcsrc:thetauvcsrc0: No available stream Additional debug info: gstthetauvcsrc.c(573): gst_thetauvcsrc_start (): /GstPipeline:pipeline0/GstThetauvcsrc:thetauvcsrc0 ERROR: pipeline doesn't want to preroll. ERROR: from element /GstPipeline:pipeline0/GstThetauvcsrc:thetauvcsrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure. Additional debug info: ../libs/gst/base/gstbasesrc.c(3561): gst_base_src_start (): /GstPipeline:pipeline0/GstThetauvcsrc:thetauvcsrc0: Failed to start ERROR: pipeline doesn't want to preroll. Failed to set pipeline to PAUSED. Setting pipeline to NULL ... Freeing pipeline ... 0:00:00.095750298 162548 0x1257b90 DEBUG thetauvcsrc gstthetauvcsrc.c:269:gst_thetauvcsrc_finalize:<thetauvcsrc0> finalize
Reverting 2914a3ef2feb39a182a8cc505cfae0e2d8922f0a fixes the issue.
When attempting to stream from a THETA S in either 2K or 4K, it fails with "no available stream".