Skip to content

Commit 4c1f9d3

Browse files
committed
remove rtsp sample as it has been merged into sample app.
update release note for v1.7.1. Update doc. stability fix.
1 parent 35b210b commit 4c1f9d3

File tree

96 files changed

+3465
-2396
lines changed

Some content is hidden

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

96 files changed

+3465
-2396
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ This library is licensed under the Amazon Software License.
4444

4545
----
4646
### Release notes
47+
48+
#### Release 1.7.1 (6th Feb 2019)
49+
* Removed kinesis_video_gstreamer_sample_rtsp_app as the kinesis_video_gstreamer_sample_app has become multi-purposed for webcams, rtsp and video files.
50+
* stability fixes.
51+
4752
#### Release 1.7.0 (14th Dec 2018)
4853
* Added support for uploading files(offline mode) to Kinesis Video Stream
49-
* Stability fixes
54+
* Additional fixes
5055

5156
#### Release 1.6.0 (3rd Dec 2018)
5257
* JNI namespace change

docker_native_scripts/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ Download the `Dockerfile` and `start_rtsp_in_docker.sh` into a folder. Once the
2525
rtspdockertest latest 54f0d65f69b2 Less than a second ago 2.82GB
2626
2727
```
28-
#### Start the Docker container
28+
#### Start the Docker container
2929
---
3030

3131
* Start the Kinesis Video Streams Docker container using the following command:
3232
```
33-
$ docker run -it <IMAGE_ID> <AWS_ACCESS_KEY_ID> <AWS_SECRET_ACCESS_KEY> <RTSP_URL> <STREAM_NAME>
33+
$ docker run -it <IMAGE_ID> <AWS_ACCESS_KEY_ID> <AWS_SECRET_ACCESS_KEY> <STREAM_NAME> <RTSP_URL>
3434
```
3535

3636

Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22
# Demo GStreamer Sample Application for RTSP Streaming to Kinesis Video Streams
3-
# To be run inside the Docker container
3+
# To be run inside the Docker container
44

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

77
# Start the demo rtsp application to send video streams
88
export LD_LIBRARY_PATH=/opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib:$LD_LIBRARY_PATH
9-
AWS_ACCESS_KEY_ID=$1 AWS_SECRET_ACCESS_KEY=$2 ./kinesis_video_gstreamer_sample_rtsp_app $3 $4
9+
AWS_ACCESS_KEY_ID=$1 AWS_SECRET_ACCESS_KEY=$2 ./kinesis_video_gstreamer_sample_app $3 $4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
REM Demo GStreamer Sample Application for RTSP Streaming to Kinesis Video Streams
2-
REM To be run inside the Docker container
2+
REM To be run inside the Docker container
33

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

@@ -9,4 +9,4 @@ set AWS_ACCESS_KEY_ID=%1
99
set AWS_SECRET_ACCESS_KEY=%2
1010

1111
REM %3 is RTSP_URL and %4 for STREAM_NAME
12-
kinesis_video_gstreamer_sample_rtsp_app.exe %3 %4
12+
kinesis_video_gstreamer_sample_app.exe %3 %4

docker_native_scripts/windows/windows-docker-readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ Use the **IMAGE_ID** from the output (e.g `02181afc49f9`):
2828
#### 3. Start the Docker container to run RTSP video streaming
2929
Run the Docker container to send video to Kinesis Video Streams using the following command:
3030
```
31-
> docker run -it <IMAGE_ID> <AWS_ACCESS_KEY_ID> <AWS_SECRET_ACCESS_KEY> <RTSP_URL> <YOUR_STREAM_NAME>
31+
> docker run -it <IMAGE_ID> <AWS_ACCESS_KEY_ID> <AWS_SECRET_ACCESS_KEY> <YOUR_STREAM_NAME> <RTSP_URL>
3232
```

install-instructions-linux.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ $ gst-launch-1.0 rtspsrc location=rtsp://YourCameraRtspUrl short-header=TRUE ! r
205205
```
206206

207207
**Note:** If you are using IoT credentials then you can pass them as parameters to the gst-launch-1.0 command
208-
``` gst-launch-1.0 rtspsrc location=rtsp://YourCameraRtspUrl short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au !
208+
```
209+
$ gst-launch-1.0 rtspsrc location=rtsp://YourCameraRtspUrl short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au !
209210
kvssink stream-name="iot-stream" iot-certificate="iot-certificate,endpoint=endpoint,cert-path=/path/to/certificate,key-path=/path/to/private/key,ca-path=/path/to/ca-cert,role-aliases=role-aliases"
210211
```
211212

@@ -222,11 +223,9 @@ $ gst-launch-1.0 v4l2src do-timestamp=TRUE device=/dev/video0 ! h264parse ! vide
222223
###### Running the `gst-launch-1.0` command to start streaming from camera source in **Raspberry-PI**.
223224

224225
```
225-
$ gst-launch-1.0 v4l2src do-timestamp=TRUE device=/dev/video0 ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! omxh264enc control-rate=1 target-bitrate=5120000 periodicity-idr=45 inline-header=FALSE ! h264parse ! video/x-h264,stream-format=avc,alignment=au,width=640,height=480,framerate=30/1 ! kvssink stream-name=YourStreamName frame-timestamp=dts-only access-key=YourAccessKey secret-key=YourSecretKey
226+
$ gst-launch-1.0 v4l2src do-timestamp=TRUE device=/dev/video0 ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! omxh264enc control-rate=1 target-bitrate=5120000 periodicity-idr=45 inline-header=FALSE ! h264parse ! video/x-h264,stream-format=avc,alignment=au,width=640,height=480,framerate=30/1 ! kvssink stream-name=YourStreamName access-key=YourAccessKey secret-key=YourSecretKey
226227
```
227228

228-
**Note:** Raspberry PI camera module requires `frame-timestamp=dts-only` . If USB camera is used for streaming then this property is optional.
229-
230229
##### 4. Run the demo application from Docker
231230

232231
Refer the **README.md** file in the *docker_native_scripts* folder for running the build and RTSP demo application within Docker container.

install-instructions-macos.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ $ gst-launch-1.0 rtspsrc location=rtsp://YourCameraRtspUrl short-header=TRUE ! r
105105
```
106106

