Skip to content

Commit

Permalink
adjusting more configurations on FFMPEG trying to no cap CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ghophp committed Nov 20, 2023
1 parent 25caaa0 commit 3a66ea2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/stream/ffmpeg/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3a66ea2

Please sign in to comment.