Coding

Requirements

Build

Clone the repository and build the binary:

$ git clone [email protected]:datarhei/core.git
$ cd core
$ make

After the build process, the binary is available as core

For more build options, run make help.

Repository

Cross Compile

If you want to run the binary on a different operating system and/or architecture, you create the appropriate binary by simply setting some environment variables, e.g.

Docker

Build the Docker image and run it to try out the API with FFmpeg

How to customize FFmpeg

Custom Docker images

Code style

The source code is formatted with go fmt, or run make fmt. Static analysis of the source code is done with staticcheck (see staticcheck), or run make lint.

Before committing changes, you should run make commit to ensure that the source code is in shape.

Last updated

Was this helpful?