mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 06:12:23 +03:00
Tweak ffmpeg settings to try and speed up encoding
This commit is contained in:
parent
2829d14144
commit
ff5502bbe7
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,7 @@ func startFfmpeg(configuration Config) {
|
||||||
"-master_pl_name stream.m3u8",
|
"-master_pl_name stream.m3u8",
|
||||||
"-g 48",
|
"-g 48",
|
||||||
"-keyint_min 48",
|
"-keyint_min 48",
|
||||||
"-preset veryfast",
|
"-preset superfast",
|
||||||
"-sc_threshold 0",
|
"-sc_threshold 0",
|
||||||
"-profile:v high",
|
"-profile:v high",
|
||||||
"-f hls",
|
"-f hls",
|
||||||
|
@ -60,6 +60,8 @@ func startFfmpeg(configuration Config) {
|
||||||
"-hls_segment_filename " + path.Join(outputDir, "stream-%Y%m%d-%s.ts"),
|
"-hls_segment_filename " + path.Join(outputDir, "stream-%Y%m%d-%s.ts"),
|
||||||
"-hls_flags delete_segments+program_date_time+temp_file",
|
"-hls_flags delete_segments+program_date_time+temp_file",
|
||||||
"-segment_wrap 100",
|
"-segment_wrap 100",
|
||||||
|
"-tune zerolatency",
|
||||||
|
|
||||||
// "-master_m3u8_publish_rate 5",
|
// "-master_m3u8_publish_rate 5",
|
||||||
"-var_stream_map \"" + strings.Join(streamMaps, " ") + "\"",
|
"-var_stream_map \"" + strings.Join(streamMaps, " ") + "\"",
|
||||||
variantPlaylistName,
|
variantPlaylistName,
|
||||||
|
|
Loading…
Reference in a new issue