parent
22ca7177a6
commit
633c80d5e4
5 changed files with 88 additions and 377 deletions
|
|
@ -535,12 +535,14 @@ 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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue