Skip to content

Commit

Permalink
reducing one frame and setting thread to 2 to monitor CPU performance
Browse files Browse the repository at this point in the history
  • Loading branch information
ghophp committed Nov 20, 2023
1 parent 148a0fc commit 558d03e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/stream/ffmpeg/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ func (s *Stream) StartStream() error {
"-vcodec", "libx264",
"-preset", "ultrafast",
"-tune", "zerolatency",
"-r", "25",
"-threads", "2",
"-r", "24",
"-f", "flv",
"rtmp://live.twitch.tv/app/"+s.twitchStreamKey)

Expand Down

0 comments on commit 558d03e

Please sign in to comment.