1. In this project first we will setup Amazon Kinesis Video Streams on a Linux system, for following architectures:-
- x86_64(64 bit arch, ex:- Ubuntu)
- ARM (Advanced RISC Machines, ex:- Jetson Nano/Orin Nano, Raspberry Pi)
2. Setup Guide can be found here Kinesis Setup. Following is covered in the documentation:-
- Setting up KVS using CPP producer.
- Commands for streaming video with voice in realtine from camera a local machine to remote Kinesis server on AWS.
conda create --prefix ./envs python=3.x
conda activate ./envs
sudo apt install python3-virtualenv
virtualenv -p /usr/bin/python3.x <env_name>
source <env_name>/bin/activate
python3.x -m venv <env_name>
source <env_name>/bin/activate
pip install -r requirements.txt
- Once the kinesis has be successfully setup run the following to start the live streaming from a local system:-
- Setup the necessary configuration in file called "config.json"
python kinesis_producer.py
Note:- The streaming can be stopped by simply pressing "Enter" key.
- Run the following to get the live streaming url for consuming the feed from Kinesis:-
- Setup the necessary configuration in file called ".env"
python get_hls_endpoint.py
- The live feed can then be consumer and be viewed/played using the follwing command once the streaming url has been generated by running the above script:-
ffplay -i <live_streaming_url_generated>