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
Copy file name to clipboardExpand all lines: install-instructions-macos.md
+98-18Lines changed: 98 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ optionally, set `AWS_SESSION_TOKEN` if integrating with temporary token and `AWS
81
81
82
82
----
83
83
##### Setting the environment variables for library path
84
-
At the end of installation (with `install-script`), environment setup is saved in the `set_kvs_sdk_env.sh`. Next time you want to run the demo applications or use **gst-launch-1.0** to send video to Kinesis Video Streams, you can run this script by `. ./set_kvs_sdk_env.sh` or ` source set_kvs_sdk_env.sh`
84
+
At the end of installation (with `install-script`), environment setup is saved in the `set_kvs_sdk_env.sh`. Next time you want to run the sample applications or use **gst-launch-1.0** to send video to Kinesis Video Streams, you can run this script by `. ./set_kvs_sdk_env.sh` or ` source set_kvs_sdk_env.sh`
85
85
within the `kinesis-video-native-build` directory. This set up the environment for **LD_LIBRARY_PATH**, **PATH** and **GST_PLUGIN_PATH**. You can also set these environment variables manually as below.
86
86
* Export the **LD_LIBRARY_PATH**=`<full path to your sdk cpp directory`>/kinesis-video-native-build/downloads/local/lib. For example, if you have downloaded the CPP SDK in `/opt/awssdk` directory then you can set
##### Running the GStreamer webcam demo application
121
-
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.
147
+
The pipeline above uses default video and audio source on a Mac. If you have an audio enable webcam plugged in, you can first use `gst-device-monitor-1.0` command mentioned above to find out the index for webcam's microphone. The example audio video pipeline using the webcam looks like follows:
##### Running the GStreamer webcam sample application
154
+
The sample 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.
***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`.
127
-
***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.
160
+
***B.** If **no resolution is specified**, the sample application will try to use these three resolutions **640x480, 1280x720 and 1920x1080** and will **start streaming** once the camera supported resolution is detected.
128
161
129
-
##### Running the GStreamer RTSP demo application
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.
162
+
##### Running the GStreamer RTSP sample application
163
+
`kinesis_video_gstreamer_sample_app` supports sending video from a RTSP URL (IP camera). You can find the RTSP URL from your IP camera manual or manufacturers product page. Change your current working direcctory to`kinesis-video-native-build` directory. Launch it with a stream name and `rtsp_url` and it will start streaming.
`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.
169
+
##### Running the GStreamer sample application to upload a *video* file
170
+
171
+
`kinesis_video_gstreamer_sample_app` supports uploading a video that is either MKV, MPEGTS, or MP4. The sample application expects the video is encoded in H264.
172
+
173
+
Change your current working directory to `kinesis-video-native-build`. Launch the sample application with a stream name and a path to the file and it will start streaming.
Refer the **README.md** file in the *docker_native_scripts* folder for running the build and **RTSP demo application** to start streaming from **IP camera** within Docker container.
179
+
###### Running the `gst-launch-1.0` command to upload [MKV](https://www.matroska.org/) file that contains both *audio and video* in **Mac-OS**. Note that video should be H264 encoded and audio should be AAC encoded.
##### Running the GStreamer sample application to upload a *audio and video* file
198
+
199
+
`kinesis_video_gstreamer_audio_video_sample_app` supports uploading a video that is either MKV, MPEGTS, or MP4. The sample application expects the video is encoded in H264 and audio is encoded in AAC format. Note: If your media uses a different format, then you can revise the pipeline elements in the sample application to suit your media format.
200
+
201
+
Change your current working directory to `kinesis-video-native-build`. Launch the sample application with a stream name and a path to the file and it will start streaming.
##### Running the GStreamer sample application to stream audio and video from live source
208
+
209
+
`kinesis_video_gstreamer_audio_video_sample_app` supports streaming audio and video from live sources such as a audio enabled webcam. First you need to figure out what your audio device is using the steps mentioned above and export it as environment variable like such:
210
+
211
+
`export AWS_KVS_AUDIO_DEVICE=67`
212
+
213
+
You can also choose to use other video devices by doing
214
+
215
+
`export AWS_KVS_VIDEO_DEVICE=1`
216
+
217
+
If no `AWS_KVS_VIDEO_DEVICE` or `AWS_KVS_AUDIO_DEVICE` environment variable was detected, the sample app will use the default device.
218
+
After the environment variables are set, launch the sample application with a stream name and it will start streaming.
Refer the **README.md** file in the *docker_native_scripts* folder for running the build and **RTSP sample application** to start streaming from **IP camera** within Docker container.
145
225
146
226
##### Additional examples
147
227
For additional examples on using Kinesis Video Streams Java SDK and Kinesis Video Streams Parsing Library refer:
@@ -160,7 +240,7 @@ Define `HEAP_DEBUG` and `LOG_STREAMING` C-defines by uncommenting the appropriat
160
240
----
161
241
##### How to configure logging for producer SDK sample applications.
162
242
163
-
For the sample demo applications included in the producer SDK (CPP), the log configuration is referred from the file `kvs_log_configuration` (within the `kinesis-video-native-build` folder).
243
+
For the sample applications included in the producer SDK (CPP), the log configuration is referred from the file `kvs_log_configuration` (within the `kinesis-video-native-build` folder).
164
244
165
245
Refer sample configuration in the folder `kinesis-video-native-build` for details on how to set the log level (DEBUG or INFO) and output options (whether to send log output to either console or file (or both)).
166
246
* Log output messages to console:
@@ -170,7 +250,7 @@ Refer sample configuration in the folder `kinesis-video-native-build` for detail
170
250
----
171
251
#### Troubleshooting:
172
252
173
-
##### Library not found error when running the demo application
253
+
##### Library not found error when running the sample application
174
254
If any error similar to the following shows that the library path is not properly set:
175
255
```
176
256
liblog4cplus-1.2.so.5: cannot open shared object file: No such file or directory
@@ -205,7 +285,7 @@ make install
205
285
206
286
The projects depend on the following open source components. Running `install-script` will download and build the necessary components automatically.You can also install them in **Mac-OS** using `brew` and use the `min-install-script`.
207
287
208
-
###### Producer SDK Core
288
+
###### Producer SDK core dependencies
209
289
* openssl (crypto and ssl) - [License](https://github.com/openssl/openssl/blob/master/LICENSE)
0 commit comments