Agora-Recording-Merger helps in merging Cloud Recorded Files generated by Agora Cloud Recording.
- Heroku Developer Account / VM
- AWS IAM Credentials
- AWS S3 Bucket ( to uplaod merged files )
- AWS S3 Bucket containing recorded files
- Docker
- Deploying to Heroku
- Head on to your Heroku Developer Account and create a new name
- Once done, head on to overview tab and click on configure add-ons.
- Add Postgres and Redis add-ons.
- Now, install Heroku CLI
- Clone the repo, duplicate the
sample.env
file and rename it to.env
. - Fill all your creds in
.env
file and run the following commandsheroku login heroku container:login heroku container:push web heroku container:release web
- Deploying through VM
-
Install docker and docker-compose on the vm.
-
Duplicate the
sample.env
file and rename it to.env
. -
Uncomment 11-16 lines from
.env
file and fill all the fields. -
Build the docker image with the following command.
docker-compose build
-
Run the docker-compose file with the following command.
docker-compose up -d
-
Now, let's access into database container and create a database with following command.
docker exec -it backend bash
-
Create a database and run compose up command.
-
- Docker
- Django
- Celery
- Postgres
- FFMPEG
curl --location --request POST 'https://backend.com/api/' \
--header 'Content-Type: application/json' \
--data-raw '{
"channel_id":""
}'
- merge_mode ( int )
- fps ( int )
- width ( int )
- height ( int )