-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmain.go
More file actions
28 lines (25 loc) · 710 Bytes
/
main.go
File metadata and controls
28 lines (25 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main
import (
"os"
log "github.com/sirupsen/logrus"
"github.com/urfave/cli"
)
// @title Content Transcoder API
// @version 1.0
// @description HTTP stream to HLS transcoder with session-based seek support. Each viewer creates a session which manages one HLS stream with FFmpeg. Multiple sessions for the same content share FFmpeg processes.
// @host localhost:8080
// @BasePath /
func main() {
log.SetFormatter(&log.TextFormatter{
FullTimestamp: true,
})
app := cli.NewApp()
app.Name = "content-transcoder"
app.Usage = "runs content transcoder"
app.Version = "0.0.1"
configure(app)
err := app.Run(os.Args)
if err != nil {
log.WithError(err).Fatal("Failed to serve application")
}
}