diff --git a/internal/stream/ffmpeg/ffmpeg.go b/internal/stream/ffmpeg/ffmpeg.go index 933ce0f..8eaf5df 100644 --- a/internal/stream/ffmpeg/ffmpeg.go +++ b/internal/stream/ffmpeg/ffmpeg.go @@ -55,18 +55,17 @@ func (s *Stream) StartStream() error { "-f", "concat", "-safe", "0", "-i", s.playlistPath, + "-vf", "scale=1280:720", "-pix_fmt", "yuv420p", "-bufsize", "2000k", "-b:v", "2000k", "-b:a", "128k", "-ar", "44100", - "-acodec", "aac", "-vcodec", "libx264", "-c:a", "copy", - "-preset", "ultrafast", - "-tune", "zerolatency", - "-threads", "2", + "-preset", "veryfast", "-r", "24", + "-g", "48", "-f", "flv", "rtmp://live.twitch.tv/app/"+s.twitchStreamKey)