-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows Support for Producer SDK Intermittent producer support Various bug fixes
- Loading branch information
Showing
226 changed files
with
21,217 additions
and
1,897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
# | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
``` |
Oops, something went wrong.