Only try to read input stream in real-time, not faster
This commit is contained in:
@@ -41,10 +41,11 @@ func startFfmpeg(configuration Config) {
|
|||||||
|
|
||||||
ffmpegFlags := []string{
|
ffmpegFlags := []string{
|
||||||
"-hide_banner",
|
"-hide_banner",
|
||||||
|
"-re",
|
||||||
"-i pipe:",
|
"-i pipe:",
|
||||||
"-vf scale=900:-2",
|
"-vf scale=900:-2",
|
||||||
"-sws_flags fast_bilinear",
|
"-sws_flags fast_bilinear",
|
||||||
strings.Join(videoMaps, " "), // All the different video variants
|
strings.Join(videoMaps, " "), // All the different video variants
|
||||||
strings.Join(audioMaps, " ") + " -c:a copy", // Audio for all the 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
|
// strings.Join(audioMaps, " ") + " -c:a aac -b:a 192k -ac 2", // Audio for all the variants
|
||||||
"-master_pl_name stream.m3u8",
|
"-master_pl_name stream.m3u8",
|
||||||
|
|||||||
Reference in New Issue
Block a user