Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/southpolesteve/serverless-ffmpeg
https://github.com/southpolesteve/serverless-ffmpeg
audio conversion ffmpeg serverless streaming
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/southpolesteve/serverless-ffmpeg
- Owner: southpolesteve
- Created: 2018-05-02T21:28:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-03T22:35:21.000Z (over 6 years ago)
- Last Synced: 2024-11-10T08:39:22.804Z (2 months ago)
- Topics: audio, conversion, ffmpeg, serverless, streaming
- Language: JavaScript
- Size: 12.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless ffmpeg
## Getting started
1. Have node installed. At least version 8
2. Have aws account and setup aws-cli
3. Have SAM local installed: `npm i -g aws-sam-local`
4. Create an s3 bucket to use for files
5. run `node event-setup.js your-s3-bucket`. This will upload `./test.wav` to the bucket and generate `event.json`
6. run `sam local invoke -e event.json`
7. See your converted `./test.mp3` in you s3 bucket :)The function runs with an expected event payload:
```
{
input: {
Bucket: 'your-s3-bucket',
Key: 'file/path/foo.wav'
},
output: {
Bucket: 'your-s3-bucket',
Key: 'file/path/foo.mp3'
}
}
```Prior Art:
https://github.com/binoculars/aws-lambda-ffmpegMade for the lovely people at [MUSICat](https://www.musicat.co/)
Made with ❤️ by Steve Faulkner. Available on the [AWS Serverless Application Repository](https://aws.amazon.com/serverless)