Giter Site home page Giter Site logo

amzn / amazon-s3-gst-plugin Goto Github PK

View Code? Open in Web Editor NEW
40.0 11.0 21.0 52 KB

A collection of Amazon S3 GStreamer elements.

License: GNU Lesser General Public License v2.1

Meson 5.84% C 56.42% C++ 37.74%
aws aws-s3 s3 gstreamer-plugins gstreamer gst

amazon-s3-gst-plugin's Introduction

Build Status

Amazon S3 Gst Plugin

A collection of GStreamer elements to interact with the Amazon Simple Storage Service (S3).

Getting started

Setting up dependencies

Following dependencies are required to build the project:

Building the project

$ meson build
$ cd build
$ ninja
$ sudo ninja install

After executing commands above, the plugin (libgsts3elements.so) should be installed in the default GStreamer's plugin path. It can also be found in the build directory, and used by specifying the plugin path:

$ GST_PLUGIN_PATH=src gst-inspect-1.0 s3sink

Elements

  • s3sink - streams the multimedia to a specified bucket.

AWS Credentials

By default all the elements use the default credentials provider chain, which means, that credentials are read from the following sources:

  1. Environment variables: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  2. AWS credentials file. Usually located at ~/.aws/credentials.
  3. For EC2 instance, IAM instance profile.

Some of the elements have credentials property of GstAWSCredentials type, which is a wrapper for an Aws::Auth::AWSCredentialsProvider class.

Defining GstAWSCredentials as a string

The GstAWSCredentials object can be deserialized from a string, which makes using the property in gst-launch command possible. The string must be specified in the following format

property1=value1[|property2=value2[|property3=value3[|...]]]

Currently the deserializer accepts following properties:

  • access-key-id, e.g. AKIAIOSFODNN7EXAMPLE
  • secret-access-key, e.g. wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
  • session-token
  • iam-role, e.g. arn:aws:iam::123456789012:role/s3access

All the properties are optional, however, be aware of the rules:

  • access-key-id cannot exist without secret-access-key (and vice versa)
  • if session-token specified, both access-key-id and secret-access-key must be present
  • if iam-role is specified, it will use default credentials provider to assume the role, unless access-key-id and secret-access-key are present - in that case, these credentials are used to assume the role.

License Summary

This code is made available under the LGPLv2.1 license. (See LICENSE file)

Examples

  • Streaming camera capture to an S3 bucket:
$ gst-launch-1.0 -e v4l2src num-buffers=300 device=/dev/video0 ! x264enc ! matroskamux ! s3sink bucket=my-personal-videos key=recording.mkv

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.