Skip to content

Commit

Permalink
Release 1.5.0 (24th Aug 2018)
Browse files Browse the repository at this point in the history
    Windows Support for Producer SDK
    Intermittent producer support
    Various bug fixes
  • Loading branch information
chehefen committed Aug 31, 2018
1 parent 107f0ef commit 0ba30d3
Show file tree
Hide file tree
Showing 226 changed files with 21,217 additions and 1,897 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ kinesis-video-native-build/libproducer.dylib
kinesis-video-native-build/start
kinesis-video-native-build/test_h264_jpg.mkv
kinesis-video-native-build/test_jpeg.mkv
test-stream/
4 changes: 0 additions & 4 deletions CODE_OF_CONDUCT.md

This file was deleted.

61 changes: 0 additions & 61 deletions CONTRIBUTING.md

This file was deleted.

432 changes: 27 additions & 405 deletions README.md

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions docker_native_scripts/windows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

# Dockerfile to build Kinesis Video Streams Producer CPP as a Windows container

FROM microsoft/windowsservercore
WORKDIR /opt/

# ================= HTTPS Certificate =====================================================================

#RUN wget https://www.amazontrust.com/repository/SFSRootCAG2.pem
#RUN cp SFSRootCAG2.pem /etc/ssl/cert.pem

# ===== Git Checkout latest Kinesis Video Streams Producer SDK (CPP) =======================================

RUN git clone https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git

# ===== Build the Producer SDK (CPP) using Microsoft Visual C++ =============================================
WORKDIR /opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/

RUN "vs-buildtools-install.bat && windows-install.bat 64 && vs_buildtools.exe uninstall --wait --quiet --installPath C:\BuildTools"
COPY start_rtsp_in_docker.bat /opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/

# You can comment the following step if you would like to start the container first and make changes before
# starting the demo application
ENTRYPOINT ["/opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/start_rtsp_in_docker.bat"]

# ===== Steps to build docker image and run the container ===================================================
#
# ===== Step 1. Run docker bbuild command to create the docker image ========================================
# =====Make sure the Dockerfile and start_rtsp_in_docker.bat are present in the current working directory ===
#
# > docker build -t windowsdockerrtsptest .
#
# ===== Step 2. List the docker images built to get the image id ==============================================
#
# > docker images
# REPOSITORY TAG IMAGE ID CREATED SIZE
# windowsdockerrtsptest latest 02181afc49f9 4 seconds ago 14.1GB
#
# ===== Step 3. Start the container with credentials ==========================================================
# > docker run -it 02181afc49f9 <AWS_ACCESS_KEY_ID> <AWS_SECRET_ACCESS_KEY> <RTSP_URL> <STREAM_NAME>
#


12 changes: 12 additions & 0 deletions docker_native_scripts/windows/start_rtsp_in_docker.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
REM Demo GStreamer Sample Application for RTSP Streaming to Kinesis Video Streams
REM To be run inside the Docker container

cd /opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/Release

REM Start the demo rtsp application to send video streams
set PATH=%PATH%;C:\opt\amazon-kinesis-video-streams-producer-sdk-cpp\kinesis-video-native-build\downloads\gstreamer\1.0\x86_64\bin
set AWS_ACCESS_KEY_ID=%1
set AWS_SECRET_ACCESS_KEY=%2

REM %3 is RTSP_URL and %4 for STREAM_NAME
kinesis_video_gstreamer_sample_rtsp_app.exe %3 %4
32 changes: 32 additions & 0 deletions docker_native_scripts/windows/windows-docker-readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#### How to build and run Docker container for Kinesis Video Streams RTSP demo application in Windows

----
#### 1. Download and install Docker in Windows
Follow instructions to download and start Docker for Windows
* [Getting started with Docker in Windows](https://docs.docker.com/docker-for-windows/)
* [Docker download instructions](https://www.docker.com/community-edition#/download)
* [Pre-requisites for installing Docker in Windows](https://docs.docker.com/docker-for-windows/install/)

----
#### 2. Build Kinesis Video Producer SDK as a Docker image
Download the `Dockerfile` and `start_rtsp_in_docker.bat` into a folder. Once the Docker is installed and running
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.
```
> docker build -t windowsdockerrtsptest .
```
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.
```
> docker images
```
Use the **IMAGE_ID** from the output (e.g `02181afc49f9`):
```
REPOSITORY TAG IMAGE ID CREATED SIZE
windowsdockerrtsptest latest 02181afc49f9 Less than a second ago 14.1GB
```

----
#### 3. Start the Docker container to run RTSP video streaming
Run the Docker container to send video to Kinesis Video Streams using the following command:
```
> docker run -it <IMAGE_ID> <AWS_ACCESS_KEY_ID> <AWS_SECRET_ACCESS_KEY> <RTSP_URL> <YOUR_STREAM_NAME>
```
Loading

0 comments on commit 0ba30d3

Please sign in to comment.