https://github.com/ubergarm/zappa-ffmpeg
Run ffmpeg inside a lambda for serverless transformations.
https://github.com/ubergarm/zappa-ffmpeg
demoware lambda serverless zappa
Last synced: 21 days ago
JSON representation
Run ffmpeg inside a lambda for serverless transformations.
- Host: GitHub
- URL: https://github.com/ubergarm/zappa-ffmpeg
- Owner: ubergarm
- License: mit
- Created: 2017-08-18T23:39:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T23:41:14.000Z (almost 8 years ago)
- Last Synced: 2025-03-30T13:04:08.447Z (about 2 months ago)
- Topics: demoware, lambda, serverless, zappa
- Language: Python
- Size: 1.95 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ffmpeg-lambda
===
Run ffmpeg inside a lambda for serverless transformations.## Static Binaries
Grab the `x86_64 build` files from [ffmpeg static builds](https://www.johnvansickle.com/ffmpeg/).Put `ffmpeg` static binary into into the `bin` subdirectory and delete everything else.
## Dev
```bash
pip install zappa flask
# export AWS secret/key/region etc
zappa init
zappa deploy dev
# make changes as needed
zappa update dev
# watch logs
zappa tail dev
```## Production
Keep in mind limitations of lambda e.g. max runtime, CPU, and RAM etc.
You may need/want to add the following to your `zappa_settings.json`
```
"binary_support": true,
"cors": true,
```## Todo
- [ ] production deploy
- [ ] ssl
- [x] streaming response
- [ ] better logging based on debug level
- [ ] standardize on JSON response for all errors/version endpoints etc## Implications
You can stick almost any smallish `x86_64` statically compiled binary
e.g. `golang` etc into `bin` and call it via http! Cheers!## Notes
I haven't implemented actual useful transformations in this
version. Sorry. Just pass arguments and keep in mind that ffmpeg
can read in http streams directly or use `stdin` and `stdout`.## References
* [Miserlou/Zappa](https://github.com/Miserlou/Zappa)
* [ubergarm/pythumbio](https://github.com/ubergarm/pythumbio)