Skip to content

Commit 107f0ef

Browse files
committed
kvs sdk install script for Amazon Linux
1 parent 0f807f0 commit 107f0ef

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#/bin/bash
2+
# Kinesis Video Producer SDK CPP build script for Amazon Linux
3+
# Run
4+
# sudo ./install-script-ami
5+
6+
mkdir -p /opt/amazon-kinesis-video-streams-producer-sdk-cpp
7+
cd /opt
8+
yum install -y autoconf automake bison bzip2 curl diffutils flex git libffi libffi-devel libtool m4 mpfr-devel pkgconfig vim wget gcc72 gcc72-c++.x86_64
9+
wget https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz
10+
tar -zxvf cmake-3.2.3-Linux-x86_64.tar.gz
11+
export PATH=/opt/cmake-3.2.3-Linux-x86_64/bin/:$PATH
12+
git clone https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp.git
13+
cd /opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/
14+
chmod a+x ./install-script
15+
chmod a+x ./gstreamer-plugin-install-script
16+
# ================= HTTPS Certificate =====================================================================
17+
wget https://www.amazontrust.com/repository/SFSRootCAG2.pem
18+
cp SFSRootCAG2.pem /opt/amazon-kinesis-video-streams-producer-sdk-cpp
19+
# ================ Build producer sdk and gstreamer plugin ================================================
20+
#
21+
MAX_NUM_PARALLEL=`cat /proc/cpuinfo |grep processor |wc -l`
22+
./install-script -a -j $MAX_NUM_PARALLEL
23+
./gstreamer-plugin-install-script
24+
25+
# Follow instructions in Github Readme https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/README.md
26+
# or https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/examples-gstreamer-plugin.html for how to run demo applications and
27+
# gst-launch-1.0 pipeline

0 commit comments

Comments
 (0)