Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Add resizing to video processing

Gabe Kangasd52a120fa6be
diff --git a/Dockerfile b/Dockerfile
index 387bd2c1c0..ca4ba6ddb9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"]
\ No newline at end of file
diff --git a/README.md b/README.md
index 40be713ebd..601658343a 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/ffmpeg.go b/ffmpeg.go
index ed0c666c49..f886a02924 100644
--- a/ffmpeg.go
+++ b/ffmpeg.go
@@ -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",