From 839c1e1490e7cd856e6ada1dcfd82f3d4505c89c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 2 Oct 2023 19:46:08 +0200 Subject: transcoding profiles --- common/src/stream.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'common/src/stream.rs') diff --git a/common/src/stream.rs b/common/src/stream.rs index 1fb3761..8a7ff36 100644 --- a/common/src/stream.rs +++ b/common/src/stream.rs @@ -13,8 +13,7 @@ pub struct StreamSpec { pub tracks: Vec, pub format: StreamFormat, pub webm: Option, - pub bitrate: Option, - pub width: Option, + pub profile: Option, pub index: Option, } @@ -37,8 +36,7 @@ impl Default for StreamSpec { tracks: Vec::new(), format: StreamFormat::Matroska, webm: Some(true), - width: None, - bitrate: None, + profile: None, index: None, } } @@ -62,8 +60,8 @@ impl StreamSpec { ) .unwrap(); } - if let Some(bitrate) = self.bitrate { - write!(u, "&bitrate={bitrate}").unwrap(); + if let Some(profile) = self.profile { + write!(u, "&profile={profile}").unwrap(); } if let Some(index) = self.index { write!(u, "&index={index}").unwrap(); @@ -71,9 +69,6 @@ impl StreamSpec { if let Some(webm) = self.webm { write!(u, "&webm={webm}").unwrap(); } - if let Some(width) = self.width { - write!(u, "&width={width}").unwrap(); - } u } } -- cgit v1.2.3-70-g09d2