Skip to content

Commit 0ba30d3

Browse files
committed
Release 1.5.0 (24th Aug 2018)
Windows Support for Producer SDK Intermittent producer support Various bug fixes
1 parent 107f0ef commit 0ba30d3

File tree

226 files changed

+21217
-1897
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+21217
-1897
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ kinesis-video-native-build/libproducer.dylib
1010
kinesis-video-native-build/start
1111
kinesis-video-native-build/test_h264_jpg.mkv
1212
kinesis-video-native-build/test_jpeg.mkv
13+
test-stream/

CODE_OF_CONDUCT.md

-4
This file was deleted.

CONTRIBUTING.md

-61
This file was deleted.

README.md

+27-405
Large diffs are not rendered by default.
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
# Dockerfile to build Kinesis Video Streams Producer CPP as a Windows container
3+
4+
FROM microsoft/windowsservercore
5+
WORKDIR /opt/
6+
7+
# ================= HTTPS Certificate =====================================================================
8+
9+
#RUN wget https://www.amazontrust.com/repository/SFSRootCAG2.pem
10+
#RUN cp SFSRootCAG2.pem /etc/ssl/cert.pem
11+
12+
# ===== Git Checkout latest Kinesis Video Streams Producer SDK (CPP) =======================================
13+
14+
RUN git clone https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git
15+
16+
# ===== Build the Producer SDK (CPP) using Microsoft Visual C++ =============================================
17+
WORKDIR /opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/
18+
19+
RUN "vs-buildtools-install.bat && windows-install.bat 64 && vs_buildtools.exe uninstall --wait --quiet --installPath C:\BuildTools"
20+
COPY start_rtsp_in_docker.bat /opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/
21+
22+
# You can comment the following step if you would like to start the container first and make changes before
23+
# starting the demo application
24+
ENTRYPOINT ["/opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/start_rtsp_in_docker.bat"]
25+
26+
# ===== Steps to build docker image and run the container ===================================================
27+
#
28+
# ===== Step 1. Run docker bbuild command to create the docker image ========================================
29+
# =====Make sure the Dockerfile and start_rtsp_in_docker.bat are present in the current working directory ===
30+
#
31+
# > docker build -t windowsdockerrtsptest .
32+
#
33+
# ===== Step 2. List the docker images built to get the image id ==============================================
34+
#
35+
# > docker images
36+
# REPOSITORY TAG IMAGE ID CREATED SIZE
37+
# windowsdockerrtsptest latest 02181afc49f9 4 seconds ago 14.1GB
38+
#
39+
# ===== Step 3. Start the container with credentials ==========================================================
40+
# > docker run -it 02181afc49f9 <AWS_ACCESS_KEY_ID> <AWS_SECRET_ACCESS_KEY> <RTSP_URL> <STREAM_NAME>
41+
#
42+
43+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
REM Demo GStreamer Sample Application for RTSP Streaming to Kinesis Video Streams
2+
REM To be run inside the Docker container
3+
4+
cd /opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/Release
5+
6+
REM Start the demo rtsp application to send video streams
7+
set PATH=%PATH%;C:\opt\amazon-kinesis-video-streams-producer-sdk-cpp\kinesis-video-native-build\downloads\gstreamer\1.0\x86_64\bin
8+
set AWS_ACCESS_KEY_ID=%1
9+
set AWS_SECRET_ACCESS_KEY=%2
10+
11+
REM %3 is RTSP_URL and %4 for STREAM_NAME
12+
kinesis_video_gstreamer_sample_rtsp_app.exe %3 %4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#### How to build and run Docker container for Kinesis Video Streams RTSP demo application in Windows
2+
3+
----
4+
#### 1. Download and install Docker in Windows
5+
Follow instructions to download and start Docker for Windows
6+
* [Getting started with Docker in Windows](https://docs.docker.com/docker-for-windows/)
7+
* [Docker download instructions](https://www.docker.com/community-edition#/download)
8+
* [Pre-requisites for installing Docker in Windows](https://docs.docker.com/docker-for-windows/install/)
9+
10+
----
11+
#### 2. Build Kinesis Video Producer SDK as a Docker image
12+
Download the `Dockerfile` and `start_rtsp_in_docker.bat` into a folder. Once the Docker is installed and running
13+
in the [Windows container mode](https://docs.docker.com/docker-for-windows/install/#switch-between-windows-and-linux-containers), then you can build the Docker image by using the following command.
14+
```
15+
> docker build -t windowsdockerrtsptest .
16+
```
17+
Once the build is complete, you can get the image id by running the command `docker images` which will display all the Docker images built in your system.
18+
```
19+
> docker images
20+
```
21+
Use the **IMAGE_ID** from the output (e.g `02181afc49f9`):
22+
```
23+
REPOSITORY TAG IMAGE ID CREATED SIZE
24+
windowsdockerrtsptest latest 02181afc49f9 Less than a second ago 14.1GB
25+
```
26+
27+
----
28+
#### 3. Start the Docker container to run RTSP video streaming
29+
Run the Docker container to send video to Kinesis Video Streams using the following command:
30+
```
31+
> docker run -it <IMAGE_ID> <AWS_ACCESS_KEY_ID> <AWS_SECRET_ACCESS_KEY> <RTSP_URL> <YOUR_STREAM_NAME>
32+
```

0 commit comments

Comments
 (0)