Amazon Kinesis Video Streams parser library is for developers to include in their applications that makes it easy to work with the output of video streams such as retrieving frame-level objects, metadata for fragments, and more.
Apache License 2.0
103
stars
52
forks
source link
[QUESTION] Failure in GetMediaWorker for streamName kinesis-video-stream java.lang. #175
When i am running this file KinesisVideoRekognitionIntegrationExampleTest.java
I am getting the following error after 10 -15 seconds of getting feed on my system
[pool-2-thread-2] ERROR com.amazonaws.kinesisvideo.parser.examples.GetMediaWorker - Failure in GetMediaWorker for streamName kinesis-video-stream java.lang.RuntimeException: Exception while reading byte from input stream!
I am trying to get video with least latency but it is stopping after 10 -12 secs. I am running this using IntelliJ Idea
Mar 29, 2023 12:01:46 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:47 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:47 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:01:48 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:49 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:49 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:01:50 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:51 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:51 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:01:52 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:53 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:53 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:01:54 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:55 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:01:55 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:01:59 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 4 records from shardId-000000000000
Mar 29, 2023 12:01:59 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:02:00 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:01 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:01 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:02:02 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:03 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:03 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:02:04 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:05 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:05 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:02:05 PM com.amazonaws.services.kinesis.leases.impl.LeaseCleanupManager cleanupLeases
INFO: Number of pending leases to clean before the scan : 0
Mar 29, 2023 12:02:06 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:07 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:07 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:02:08 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:08 PM com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisPeriodicShardSyncManager runShardSync
INFO: Skipping shard sync due to the reason - Hash range is complete.
Mar 29, 2023 12:02:09 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:09 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:02:09 PM com.amazonaws.services.kinesis.clientlibrary.lib.worker.DeterministicShuffleShardSyncLeaderDecider electLeaders
INFO: Elected leaders: 10.0.0.174:a3b4f89c-2215-4ec0-af6b-c8191317086b
Mar 29, 2023 12:02:11 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 2 records from shardId-000000000000
Mar 29, 2023 12:02:12 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
Mar 29, 2023 12:02:12 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint
INFO: Checkpointing shard shardId-000000000000
Mar 29, 2023 12:02:13 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords
INFO: Processing 1 records from shardId-000000000000
If anyone has faced this issue please let me know what is wrong here. Thanks in advance
When i am running this file KinesisVideoRekognitionIntegrationExampleTest.java I am getting the following error after 10 -15 seconds of getting feed on my system
[pool-2-thread-2] ERROR com.amazonaws.kinesisvideo.parser.examples.GetMediaWorker - Failure in GetMediaWorker for streamName kinesis-video-stream java.lang.RuntimeException: Exception while reading byte from input stream!
I am trying to get video with least latency but it is stopping after 10 -12 secs. I am running this using IntelliJ Idea
Mar 29, 2023 12:01:46 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:47 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:47 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:01:48 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:49 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:49 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:01:50 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:51 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:51 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:01:52 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:53 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:53 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:01:54 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:55 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:01:55 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:01:59 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 4 records from shardId-000000000000 Mar 29, 2023 12:01:59 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:02:00 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:01 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:01 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:02:02 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:03 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:03 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:02:04 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:05 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:05 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:02:05 PM com.amazonaws.services.kinesis.leases.impl.LeaseCleanupManager cleanupLeases INFO: Number of pending leases to clean before the scan : 0 Mar 29, 2023 12:02:06 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:07 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:07 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:02:08 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:08 PM com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisPeriodicShardSyncManager runShardSync INFO: Skipping shard sync due to the reason - Hash range is complete. Mar 29, 2023 12:02:09 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:09 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:02:09 PM com.amazonaws.services.kinesis.clientlibrary.lib.worker.DeterministicShuffleShardSyncLeaderDecider electLeaders INFO: Elected leaders: 10.0.0.174:a3b4f89c-2215-4ec0-af6b-c8191317086b Mar 29, 2023 12:02:11 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 2 records from shardId-000000000000 Mar 29, 2023 12:02:12 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000 Mar 29, 2023 12:02:12 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor checkpoint INFO: Checkpointing shard shardId-000000000000 Mar 29, 2023 12:02:13 PM com.amazonaws.kinesisvideo.parser.kinesis.KinesisRecordProcessor processRecords INFO: Processing 1 records from shardId-000000000000
If anyone has faced this issue please let me know what is wrong here. Thanks in advance