Skip to content

Commit

Permalink
set min/max rate #736
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Jul 22, 2023
1 parent 083a9e8 commit 85d585f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/wyzebridge/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def re_encode_video(uri: str, is_vertical: bool) -> list[str]:
[h264_enc]
+ v_filter
+ ["-b:v", "2000k", "-coder", "1", "-bufsize", "2000k"]
+ ["-maxrate", "2000k", "-minrate", "2000k"]
+ ["-profile:v", "77" if h264_enc == "h264_v4l2m2m" else "main"]
+ ["-preset", "fast" if h264_enc in {"h264_nvenc", "h264_qsv"} else "ultrafast"]
+ ["-forced-idr", "1", "-force_key_frames", "expr:gte(t,n_forced*2)"]
Expand Down

0 comments on commit 85d585f

Please sign in to comment.