Skip to content

Commit

Permalink
Merge pull request #58 from qqia/release_1.0.13
Browse files Browse the repository at this point in the history
Release 1.0.13
  • Loading branch information
bdhandap authored Apr 29, 2019
2 parents c54e638 + 1e6830e commit 4d6697f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ To run the sample follow the below steps:
the new Kinesis Video stream might be delayed significantly.

## Release Notes
### Release 1.0.13 (Apr 2019)
* Fix: Make process method in H264FrameProcessor and H264FrameDecoder throw FrameProcessException.

### Release 1.0.12 (Mar 2019)
* Bugfix: Fix KinesisVideoExampleTest example issue that was using non-exist test file.
* Improve KinesisVideoRekognitionLambdaExample to use AWS CloudFormation Template to create resources.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<artifactId>amazon-kinesis-video-streams-parser-library</artifactId>
<packaging>jar</packaging>
<name>Amazon Kinesis Video Streams Parser Library</name>
<version>1.0.13-SNAPSHOT</version>
<version>1.0.13</version>
<description>The Amazon Kinesis Video Streams Parser Library for Java enables Java developers to parse the streams
returned by GetMedia calls to Amazon Kinesis Video.
</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.amazonaws.kinesisvideo.java.client.KinesisVideoJavaClientFactory;
import com.amazonaws.kinesisvideo.parser.examples.BoundingBoxImagePanel;
import com.amazonaws.kinesisvideo.parser.mkv.Frame;
import com.amazonaws.kinesisvideo.parser.mkv.FrameProcessException;
import com.amazonaws.kinesisvideo.parser.rekognition.pojo.RekognizedOutput;
import com.amazonaws.kinesisvideo.parser.utilities.FragmentMetadata;
import com.amazonaws.kinesisvideo.parser.utilities.FrameVisitor;
Expand Down Expand Up @@ -121,7 +122,7 @@ public static H264FrameProcessor create(final AWSCredentialsProvider credentials
*/
@Override
public void process(final Frame frame, final MkvTrackMetadata trackMetadata,
final Optional<FragmentMetadata> fragmentMetadata) {
final Optional<FragmentMetadata> fragmentMetadata) throws FrameProcessException {
if (rekognizedOutputs != null) {

// Decode H264 frame
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import com.amazonaws.kinesisvideo.parser.examples.KinesisVideoBoundingBoxFrameViewer;
import com.amazonaws.kinesisvideo.parser.mkv.Frame;
import com.amazonaws.kinesisvideo.parser.mkv.FrameProcessException;
import com.amazonaws.kinesisvideo.parser.rekognition.pojo.RekognizedFragmentsIndex;
import com.amazonaws.kinesisvideo.parser.rekognition.pojo.RekognizedOutput;
import lombok.Setter;
Expand Down Expand Up @@ -55,7 +56,7 @@ public static H264BoundingBoxFrameRenderer create(final KinesisVideoBoundingBoxF

@Override
public void process(final Frame frame, final MkvTrackMetadata trackMetadata, final Optional<FragmentMetadata> fragmentMetadata,
final Optional<FragmentMetadataVisitor.MkvTagProcessor> tagProcessor) {
final Optional<FragmentMetadataVisitor.MkvTagProcessor> tagProcessor) throws FrameProcessException {
final BufferedImage bufferedImage = decodeH264Frame(frame, trackMetadata);
final Optional<RekognizedOutput> rekognizedOutput = getRekognizedOutput(frame, fragmentMetadata);
renderFrame(bufferedImage, rekognizedOutput);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class H264FrameDecoder implements FrameVisitor.FrameProcessor {

@Override
public void process(final Frame frame, final MkvTrackMetadata trackMetadata,
final Optional<FragmentMetadata> fragmentMetadata) {
final Optional<FragmentMetadata> fragmentMetadata) throws FrameProcessException {
decodeH264Frame(frame, trackMetadata);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.amazonaws.kinesisvideo.parser.examples.KinesisVideoFrameViewer;
import com.amazonaws.kinesisvideo.parser.mkv.Frame;
import com.amazonaws.kinesisvideo.parser.mkv.FrameProcessException;
import lombok.extern.slf4j.Slf4j;

import static com.amazonaws.kinesisvideo.parser.utilities.BufferedImageUtil.addTextToImage;
Expand All @@ -43,7 +44,7 @@ public static H264FrameRenderer create(KinesisVideoFrameViewer kinesisVideoFrame

@Override
public void process(Frame frame, MkvTrackMetadata trackMetadata, Optional<FragmentMetadata> fragmentMetadata,
Optional<FragmentMetadataVisitor.MkvTagProcessor> tagProcessor) {
Optional<FragmentMetadataVisitor.MkvTagProcessor> tagProcessor) throws FrameProcessException {
final BufferedImage bufferedImage = decodeH264Frame(frame, trackMetadata);
if (tagProcessor.isPresent()) {
final FragmentMetadataVisitor.BasicMkvTagProcessor processor =
Expand Down

0 comments on commit 4d6697f

Please sign in to comment.