Repository Summary
Checkout URI | https://github.com/aws-robotics/kinesisvideo-encoder-ros1.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-02-08 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Packages
Name | Version |
---|---|
h264_video_encoder | 1.1.4 |
README
h264_video_encoder
Overview
This package provides a ROS Node that will encode a stream of images into an H264 video stream.
Keywords: ROS, AWS, Kinesis
License
The source code is released under [LGPL 2.1]. However, this package uses h264_encoder_core
which incorporates several different encoding components which may further restrict the license. By default, x264 is used for software encoding, thereby applying GPL to all of h264_video_encoder.
Author: AWS RoboMaker
Affiliation: [Amazon Web Services (AWS)]
RoboMaker cloud extensions rely on third-party software licensed under open-source licenses and are provided for demonstration purposes only. Incorporation or use of RoboMaker cloud extensions in connection with your production workloads or commercial product(s) or devices may affect your legal rights or obligations under the applicable open-source licenses. AWS does not provide support for this cloud extension. You are solely responsible for how you configure, deploy, and maintain this cloud extension in your workloads or commercial product(s) or devices.
Supported ROS Distributions
- Kinetic
- Melodic
Installation
Building from Source
To build from source you’ll need to create a new workspace, clone and checkout the latest release branch of this repository, install all the dependencies, and compile. If you need the latest development features you can clone from the master
branch instead of the latest release branch. While we guarantee the release branches are stable, the master
should be considered to have an unstable build due to ongoing development.
-
Install build tool: please refer to
colcon
installation guide -
Create a ROS workspace and a source directory
mkdir -p ~/ros-workspace/src
-
Clone the package into the source directory .
cd ~/ros-workspace/src git clone https://github.com/aws-robotics/kinesisvideo-encoder-ros1.git -b release-latest
-
Install dependencies
cd ~/ros-workspace sudo apt-get update && rosdep update rosdep install --from-paths src --ignore-src -r -y
Note: If building the master branch instead of a release branch you may need to also checkout and build the master branches of the packages this package depends on.
-
Build the packages
cd ~/ros-workspace && colcon build
-
Configure ROS library Path
source ~/ros-workspace/install/setup.bash
-
Build and run the unit tests
colcon build --packages-select h264_video_encoder --cmake-target tests colcon test --packages-select h264_video_encoder h264_encoder_core && colcon test-results --all
Building on Cloud9 - Cross Compilation
-
In RoboMaker’s Cloud9, start with an empty workspace and in the Cloud9 console:
# build docker image cd /opt/robomaker/cross-compilation-dockerfile/ sudo bin/build_image.bash # this step will take a while # create workspace mkdir -p ~/environment/robot_ws/src cd ~/environment/robot_ws/src git clone https://github.com/aws-robotics/kinesisvideo-encoder-common.git git clone https://github.com/aws-robotics/kinesisvideo-encoder-ros1.git # run docker image cd .. sudo docker run -v $(pwd):/ws -it ros-cross-compile:armhf
-
Now you’re inside the cross-compilation docker container
# build the workspace cd ws apt update rosdep install --from-paths src --ignore-src -r -y # this step will take a while colcon build --build-base armhf_build --install-base armhf_install colcon bundle --build-base armhf_build --install-base armhf_install --bundle-base armhf_bundle --apt-sources-list /opt/cross/apt-sources.yaml # this step will take a while exit
-
Now you’re oustide the cross-compilation docker container
# for more on copying s3 buckets see: https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html aws s3 cp armhf_bundle/output.tar.gz s3://<bucket_name_in_your_robomaker_account>/h264_video_encoder.armhf.tar
Launch Files
A launch file called h264_video_encoder.launch
is included in this package. The launch file uses the following arguments:
Arg Name | Description |
---|---|
node_name | (optional) The name the H264 encoder node should be launched with. If not provided, the node name will default to h264_video_encoder
|
config_file | (optional) A path to a rosparam config file. |
File truncated at 100 lines see the full file
CONTRIBUTING
Repository Summary
Checkout URI | https://github.com/aws-robotics/kinesisvideo-encoder-ros1.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2022-02-08 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Packages
Name | Version |
---|---|
h264_video_encoder | 1.1.4 |
README
h264_video_encoder
Overview
This package provides a ROS Node that will encode a stream of images into an H264 video stream.
Keywords: ROS, AWS, Kinesis
License
The source code is released under [LGPL 2.1]. However, this package uses h264_encoder_core
which incorporates several different encoding components which may further restrict the license. By default, x264 is used for software encoding, thereby applying GPL to all of h264_video_encoder.
Author: AWS RoboMaker
Affiliation: [Amazon Web Services (AWS)]
RoboMaker cloud extensions rely on third-party software licensed under open-source licenses and are provided for demonstration purposes only. Incorporation or use of RoboMaker cloud extensions in connection with your production workloads or commercial product(s) or devices may affect your legal rights or obligations under the applicable open-source licenses. AWS does not provide support for this cloud extension. You are solely responsible for how you configure, deploy, and maintain this cloud extension in your workloads or commercial product(s) or devices.
Supported ROS Distributions
- Kinetic
- Melodic
Installation
Building from Source
To build from source you’ll need to create a new workspace, clone and checkout the latest release branch of this repository, install all the dependencies, and compile. If you need the latest development features you can clone from the master
branch instead of the latest release branch. While we guarantee the release branches are stable, the master
should be considered to have an unstable build due to ongoing development.
-
Install build tool: please refer to
colcon
installation guide -
Create a ROS workspace and a source directory
mkdir -p ~/ros-workspace/src
-
Clone the package into the source directory .
cd ~/ros-workspace/src git clone https://github.com/aws-robotics/kinesisvideo-encoder-ros1.git -b release-latest
-
Install dependencies
cd ~/ros-workspace sudo apt-get update && rosdep update rosdep install --from-paths src --ignore-src -r -y
Note: If building the master branch instead of a release branch you may need to also checkout and build the master branches of the packages this package depends on.
-
Build the packages
cd ~/ros-workspace && colcon build
-
Configure ROS library Path
source ~/ros-workspace/install/setup.bash
-
Build and run the unit tests
colcon build --packages-select h264_video_encoder --cmake-target tests colcon test --packages-select h264_video_encoder h264_encoder_core && colcon test-results --all
Building on Cloud9 - Cross Compilation
-
In RoboMaker’s Cloud9, start with an empty workspace and in the Cloud9 console:
# build docker image cd /opt/robomaker/cross-compilation-dockerfile/ sudo bin/build_image.bash # this step will take a while # create workspace mkdir -p ~/environment/robot_ws/src cd ~/environment/robot_ws/src git clone https://github.com/aws-robotics/kinesisvideo-encoder-common.git git clone https://github.com/aws-robotics/kinesisvideo-encoder-ros1.git # run docker image cd .. sudo docker run -v $(pwd):/ws -it ros-cross-compile:armhf
-
Now you’re inside the cross-compilation docker container
# build the workspace cd ws apt update rosdep install --from-paths src --ignore-src -r -y # this step will take a while colcon build --build-base armhf_build --install-base armhf_install colcon bundle --build-base armhf_build --install-base armhf_install --bundle-base armhf_bundle --apt-sources-list /opt/cross/apt-sources.yaml # this step will take a while exit
-
Now you’re oustide the cross-compilation docker container
# for more on copying s3 buckets see: https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html aws s3 cp armhf_bundle/output.tar.gz s3://<bucket_name_in_your_robomaker_account>/h264_video_encoder.armhf.tar
Launch Files
A launch file called h264_video_encoder.launch
is included in this package. The launch file uses the following arguments:
Arg Name | Description |
---|---|
node_name | (optional) The name the H264 encoder node should be launched with. If not provided, the node name will default to h264_video_encoder
|
config_file | (optional) A path to a rosparam config file. |
File truncated at 100 lines see the full file