Skip to content

Ju99ernaut/composeit-transcoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComposeIt microservice for audio transcoding

Composeit-transcoding uses GCP Pub/Sub for message queuing. It is used to accept requests from API service for media transcoding.
This is managed using PUSH Pub/Sub method. Service has one HTTP endpoint which is receiving requests from Pub/Sub topic.
The ffmpeg cli tool alongside with "github.com/u2takey/ffmpeg-go" golang wrapper is used for transcoding. To test it locally, this tool has to be present on your local machine.

How to run this locally

Get configs

On your local you have to have configured gcp account with privileges to read secrets from SecretManager
https://cloud.google.com/sdk/docs/installq

After installing gcloud run in your shell

```
gcloud auth application-default login
```


$ cat env.sample >> env
Configure your IDE to use env file for passing environment variables to service

- OR -

use ```make dev``` command that will start service while exporting env file first to envs

Run service

Run service on localhost

$ go mod tidy
$ go mod vendor
$ go run main.go run // or make dev

This will bring up http server with one endpoint on which you can send requests.
Structure of request can be found in /server/service.go

About

All transcoding needs here

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages