You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* FrameVisitor to process the frames in the output of a GetMedia call.
* CopyVisitor to copy the raw bytes of the stream being parsed to an output stream.
Add example that shows parsing and rendering Kinesis Video Streams.
* Fixup README for release 1.0.3
Copy file name to clipboardExpand all lines: README.md
+14-26Lines changed: 14 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,40 +59,29 @@ visited `MkvElement` for each constituent visitor in the order in which the visi
59
59
60
60
`CopyVisitor` is a visitor used to copy the raw bytes of the Mkv elements in a stream to an output stream.
61
61
62
-
##Example
63
-
`KinesisVideoExample` is an example that shows how the `StreamingMkvReader` and the different visitors can be integrated
62
+
##Example
63
+
*`KinesisVideoExample` is an example that shows how the `StreamingMkvReader` and the different visitors can be integrated
64
64
with the AWS SDK for the Kinesis Video. This example provides examples for
65
-
* Create a stream, deleting and recreating if the stream of the same name already exists.
66
-
* Call PutMedia to stream video fragments into the stream.
67
-
* Simultaneously call GetMedia to stream video fragments out of the stream.
68
-
* It uses the StreamingMkvParser to parse the returned the stream and apply the `OutputSegmentMerger`, `FragmentMetadataVisitor` visitors
65
+
66
+
* Create a stream, deleting and recreating if the stream of the same name already exists.
67
+
* Call PutMedia to stream video fragments into the stream.
68
+
* Simultaneously call GetMedia to stream video fragments out of the stream.
69
+
* It uses the StreamingMkvParser to parse the returned the stream and apply the `OutputSegmentMerger`, `FragmentMetadataVisitor` visitors
69
70
along with a local one as part of the same `CompositeMkvElementVisitor` visitor.
70
-
*`KinesisVideoRendererExample` shows parsing and rendering of KVS video stream fragments using JCodec(http://jcodec.org/) that were ingested using Producer SDK GStreamer sample application.
71
-
* To run the example:
72
71
73
-
Run the Unit test KinesisVideoRendererExampleTest
74
-
75
-
```
76
-
KinesisVideoRendererExample example = KinesisVideoRendererExample.builder().region(Regions.US_WEST_2)
77
-
.streamName("getmedia-sample-stream") //Use your stream name that been
78
-
//stored in Kinesis Video (using GStreamer demo app or PutMedia using Java SDK)
After removing @Ignore and start the unitTest you should be able to view the frames in JFrame
84
-
85
-
* If you want to store it as image files you could do it by adding (in KinesisVideoRendererExample after AWTUtil.toBufferedImage(rgb, renderImage); )
72
+
*`KinesisVideoRendererExample` shows parsing and rendering of KVS video stream fragments using JCodec(http://jcodec.org/) that were ingested using Producer SDK GStreamer sample application.
73
+
* To run the example:
74
+
Run the Unit test `testExample` in `KinesisVideoRendererExampleTest`. After starting the unitTest you should be able to view the frames in a JFrame.
75
+
* If you want to store it as image files you could do it by adding (in KinesisVideoRendererExample after AWTUtil.toBufferedImage(rgb, renderImage); )
86
76
87
77
```
88
78
try {
89
79
ImageIO.write(renderImage, "png", new File(String.format("frame-capture-%s.png", UUID.randomUUID())));
90
80
} catch (IOException e) {
91
81
log.warn("Couldn't convert to a PNG", e);
92
82
}
93
-
```
94
-
* Known Issues: The decode/renderer sample using JCodec may not be able to decode all mkv files.
95
-
* It has been tested for streams sent to Kinesis Video Streams using GStreamer Demo application (https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp)
83
+
```
84
+
* It has been tested not only for streams ingested by `PutMediaWorker` but also streams sent to Kinesis Video Streams using GStreamer Demo application (https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp)
96
85
97
86
## Release Notes
98
87
### Release 1.0.3 (Februrary 2018)
@@ -101,9 +90,8 @@ If timecode is equal to that of a previous cluster, stop merging
101
90
* FrameVisitor to process the frames in the output of a GetMedia call.
102
91
* CopyVisitor to copy the raw bytes of the stream being parsed to an output stream.
103
92
* Add example that shows parsing and rendering Kinesis Video Streams.
104
-
93
+
* Known Issues: In `KinesisVideoRendererExample`, the decode/renderer sample using JCodec may not be able to decode all mkv files.
105
94
106
-
## Release Notes
107
95
### Release 1.0.2 (December 2017)
108
96
* Add example that shows integration with Kinesis Video Streams.
0 commit comments