Add resizing to video processing

This commit is contained in:
Gabe Kangas 2020-06-09 23:35:40 -07:00
parent bd145fddf0
commit d52a120fa6
3 changed files with 3 additions and 4 deletions

View File

@ -5,6 +5,5 @@ ADD . /app
WORKDIR /app
RUN apk add --no-cache ffmpeg ffmpeg-libs
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o owncast .
RUN ls -al owncast
WORKDIR /app
CMD ["/app/owncast"]

View File

@ -173,8 +173,6 @@ The following is a list of things, as long as there's some traction, I'd like to
* Add built-in Let's Encrypt support so SSL is enabled out of the box.
* Add a Dockerfile so you can run it from a container.
<!-- LICENSE -->
## License

View File

@ -42,7 +42,9 @@ func startFfmpeg(configuration Config) {
ffmpegFlags := []string{
"-hide_banner",
"-i pipe:",
strings.Join(videoMaps, " "), // All the different video variants
"-vf scale=900:-2",
"-sws_flags fast_bilinear",
strings.Join(videoMaps, " "), // All the different video variants
strings.Join(audioMaps, " ") + " -c:a copy", // Audio for all the variants
// strings.Join(audioMaps, " ") + " -c:a aac -b:a 192k -ac 2", // Audio for all the variants
"-master_pl_name stream.m3u8",