107107
**Note:** If you are using IoT credentials then you can pass them as parameters to the gst-launch-1.0 command
108-
``` gst-launch-1.0 rtspsrc location=rtsp://YourCameraRtspUrl short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au !
108+
109+
```
110+
$ gst-launch-1.0 rtspsrc location=rtsp://YourCameraRtspUrl short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au !
109111
kvssink stream-name="iot-stream" iot-certificate="iot-certificate,endpoint=endpoint,cert-path=/path/to/certificate,key-path=/path/to/private/key,ca-path=/path/to/ca-cert,role-aliases=role-aliases"
110112
```
111113

@@ -119,16 +121,23 @@ $ gst-launch-1.0 autovideosrc ! videoconvert ! video/x-raw,format=I420,width=640
119121
The demo application `kinesis_video_gstreamer_sample_app` in the `kinesis-video-native-build` directory uses GStreamer pipeline to get video data from the camera. Launch it with a stream name and it will start streaming from the camera. The user can also supply a streaming resolution (width and height) through command line arguments.
120122

121123
```
122-
Usage: AWS_ACCESS_KEY_ID=YourAccessKeyId AWS_SECRET_ACCESS_KEY=YourSecretAccessKey ./kinesis_video_gstreamer_sample_app -w <width> -h <height> -f <framerate> -b <bitrateInKBPS> <my_stream_name>
124+
Usage: AWS_ACCESS_KEY_ID=YourAccessKeyId AWS_SECRET_ACCESS_KEY=YourSecretAccessKey ./kinesis_video_gstreamer_sample_app <my_stream_name> -w <width> -h <height> -f <framerate> -b <bitrateInKBPS>
123125
```
124126
* **A.** If **resolution is provided** then the sample will try to check if the camera supports that resolution. If it does detect that the camera can support the resolution supplied in command line, then streaming starts; else, it will fail with an error message `Resolution not supported`.
125127
* **B.** If **no resolution is specified**, the demo will try to use these three resolutions **640x480, 1280x720 and 1920x1080** and will **start streaming** once the camera supported resolution is detected.
126128

127129
##### Running the GStreamer RTSP demo application
128-
The GStreamer RTSP demo app will be built in `kinesis_video_gstreamer_sample_rtsp_app` in the `kinesis-video-native-build` directory. Launch it with a stream name and `rtsp_url` and it will start streaming.
130+
`kinesis_video_gstreamer_sample_app` also supports taking a rtsp url. In the `kinesis-video-native-build` directory. Launch it with a stream name and `rtsp_url` and it will start streaming.
131+
132+
```
133+
AWS_ACCESS_KEY_ID=YourAccessKeyId AWS_SECRET_ACCESS_KEY=YourSecretAccessKey ./kinesis_video_gstreamer_sample_app <my-rtsp-stream> <my_rtsp_url>
134+
```
135+
136+
##### Uploading a video file
137+
`kinesis_video_gstreamer_sample_app` also supports uploading a video that is either mkv, mpegts, or mp4. The file content has to be h264 encoded. In the `kinesis-video-native-build` directory. Launch it with a stream name and a path to the file and it will start streaming.
129138

130139
```
131-
AWS_ACCESS_KEY_ID=YourAccessKeyId AWS_SECRET_ACCESS_KEY=YourSecretAccessKey ./kinesis_video_gstreamer_sample_rtsp_app <my_rtsp_url> my-rtsp-stream
140+
AWS_ACCESS_KEY_ID=YourAccessKeyId AWS_SECRET_ACCESS_KEY=YourSecretAccessKey ./kinesis_video_gstreamer_sample_app <my-stream> </path/to/file>
132141
```
133142

134143
##### Using Docker to run the demo application

install-instructions-windows-msvc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ set GST_PLUGIN_SYSTEM_PATH=C:\Users\<myuser>\Downloads\amazon-kinesis-video-stre
9393
* Run the demo
9494
* **Example**:
9595
* Run the sample demo application for sending **webcam video** by executing ` kinesis_video_gstreamer_sample_app.exe my-test-stream ` or
96-
* Run the sample **RTSP demo** application for sending **IP camera video** by executing `kinesis_video_gstreamer_sample_rtsp_app.exe <rtsp_url> my-test-rtsp-stream`
96+
* Run the sample application for sending **IP camera video** by executing `kinesis_video_gstreamer_sample_app.exe my-test-rtsp-stream <rtsp_url>`

0 commit comments

Comments
 (0)