2022-10-26 09:13:47 +00:00
|
|
|
# gst-plugin-aws
|
2019-05-24 12:16:36 +00:00
|
|
|
|
|
|
|
This is a [GStreamer](https://gstreamer.freedesktop.org/) plugin to interact
|
2021-04-14 19:30:18 +00:00
|
|
|
with [Amazon Web Services](https://aws.amazon.com/). We currently have elements
|
|
|
|
to interact with [S3](https://aws.amazon.com/s3) and
|
|
|
|
[Transcribe](https://aws.amazon.com/transcribe/).
|
2019-05-24 12:16:36 +00:00
|
|
|
|
|
|
|
## AWS Credentials
|
|
|
|
|
2022-05-26 09:52:42 +00:00
|
|
|
AWS credentials are picked up using the mechanism described by
|
|
|
|
[AWS SDK](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/credentials.html).
|
|
|
|
At the moment, that is:
|
2019-05-24 12:16:36 +00:00
|
|
|
|
2021-04-14 19:30:18 +00:00
|
|
|
1. Environment variables: `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
|
|
|
|
2. AWS credentials file. Usually located at ~/.aws/credentials.
|
|
|
|
3. IAM instance profile. Will only work if running on an EC2 instance with an
|
|
|
|
instance profile/role.
|
2019-05-24 12:16:36 +00:00
|
|
|
|
|
|
|
An example credentials file might look like:
|
|
|
|
|
|
|
|
```ini
|
|
|
|
[default]
|
|
|
|
aws_access_key_id = ...
|
|
|
|
aws_secret_access_key = ...
|
|
|
|
```
|
|
|
|
|
|
|
|
## s3src
|
|
|
|
|
|
|
|
Reads from a given S3 (region, bucket, object, version?) tuple. The version may
|
|
|
|
be omitted, in which case the default behaviour of fetching the latest version
|
|
|
|
applies.
|
|
|
|
|
|
|
|
```
|
|
|
|
$ gst-launch-1.0 \
|
|
|
|
s3src uri=s3://ap-south-1/my-bucket/my-object-key/which-can-have-slashes?version=my-optional-version !
|
|
|
|
filesink name=my-object.out
|
|
|
|
```
|
2019-06-12 08:07:39 +00:00
|
|
|
|
|
|
|
## s3sink
|
|
|
|
|
2021-04-30 13:05:35 +00:00
|
|
|
Writes data to a specified S3 (region, bucket, object, version?) tuple. The
|
|
|
|
version may be omitted.
|
2019-06-12 08:07:39 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ gst-launch-1.0 \
|
|
|
|
videotestsrc ! \
|
|
|
|
theoraenc ! \
|
|
|
|
oggmux ! \
|
2021-04-30 13:05:35 +00:00
|
|
|
s3sink uri=s3://us-west-1/example-bucket/my/file.ogv?version=my-optional-version
|
2019-06-12 08:07:39 +00:00
|
|
|
```
|
2021-04-14 19:30:18 +00:00
|
|
|
|
2022-08-23 10:19:39 +00:00
|
|
|
## s3hlssink
|
|
|
|
|
|
|
|
Writes a single variant HLS stream directly to a specified S3 (region, bucket,
|
|
|
|
path prefix) tuple. Takes the encoded audio and video stream as input, and uses
|
|
|
|
`hlssink3` if available, else `hlssink2`. HLS stream parameters such as
|
2023-04-10 11:34:46 +00:00
|
|
|
playlist length, segment duration, etc. can be tweaked by accessing the
|
2022-08-23 10:19:39 +00:00
|
|
|
underlying sink using the `hlssink` property.
|
|
|
|
|
2021-04-14 19:30:18 +00:00
|
|
|
## awstranscriber
|
|
|
|
|
|
|
|
Transcribes audio to text.
|