Skip to content

Commit

Permalink
strand-cam: ignore bitrate selection with OpenH264 encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Jan 28, 2024
1 parent d4c46a2 commit 67b1b0c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions strand-cam/src/strand-cam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4903,11 +4903,10 @@ impl FinalMp4RecordingConfig {
cuda_device,
}),
CodecSelection::H264OpenH264 => {
use ci2_remote_control::{BitrateSelection::*, OpenH264Preset};
let preset = match &shared.mp4_bitrate {
BitrateUnlimited => OpenH264Preset::AllFrames,
br => OpenH264Preset::SkipFramesBitrate(bitrate_to_u32(br)),
};
let preset = ci2_remote_control::OpenH264Preset::AllFrames;
if shared.mp4_bitrate != ci2_remote_control::BitrateSelection::BitrateUnlimited {
warn!("ignoring mp4 bitrate with OpenH264 codec");
}
Mp4Codec::H264OpenH264(ci2_remote_control::OpenH264Options {
debug: false,
preset,
Expand Down

0 comments on commit 67b1b0c

Please sign in to comment.