diff --git a/src/main.rs b/src/main.rs index 1efd600..a77cf81 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,5 +142,5 @@ fn main() { #[get("/test_job/")] fn test_job(jobset: String, shared: State) { let id = uuid::Uuid::new_v4(); - shared.jobs.lock().unwrap().insert(id, WUnit::new(id, jobset, workunit::WDesc::new("https://pomf.dodsorf.as/f/vz9dtl.mkv", "014", None, 90, (540, 960), None))); + shared.jobs.lock().unwrap().insert(id, WUnit::new(id, jobset, workunit::WDesc::new("https://pomf.dodsorf.as/f/g91y5j.mkv", "014", None, 90, (540, 960), None))); } \ No newline at end of file diff --git a/src/workunit.rs b/src/workunit.rs index 3ab0c97..c45cc5b 100644 --- a/src/workunit.rs +++ b/src/workunit.rs @@ -87,6 +87,7 @@ pub struct FffmpegO { pub crf: u8, pub b_v: String, pub lag_in_frames: u8, + pub gop: Option, pub pix_fmt: String, pub tiles: String, pub speed: u8 @@ -98,7 +99,8 @@ impl Default for FffmpegO { crf: 30, b_v: "0".to_string(), lag_in_frames: 35, - pix_fmt: "yuv420p10le" + gop: Option::None, + pix_fmt: "yuv420p10le".to_string(), tiles: "1x1".to_string(), speed: 4 } diff --git a/test.sh b/test.sh index 19cd124..a4084d1 100755 --- a/test.sh +++ b/test.sh @@ -8,10 +8,10 @@ curl "$base_url" curl "$base_url"/get_jobs | jq -curl "$base_url"/add_job/b -X POST -H "Content-Type: application/json" -d \ +curl "$base_url"/add_job/a -X POST -H "Content-Type: application/json" -d \ ' { - "file_url": "https://pomf.dodsorf.as/f/vz9dtl.mkv", + "file_url": "https://pomf.dodsorf.as/f/g91y5j.mkv", "file_name": "014", "priority": 15, "length": 90, @@ -21,6 +21,9 @@ curl "$base_url"/add_job/b -X POST -H "Content-Type: application/json" -d \ "two_pass": true, "crf": 45, "b_v": "0", + "lag_in_frames": 35, + "gop": null, + "pix_fmt": "yuv420p10le", "tiles": "1x1", "speed": 4 }