From 4f17cc7d4fcc09876a83ab66c653386e3069eea7 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Fri, 24 Feb 2023 10:36:54 -0500 Subject: [PATCH] [+] Add suffix to encoders --- backend/encoding.toml | 2 ++ backend/src/encoder.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/backend/encoding.toml b/backend/encoding.toml index 6ad2658..eb0a445 100644 --- a/backend/encoding.toml +++ b/backend/encoding.toml @@ -3,10 +3,12 @@ processes = 2 [[encoders]] name = "H264 Full VBR35" cmd = "ffmpeg -i %i -c:v h264_nvenc -cq:v 35 -rc:v vbr -c:a aac -pix_fmt yuv420p -color_primaries 1 -color_trc 1 -colorspace 1 -movflags +faststart %o" +suffix = "h264-vbr35.mp4" [[encoders]] name = "AV1 Full CRF38" cmd = "ffmpeg -i %i -c:v libsvtav1 -crf 38 -c:a aac -pix_fmt yuv420p -color_primaries 1 -color_trc 1 -colorspace 1 -movflags +faststart %o" +suffix = "av1-crf38.mp4" #[[encoders]] #name = "x264 Full CRF32" diff --git a/backend/src/encoder.rs b/backend/src/encoder.rs index 8858e80..5a21415 100644 --- a/backend/src/encoder.rs +++ b/backend/src/encoder.rs @@ -6,6 +6,7 @@ use anyhow::{Result}; pub struct Encoder { name: String, cmd: String, + suffix: String, } #[derive(Deserialize, Debug)]