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
C-Producer - Updates
Rotating file logger (small feature).
Validating Stream description returned from Describe stream API call and warning if there is a mismatch.
Additional tests and minor compiler warning fixes.
CPP Producer - Updates
Memory leak fix.
Minor header include change.
Test stability fix for RPi.
Platform Independent Code - Updates
Enabling put frame calls during async stream creation.
Fixes for memory corruption on 32 bit platforms.
Using PTS for file upload cases where DTS and frame durations are 0.
Fix invalid error ACK timestamp mapping causing rollback/retry logic to issue a warning.
Improved test coverage. More stability for RPi tests.
Kinesis Video GStreamer Plugin version matching SDK version.
Copy file name to clipboardExpand all lines: README.md
+21-2
Original file line number
Diff line number
Diff line change
@@ -61,13 +61,32 @@ Please follow the **installation instructions** applicable to your operating sys
61
61
62
62
[Kinesis Video Producer SDK CPP documentation](https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producer-sdk-cpp.html)
63
63
64
+
[Kinesis Video C Producer documentation](https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producer-sdk-c-api.html)
65
+
64
66
### License
65
67
66
-
This library is licensed under the Apache License, 2.0.
68
+
This library is licensed under the Apache License, 2.0.
67
69
68
70
----
69
71
### Release notes
70
72
73
+
#### Release 2.0.1 (25th Jul 2019)
74
+
* C-Producer - Updates
75
+
* Rotating file logger (small feature).
76
+
* Validating Stream description returned from Describe stream API call and warning if there is a mismatch.
77
+
* Additional tests and minor compiler warning fixes.
78
+
* CPP Producer - Updates
79
+
* Memory leak fix.
80
+
* Minor header include change.
81
+
* Test stability fix for RPi.
82
+
* Platform Independent Code - Updates
83
+
* Enabling put frame calls during async stream creation.
84
+
* Fixes for memory corruption on 32 bit platforms.
85
+
* Using PTS for file upload cases where DTS and frame durations are 0.
86
+
* Fix invalid error ACK timestamp mapping causing rollback/retry logic to issue a warning.
87
+
* Improved test coverage. More stability for RPi tests.
88
+
* Kinesis Video GStreamer Plugin version matching SDK version.
89
+
71
90
#### Release 2.0.0 (9th Jul 2019)
72
91
* License update: KVS SDK and GStreamer kvssink plugin are under Apache 2.0 license now.
73
92
* C-Producer - New feature
@@ -87,7 +106,7 @@ This library is licensed under the Apache License, 2.0.
87
106
88
107
* Please note the following changes if you have customized the SDK for your integration and not using samples directly.
89
108
* Changes to utility functions:
90
-
* RotatingStaticCredentialProvider is removed from C++ producer. Customer can use StaticCredentialProvider instead.
109
+
* RotatingStaticCredentialProvider is removed from C++ producer. Customer can use StaticCredentialProvider instead.
91
110
* CredentialProviderUtil and SerializedCredentials are removed from C++ producer.
92
111
* Following functions are removed from DefaultCallbackProvider: sleepUntilWithTimeCallback, shutdownStream, notifyResult, getControlPlaneUri, safeFreeBuffer, getStreamStatusFromString.
Copy file name to clipboardExpand all lines: install-instructions-linux.md
+15
Original file line number
Diff line number
Diff line change
@@ -381,6 +381,21 @@ Refer sample configuration in the folder `kinesis-video-native-build` for detail
381
381
By default, the log configuration `log4cplus.rootLogger=DEBUG, KvsConsoleAppender` creates console appender (KvsConsoleAppender) which outputs the log messages in the console.
382
382
* Log output messages to file: By adding file appender (KvsFileAppender) in the _rootLogger_ of log4cplus as `log4cplus.rootLogger=DEBUG, KvsConsoleAppender, KvsFileAppender` the debug messages will be stored in `kvs.log` file in the sub-folder `log` within `kinesis-video-native-build` directory. The filename for the logs and the location can be modified by changing the line ` log4cplus.appender.KvsFileAppender.File=./log/kvs.log`
383
383
384
+
----
385
+
##### How to enable saving c producer log into files.
386
+
387
+
By default C producer prints all logging information to stdout.
388
+
389
+
To send log information to a file (named kvsProducerLog.index), you need to use the addFileLoggerPlatformCallbacksProvider API after ClientCallbacks has been initialized.
390
+
391
+
The addFileLoggerPlatformCallbacksProvider API takes five parameters.
392
+
393
+
* First parameter is the PClientCallbacks that is created during the createCallback provider API (e.g.createDefaultCallbacksProviderWithAuthCallbacks.
394
+
* Second parameter is the size of string buffer that file logger will use. Logs are buffered in the string buffer and flushed into files when the buffer is full.
395
+
* Third parameter is the maximum number of files that file logger will generate. When the limit is reached, oldest log file will be deleted before creating the new one.
396
+
* Fourth parameter is the absolute directory path to store the log file.
397
+
* Fifth parameter uses boolean true or false and is used to allow printing logs to both stdout and a file (useful in debugging).
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.
221
221
222
-
### How to run sample applications for sending H264 video files to KVS
223
-
222
+
### How to run sample applications for sending H264 video files to KVS
223
+
224
224
The sample application `kinesis_video_cproducer_video_only_sample` sends h264 video frames inside the folder `kinesis-video-c-producer/samples/h264SampleFrames` to KVS.
225
-
The following command sends the video frames in a loop for ten seconds to KVS.
225
+
The following command sends the video frames in a loop for ten seconds to KVS.
226
226
you can run `./kinesis_video_cproducer_video_only_sample YourStreamName 10`
@@ -240,17 +240,17 @@ For additional examples on using Kinesis Video Streams Java SDK and Kinesis Vid
240
240
241
241
##### Running C++ Unit tests
242
242
243
-
**Note:** Please set the [credentials](https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/install-instructions-macos.md#setting-credentials-in-environment-variables) before running the unit tests.
243
+
**Note:** Please set the [credentials](https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/install-instructions-macos.md#setting-credentials-in-environment-variables) before running the unit tests.
244
244
245
245
The executable for **unit tests** will be built as `./producer_test` inside the `kinesis-video-native-build` directory. Launch it and it will run the unit test and kick off dummy frame streaming.
246
246
247
247
##### Running C unit tests
248
248
249
-
The executable for **unit tests** will be built as `./cproducer_test` inside the `kinesis-video-native-build` directory.
249
+
The executable for **unit tests** will be built as `./cproducer_test` inside the `kinesis-video-native-build` directory.
250
250
251
251
##### Running PIC unit tests
252
252
253
-
The executable for **unit tests** will be built as `./pic_test` inside the `kinesis-video-native-build` directory.
253
+
The executable for **unit tests** will be built as `./pic_test` inside the `kinesis-video-native-build` directory.
254
254
255
255
256
256
##### Enabling verbose logs
@@ -266,6 +266,22 @@ Refer sample configuration in the folder `kinesis-video-native-build` for detail
266
266
By default, the log configuration `log4cplus.rootLogger=DEBUG, KvsConsoleAppender` creates console appender (KvsConsoleAppender) which outputs the log messages in the console.
267
267
* Log output messages to file: By adding file appender (KvsFileAppender) in the _rootLogger_ of log4cplus as `log4cplus.rootLogger=DEBUG, KvsConsoleAppender, KvsFileAppender` the debug messages will be stored in `kvs.log` file in the sub-folder `log` within `kinesis-video-native-build` directory. The filename for the logs and the location can be modified by changing the line `log4cplus.appender.KvsFileAppender.File=./log/kvs.log`
268
268
269
+
----
270
+
##### How to enable saving c producer log into files.
271
+
272
+
By default C producer prints all logging information to stdout.
273
+
274
+
To send log information to a file (named kvsProducerLog.index), you need to use the addFileLoggerPlatformCallbacksProvider API after ClientCallbacks has been initialized.
275
+
276
+
The addFileLoggerPlatformCallbacksProvider API takes five parameters.
277
+
278
+
* First parameter is the PClientCallbacks that is created during the createCallback provider API (e.g.createDefaultCallbacksProviderWithAuthCallbacks.
279
+
* Second parameter is the size of string buffer that file logger will use. Logs are buffered in the string buffer and flushed into files when the buffer is full.
280
+
* Third parameter is the maximum number of files that file logger will generate. When the limit is reached, oldest log file will be deleted before creating the new one.
281
+
* Fourth parameter is the absolute directory path to store the log file.
282
+
* Fifth parameter uses boolean true or false and is used to allow printing logs to both stdout and a file (useful in debugging).
##### How to configure logging for producer SDK sample applications.
189
+
190
+
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).
191
+
192
+
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)).
193
+
* Log output messages to console:
194
+
By default, the log configuration `log4cplus.rootLogger=DEBUG, KvsConsoleAppender` creates console appender (KvsConsoleAppender) which outputs the log messages in the console.
195
+
* Log output messages to file: By adding file appender (KvsFileAppender) in the _rootLogger_ of log4cplus as `log4cplus.rootLogger=DEBUG, KvsConsoleAppender, KvsFileAppender` the debug messages will be stored in `kvs.log` file in the sub-folder `log` within `kinesis-video-native-build` directory. The filename for the logs and the location can be modified by changing the line `log4cplus.appender.KvsFileAppender.File=./log/kvs.log`
196
+
197
+
----
198
+
##### How to enable saving c producer log into files.
199
+
200
+
By default C producer prints all logging information to stdout.
201
+
202
+
To send log information to a file (named kvsProducerLog.index), you need to use the addFileLoggerPlatformCallbacksProvider API after ClientCallbacks has been initialized.
203
+
204
+
The addFileLoggerPlatformCallbacksProvider API takes five parameters.
205
+
206
+
* First parameter is the PClientCallbacks that is created during the createCallback provider API (e.g.createDefaultCallbacksProviderWithAuthCallbacks.
207
+
* Second parameter is the size of string buffer that file logger will use. Logs are buffered in the string buffer and flushed into files when the buffer is full.
208
+
* Third parameter is the maximum number of files that file logger will generate. When the limit is reached, oldest log file will be deleted before creating the new one.
209
+
* Fourth parameter is the absolute directory path to store the log file.
210
+
* Fifth parameter uses boolean true or false and is used to allow printing logs to both stdout and a file (useful in debugging).
0 commit comments