aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/src/config.rs14
-rw-r--r--common/src/jhls.rs5
2 files changed, 11 insertions, 8 deletions
diff --git a/common/src/config.rs b/common/src/config.rs
index 65d7326..399e96a 100644
--- a/common/src/config.rs
+++ b/common/src/config.rs
@@ -62,31 +62,33 @@ mod default {
vec![
EncodingProfile::Video {
codec: "libsvtav1".to_string(),
- preset: 8,
+ preset: Some(8),
bitrate: 2_000_000,
- width: 1920,
+ width: Some(1920),
},
EncodingProfile::Video {
codec: "libsvtav1".to_string(),
- preset: 8,
+ preset: Some(8),
bitrate: 1_200_000,
- width: 1280,
+ width: Some(1280),
},
EncodingProfile::Video {
codec: "libsvtav1".to_string(),
- preset: 8,
+ preset: Some(8),
bitrate: 300_000,
- width: 640,
+ width: Some(640),
},
EncodingProfile::Audio {
codec: "libopus".to_string(),
bitrate: 128_000,
sample_rate: None,
+ channels: Some(2),
},
EncodingProfile::Audio {
codec: "libopus".to_string(),
bitrate: 64_000,
sample_rate: None,
+ channels: Some(2),
},
EncodingProfile::Subtitles {
codec: "webvtt".to_string(),
diff --git a/common/src/jhls.rs b/common/src/jhls.rs
index e3ef23c..fe3ffa0 100644
--- a/common/src/jhls.rs
+++ b/common/src/jhls.rs
@@ -20,13 +20,14 @@ pub struct JhlsTrack {
pub enum EncodingProfile {
Video {
codec: String,
- preset: u8,
+ preset: Option<u8>,
bitrate: usize,
- width: usize,
+ width: Option<usize>,
},
Audio {
codec: String,
bitrate: usize,
+ channels: Option<usize>,
sample_rate: Option<f64>,
},
Subtitles {