diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-14 16:02:42 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-14 16:02:42 +0200 |
commit | 42e08750a5a9a112d458a5db1d6b169278e953c5 (patch) | |
tree | 595db21dd2c51b4772a7371e062023b5488c40e7 /common/src/stream.rs | |
parent | 4a36d9e96853bf04d17f8377a7fbf862d108b9f1 (diff) | |
download | jellything-42e08750a5a9a112d458a5db1d6b169278e953c5.tar jellything-42e08750a5a9a112d458a5db1d6b169278e953c5.tar.bz2 jellything-42e08750a5a9a112d458a5db1d6b169278e953c5.tar.zst |
stream info for transcoding
Diffstat (limited to 'common/src/stream.rs')
-rw-r--r-- | common/src/stream.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/src/stream.rs b/common/src/stream.rs index a14fd57..555a5d0 100644 --- a/common/src/stream.rs +++ b/common/src/stream.rs @@ -87,7 +87,7 @@ pub enum TrackKind { #[derive(Debug, Clone, Deserialize, Serialize, Default)] pub struct StreamFormatInfo { pub codec: String, - pub byterate: f64, + pub bitrate: f64, pub remux: bool, pub containers: Vec<StreamContainer>, @@ -104,6 +104,7 @@ pub enum StreamContainer { WebM, Matroska, WebVTT, + MPEG4, JVTT, } @@ -203,6 +204,7 @@ impl Display for StreamContainer { StreamContainer::Matroska => "matroska", StreamContainer::WebVTT => "webvtt", StreamContainer::JVTT => "jvtt", + StreamContainer::MPEG4 => "mp4", }) } } @@ -214,6 +216,7 @@ impl FromStr for StreamContainer { "matroska" => StreamContainer::Matroska, "webvtt" => StreamContainer::WebVTT, "jvtt" => StreamContainer::JVTT, + "mp4" => StreamContainer::MPEG4, _ => return Err(()), }) } |