Browse Source

Add resizing to video processing

pull/5/head
Gabe Kangas 5 years ago
parent
commit
d52a120fa6
  1. 1
      Dockerfile
  2. 2
      README.md
  3. 4
      ffmpeg.go

1
Dockerfile

@ -5,6 +5,5 @@ ADD . /app @@ -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"]

2
README.md

@ -173,8 +173,6 @@ The following is a list of things, as long as there's some traction, I'd like to @@ -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

4
ffmpeg.go

@ -42,7 +42,9 @@ func startFfmpeg(configuration Config) { @@ -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",

Loading…
Cancel
Save