add framerate options

Former-commit-id: 340d6cf9e0212cdb596f95007249887f504005e9
This commit is contained in:
Daniel Løvbrøtte Olsen
2020-04-21 13:59:52 +02:00
parent b2d9f4f40b
commit 88dbfdc6d4
4 changed files with 22 additions and 12 deletions

View File

@@ -47,7 +47,9 @@ pub struct EOptions {
pub ffmpeg: String,
pub aomenc: String,
pub two_pass: bool,
pub pix_fmt: EPixFmt
pub pix_fmt: EPixFmt,
#[serde(default)]
pub fps: Option<(u16, u16)>
}
impl Default for EOptions {
fn default() -> Self {
@@ -55,7 +57,8 @@ impl Default for EOptions {
ffmpeg: String::default(),
aomenc: "--lag-in-frames=25 --tile-columns=0 --tile-rows=0 --enable-fwd-kf=1 --bit-depth=10 --cpu-used=3 --cq-level=30 --end-usage=q".to_string(),
two_pass: false,
pix_fmt: EPixFmt::I422
pix_fmt: EPixFmt::I422,
fps: Option::None
}
}
}