Skip to content

Commit

Permalink
set max bitrate for encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Oct 4, 2024
1 parent 27878a5 commit 7b8ffd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/desktop/src-tauri/src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ impl H264Encoder {
encoder.set_frame_rate(Some(fps));
encoder.set_time_base(1.0 / fps);
encoder.set_gop(fps as u32);
encoder.set_max_bit_rate(8000);

if output_flags.contains(ffmpeg::format::Flags::GLOBAL_HEADER) {
encoder.set_flags(ffmpeg::codec::Flags::GLOBAL_HEADER);
Expand Down

1 comment on commit 7b8ffd6

@vercel
Copy link

@vercel vercel bot commented on 7b8ffd6 Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.