aboutsummaryrefslogtreecommitdiff
path: root/common/src/jhls.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-10-04 10:32:22 +0200
committermetamuffin <metamuffin@disroot.org>2023-10-04 10:32:22 +0200
commitb68ad41289dbbf4dac6b56f8b0a9a49ee7f47417 (patch)
tree19635bf7ae869903f59dff1402f7dc045d10bc5b /common/src/jhls.rs
parent8d3faa3d3d765441a0753748c92079db08fb8374 (diff)
downloadjellything-b68ad41289dbbf4dac6b56f8b0a9a49ee7f47417.tar
jellything-b68ad41289dbbf4dac6b56f8b0a9a49ee7f47417.tar.bz2
jellything-b68ad41289dbbf4dac6b56f8b0a9a49ee7f47417.tar.zst
add more params to transcoding profile
Diffstat (limited to 'common/src/jhls.rs')
-rw-r--r--common/src/jhls.rs5
1 files changed, 3 insertions, 2 deletions
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 {