aws-robotics / kinesisvideo-ros1

ROS packages for facilitating the use of AWS cloud services.
Apache License 2.0
20 stars 21 forks source link

Unable to create multiple streams #51

Open aaron-sieraai opened 3 years ago

aaron-sieraai commented 3 years ago

I am having an issue that I cannot have multiple video streams running at the same time. I got this working with 1 stream however when I try to use 2 or 3 then the system encounters the following error at the framerate of the camera. Everything works normally until this point when the errors start showing up after everything is done initializing.

[ERROR] [1601414471.746840163]: [KinesisVideoStreamSetup] Skipping stream id 0 due to failure initializing stream. Error code: 4109 [ERROR] [1601414471.748540212]: [ProcessCodecPrivateDataForStream] KinesisVideoStreamSetup failed, uninstalling subscriptions to /video/encoded_0 Error code: 4109 [ WARN] [1601414471.748683914]: [KinesisVideoFrameTransportCallback] testStream1 failed updating codec data, error code: 4109. Continuing streaming as a best effort, but you might not be able to decode and render the stream. [ WARN] [1601414471.748781209]: [KinesisVideoFrameTransportCallback] testStream1 PutFrame failed. Error code: 4101

My parameters are as follows:

SUMMARY

PARAMETERS

NODES / h264_video_encoder_0 (h264_video_encoder/h264_video_encoder) h264_video_encoder_1 (h264_video_encoder/h264_video_encoder) kinesis_video_streamer (kinesis_video_streamer/kinesis_video_streamer) /cam_0/ gscam_driver_v4l_0 (gscam/gscam) /cam_1/ gscam_driver_v4l_1 (gscam/gscam)

Attached are my launch and configuration files. h264_0.txt h264_1.txt kinesis_node.txt kinesis_stream_0.txt kinesis_stream_1.txt visionstreamer.txt

To be clear this works perfectly fine with one stream Thanks for any help you can provide. -- Aaron

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.57. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

dabonnie commented 3 years ago

Hi @aaron-sieraai, thanks for filing this issue and your patience. I'm currently trying to reproduce your issue and will update when I have some more information.

dabonnie commented 3 years ago

Hi @aaron-sieraai one potential workaround (verified locally) is to launch two Kinesis nodes where each has a single stream.

dabonnie commented 3 years ago

@aaron-sieraai I'm seeing similar behavior on my end when specifying multiple streams. While we investigate please feel free to use the suggested workaround above.

aaron-sieraai commented 3 years ago

Thank you for looking into the issue, I will look at using multiple node instances.