Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LuaxY/Nitro
Distributed video encoder pipeline
https://github.com/LuaxY/Nitro
cloud distributed encoder ffmpeg go video
Last synced: 2 months ago
JSON representation
Distributed video encoder pipeline
- Host: GitHub
- URL: https://github.com/LuaxY/Nitro
- Owner: LuaxY
- Created: 2020-03-23T03:06:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-24T18:41:18.000Z (about 4 years ago)
- Last Synced: 2024-08-07T23:53:49.899Z (6 months ago)
- Topics: cloud, distributed, encoder, ffmpeg, go, video
- Language: Go
- Homepage:
- Size: 21 MB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nitro
Distributed video encoder pipeline
___
# Deployment
## With Docker Compose
```
docker-compose up --build -d --scale encoder=2
```# Configuration
Create `nitro.env` file
```
AMQP=
REDIS=
REDIS_PASSWORD=
AWS_BUCKET=
AWS_REGION=
AWS_ENDPOINT=
AWS_ID=
AWS_SECRET
INFLUXDB=
INFLUXDB_TOKEN=
INFLUXDB_BUCKET=
INFLUXDB_ORG=
```# Usage
```
Nitro - Distributed video encoder pipelineUsage:
nitro [flags]
nitro [command]Available Commands:
encoder Encode video chunks
help Help about any command
merger Merge video chunks
packager Create streaming manifests
splitter Split video into chunks
watcher Orchestrate the pipeline
```Publish request in `splitter.request` queue
```yaml
uid: demo-7
input: inputs/mux-video-intro.mp4
chunkTime: 5
params:
- type: video
map: 0
profile: high
codec: h264
width: 1920
height: 1080
crf: 20
bitrate: 4800k
maxrate: 8400k
minrate: 3000k
bufsize: 4800k
preset: faster
extraArgs:
- -pix_fmt
- yuv420p
- type: video
map: 0
profile: high
codec: h264
width: 1280
height: 720
crf: 20
bitrate: 2500k
maxrate: 3000k
minrate: 1000k
bufsize: 2500k
preset: faster
extraArgs:
- -pix_fmt
- yuv420p
- type: video
map: 0
profile: high
codec: h264
width: 960
height: 540
crf: 20
bitrate: 1250k
maxrate: 1600k
minrate: 1000k
bufsize: 1250k
preset: faster
extraArgs:
- -pix_fmt
- yuv420p
- type: audio
map: 1
codec: aac
channel: 2
bitrate: 128k
lang: eng
```