LoginSignup
0
0

More than 3 years have passed since last update.

Kinesis Video Streams のサンプルアプリを Mac で動かす

Posted at

これは何?

Kinesis Video Streams のサンプルアプリを Mac で動かしたメモ

前提としてインストールが必要なものを準備

amazon-kinesis-video-streams-producer-sdk-cpp/install-instructions-macos.md at master · awslabs/amazon-kinesis-video-streams-producer-sdk-cpp
https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/install-instructions-macos.md#installation

Install the build tools

  • cmake 3.7/3.8 https://cmake.org/
  • xCode (Mac OS) / clang / gcc (xcode-select version 2347)
  • autoconf 2.69 (License GPLv3+/Autoconf: GNU GPL version 3 or later) http://www.gnu.org/software/autoconf/autoconf.html
    • one option is to use brew to install e.g. brew install autoconf
  • bison 2.4 (GNU License)
  • pkgconfig
  • Java JDK (optional) - if Java JNI compilation is required

homebrew 使うなら下記のような感じでインストールできる

brew install cmake autoconf bison

あとは Xcode や Java をよしなにインストールしておく

サンプルアプリ動かすために必要なものをインストールし、動かす

awslabs/amazon-kinesis-video-streams-producer-sdk-cpp: Amazon Kinesis Video Streams Producer SDK for C++ is for developers to install and customize for their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams.
https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/install-instructions-macos.md#alternate-option-to-build-the-sdk-and-sample-applications-using-libraries-installed-by-homebrew

# 必要となるパッケージをインストール
brew install pkg-config openssl cmake gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly log4cplus gst-libav

# sample app を clone
git@github.com:awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git

# build を行うディレクトリに移動
cd ./amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build

# build
sudo ./min-install-script

# サンプルアプリを動かす
AWS_ACCESS_KEY_ID=xxx AWS_SECRET_ACCESS_KEY=zzz ./kinesis_video_gstreamer_sample_app my-stream

us-west-2 region の kinesis video streams で動作する。
おそらくソースコードは下記。

amazon-kinesis-video-streams-producer-sdk-cpp/kinesis_video_gstreamer_sample_app.cpp at master · awslabs/amazon-kinesis-video-streams-producer-sdk-cpp
https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/kinesis-video-gst-demo/kinesis_video_gstreamer_sample_app.cpp

試した環境

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.6
BuildVersion:   18G3020
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0