[RTSP]Kinesis Video Streamsを使いたい

C++プロデューサーSDKをGStreamerプラグインとして使用する
ubuntu20.4にbuildする

$ git clone https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git
$ cd amazon-kinesis-video-streams-producer-sdk-cpp
$ mkdir build
$ sudo apt-get install libssl-dev libcurl4-openssl-dev liblog4cplus-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools
$ cmake .. -DBUILD_DEPENDENCIES=OFF -DBUILD_GSTREAMER_PLUGIN=ON
$ make
// 省略
[ 97%] Built target gstkvssink
Scanning dependencies of target kvs_gstreamer_sample
[ 98%] Building CXX object CMakeFiles/kvs_gstreamer_sample.dir/samples/kvs_gstreamer_sample.cpp.o
[100%] Linking CXX executable kvs_gstreamer_sample
[100%] Built target kvs_gstreamer_sample

$ cd ..
$ export GST_PLUGIN_PATH=`pwd`/build
$ export LD_LIBRARY_PATH=`pwd`/open-source/local/lib

AWS IAMで、AmazonKinesisVideoStreamsFullAccessのユーザを作成し、access key, secret keyをコピー

$ gst-inspect-1.0 kvssink
$ gst-launch-1.0 autovideosrc ! videoconvert ! video/x-raw,format=I420,width=1280,height=720 ! vtenc_h264_hw allow-frame-reordering=FALSE realtime=TRUE max-keyframe-interval=45 bitrate=512 ! h264parse ! video/x-h264,stream-format=avc,alignment=au,profile=baseline ! kvssink stream-name=MyKinesisVideoStream storage-size=512 access-key=”YourAccessKeyId” secret-key=”YourSecretAccessKey” aws-region=”ap-northeast-1″

no element “vtenc_h264_hw”

OS xのみで使えるのでエラーになるとのこと
>@Raghava248 vtenc_h264_hw is a hardware codec which is available on OSx only. Please try your platform specific encoder or use a software encoder like x264
https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/138