feat: cleanup stream on end

fix: audio codecs
fix: hls segmenter
This commit is contained in:
2024-11-21 22:08:47 +00:00
parent f192a915e0
commit 9937f9a6f9
16 changed files with 131 additions and 54 deletions

View File

@ -82,6 +82,9 @@ pub trait Overseer: Send + Sync {
height: usize,
path: &PathBuf,
) -> Result<()>;
/// Stream is finished
async fn on_end(&self, pipeline_id: &Uuid) -> Result<()>;
}
impl Settings {
@ -171,10 +174,10 @@ pub(crate) fn get_default_variants(info: &IngressInfo) -> Result<Vec<VariantStre
group_id: 1,
},
bitrate: 192_000,
codec: "libfdk_aac".to_string(),
codec: "aac".to_string(),
channels: 2,
sample_rate: 48_000,
sample_fmt: "s16".to_owned(),
sample_fmt: "fltp".to_owned(),
}));
}
@ -231,4 +234,10 @@ impl Overseer for StaticOverseer {
// nothing to do here
Ok(())
}
async fn on_end(&self, pipeline_id: &Uuid) -> Result<()> {
// nothing to do here
Ok(())
}
}