diff --git a/internal/stream/ffmpeg/ffmpeg.go b/internal/stream/ffmpeg/ffmpeg.go index 8bc1442..56fda89 100644 --- a/internal/stream/ffmpeg/ffmpeg.go +++ b/internal/stream/ffmpeg/ffmpeg.go @@ -56,14 +56,16 @@ func (s *Stream) StartStream() error { "-safe", "0", "-i", s.playlistPath, "-pix_fmt", "yuv420p", - "-x264-params", "keyint=48:min-keyint=48:scenecut=-1:nal-hrd=cbr", - "-bufsize", "3500k", - "-b:v", "3500k", + "-vf", "scale=1280:720", + "-bufsize", "2000k", + "-b:v", "2000k", "-b:a", "128k", "-ar", "44100", "-acodec", "aac", "-vcodec", "libx264", - "-preset", "superfast", + "-preset", "ultrafast", + "-tune", "zerolatency", + "-r", "25", "-f", "flv", "rtmp://live.twitch.tv/app/"+s.twitchStreamKey)