New video transcoder (#27)
* New video transcoder * Set a smaller max muxing size + logging tweaks * No need to return an err since it wiill panic anyway * Use a default encoder preset if one is not supplied * Rename to NewTranscoder. Add comments. * Rename Bitrate to VideoBitrate. Config file changes required with this rename. * Allow overrides of segment length. Allow offline stream to live in a single segment * Append offline state video to existin HLS stream instead of overwriting because players do not like that * Make properties private as they do not need to be exported
This commit is contained in:
@@ -39,15 +39,14 @@ build() {
|
||||
|
||||
mkdir -p dist/${NAME}
|
||||
mkdir -p dist/${NAME}/webroot/static
|
||||
mkdir -p dist/${NAME}/static
|
||||
|
||||
# Default files
|
||||
cp config-example.yaml dist/${NAME}/config.yaml
|
||||
cp webroot/static/content-example.md dist/${NAME}/webroot/static/content.md
|
||||
cp webroot/img/logo.png dist/${NAME}/static/logo.png
|
||||
|
||||
cp -R webroot/ dist/${NAME}/webroot/
|
||||
cp -R doc/ dist/${NAME}/doc/
|
||||
cp -R static/ dist/${NAME}/static
|
||||
cp README.md dist/${NAME}
|
||||
|
||||
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH go build -ldflags "-X main.GitCommit=$GIT_COMMIT -X main.BuildVersion=$VERSION -X main.BuildType=$NAME" -a -o dist/$NAME/owncast
|
||||
|
||||
Reference in New Issue
Block a user