grr
Former-commit-id: f1571c945d20cea5a543502d9a78b834e8169f97
This commit is contained in:
parent
6e89300675
commit
26ea062fa4
@ -142,5 +142,5 @@ fn main() {
|
|||||||
#[get("/test_job/<jobset>")]
|
#[get("/test_job/<jobset>")]
|
||||||
fn test_job(jobset: String, shared: State<SharedState>) {
|
fn test_job(jobset: String, shared: State<SharedState>) {
|
||||||
let id = uuid::Uuid::new_v4();
|
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)));
|
||||||
}
|
}
|
@ -87,6 +87,7 @@ pub struct FffmpegO {
|
|||||||
pub crf: u8,
|
pub crf: u8,
|
||||||
pub b_v: String,
|
pub b_v: String,
|
||||||
pub lag_in_frames: u8,
|
pub lag_in_frames: u8,
|
||||||
|
pub gop: Option<u16>,
|
||||||
pub pix_fmt: String,
|
pub pix_fmt: String,
|
||||||
pub tiles: String,
|
pub tiles: String,
|
||||||
pub speed: u8
|
pub speed: u8
|
||||||
@ -98,7 +99,8 @@ impl Default for FffmpegO {
|
|||||||
crf: 30,
|
crf: 30,
|
||||||
b_v: "0".to_string(),
|
b_v: "0".to_string(),
|
||||||
lag_in_frames: 35,
|
lag_in_frames: 35,
|
||||||
pix_fmt: "yuv420p10le"
|
gop: Option::None,
|
||||||
|
pix_fmt: "yuv420p10le".to_string(),
|
||||||
tiles: "1x1".to_string(),
|
tiles: "1x1".to_string(),
|
||||||
speed: 4
|
speed: 4
|
||||||
}
|
}
|
||||||
|
7
test.sh
7
test.sh
@ -8,10 +8,10 @@ curl "$base_url"
|
|||||||
|
|
||||||
curl "$base_url"/get_jobs | jq
|
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",
|
"file_name": "014",
|
||||||
"priority": 15,
|
"priority": 15,
|
||||||
"length": 90,
|
"length": 90,
|
||||||
@ -21,6 +21,9 @@ curl "$base_url"/add_job/b -X POST -H "Content-Type: application/json" -d \
|
|||||||
"two_pass": true,
|
"two_pass": true,
|
||||||
"crf": 45,
|
"crf": 45,
|
||||||
"b_v": "0",
|
"b_v": "0",
|
||||||
|
"lag_in_frames": 35,
|
||||||
|
"gop": null,
|
||||||
|
"pix_fmt": "yuv420p10le",
|
||||||
"tiles": "1x1",
|
"tiles": "1x1",
|
||||||
"speed": 4
|
"speed": 4
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user