go-video-packager

command module
v0.0.0-...-99a26cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2020 License: MIT Imports: 14 Imported by: 0

README

go-video-packager

A video packager written in Go

This microservice provide a simple API that allows to:

  • Upload MP4 content files
  • Package uploaded content for MPEG-DASH
  • Expose stream files for playback

Run

In order to run the app on docker through the use of docker-compose run the following:

$ cd go-video-packager   // go to the project directory
$ docker-compose build   // build all docker images
$ docker-compose up      // run all containers 

This will make docker run two containers. The app container and mongodb container.

Basic workflow

1. Upload content

Upload a file using /content endpoint. The response will include a content_id.

2. Package

Calling /package endpoint with the content_id and the encryption params will trigger a packaging job. The actual packaging will occur in a background process. The response will include a stream_id.

3. Get stream

Calling /streaminfo with the required stream_id will check for the packaging job status. If the packaging job is done, the response will provide a stream url and the needed params to play the stream.

References

Documentation

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL