Merge pull request #4448 from 21pages/vpx-webrtc

vpx use webrtc parameter
This commit is contained in:
RustDesk 2023-05-23 10:03:27 +08:00 committed by GitHub
commit 63e6b2f8ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 377 additions and 88 deletions

View file

@ -540,14 +540,12 @@ fn run(sp: GenericService) -> ResultType<()> {
EncoderCfg::VPX(VpxEncoderConfig {
width: c.width as _,
height: c.height as _,
timebase: [1, 1000], // Output timestamp precision
bitrate,
codec: if name == scrap::CodecName::VP8 {
VpxVideoCodecId::VP8
} else {
VpxVideoCodecId::VP9
},
num_threads: (num_cpus::get() / 2) as _,
})
}
scrap::CodecName::AV1 => EncoderCfg::AOM(AomEncoderConfig {