aboutsummaryrefslogtreecommitdiff
path: root/common/src/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/stream.rs')
-rw-r--r--common/src/stream.rs5
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(()),
})
}