From ff5502bbe78db810e16f742e07b83dcc54fa36de Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 9 Jun 2020 02:56:23 -0700 Subject: [PATCH] Tweak ffmpeg settings to try and speed up encoding --- ffmpeg.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffmpeg.go b/ffmpeg.go index 4dc5b16d6..df29dcc76 100644 --- a/ffmpeg.go +++ b/ffmpeg.go @@ -48,7 +48,7 @@ func startFfmpeg(configuration Config) { "-master_pl_name stream.m3u8", "-g 48", "-keyint_min 48", - "-preset veryfast", + "-preset superfast", "-sc_threshold 0", "-profile:v high", "-f hls", @@ -60,6 +60,8 @@ func startFfmpeg(configuration Config) { "-hls_segment_filename " + path.Join(outputDir, "stream-%Y%m%d-%s.ts"), "-hls_flags delete_segments+program_date_time+temp_file", "-segment_wrap 100", + "-tune zerolatency", + // "-master_m3u8_publish_rate 5", "-var_stream_map \"" + strings.Join(streamMaps, " ") + "\"", variantPlaylistName,