From c7678044306886c7c2cadd7a386e7d7d8eadca71 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 1 Oct 2022 10:17:32 -0500 Subject: [PATCH] Default to vp9 for uploaded video --- Cargo.lock | 2 +- Cargo.toml | 2 +- defaults.toml | 2 +- src/config/defaults.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3d6b1d2..7b00339 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1556,7 +1556,7 @@ dependencies = [ [[package]] name = "pict-rs" -version = "0.4.0-beta.3" +version = "0.4.0-beta.4" dependencies = [ "actix-form-data", "actix-rt", diff --git a/Cargo.toml b/Cargo.toml index e5a13c3..91d9c1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pict-rs" description = "A simple image hosting service" -version = "0.4.0-beta.3" +version = "0.4.0-beta.4" authors = ["asonix "] license = "AGPL-3.0" readme = "README.md" diff --git a/defaults.toml b/defaults.toml index 82c4b44..1356ed4 100644 --- a/defaults.toml +++ b/defaults.toml @@ -24,7 +24,7 @@ max_file_size = 40 max_frame_count = 900 enable_silent_video = true enable_full_video = false -video_codec = 'h264' +video_codec = 'vp9' filters = ['blur', 'crop', 'identity', 'resize', 'thumbnail'] skip_validate_imports = false cache_duration = 168 diff --git a/src/config/defaults.rs b/src/config/defaults.rs index 2e300f3..a0ef18d 100644 --- a/src/config/defaults.rs +++ b/src/config/defaults.rs @@ -156,7 +156,7 @@ impl Default for MediaDefaults { max_frame_count: 900, enable_silent_video: true, enable_full_video: false, - video_codec: VideoCodec::H264, + video_codec: VideoCodec::Vp9, filters: vec![ "blur".into(), "crop".into(),