diff --git a/transcoder/src/identify.rs b/transcoder/src/identify.rs index a9650f8e..aa46915e 100644 --- a/transcoder/src/identify.rs +++ b/transcoder/src/identify.rs @@ -1,16 +1,30 @@ use serde::Serialize; use utoipa::ToSchema; +use crate::transcode::Quality; + #[derive(Serialize, ToSchema)] pub struct MediaInfo { + /// The length of the media in seconds. + length: f32, container: String, - video_codec: String, + video: VideoTrack, audios: Vec, subtitles: Vec, fonts: Vec, chapters: Vec, } +#[derive(Serialize, ToSchema)] +pub struct VideoTrack { + /// The codec of this stream. + codec: String, + /// The language of this stream (as a ISO-639-2 language code) + language: String, + /// The max quality of this video track. + quality: Quality, +} + #[derive(Serialize, ToSchema)] pub struct Track { /// The index of this track on the media.