Expand description
Frame-push live DASH output.
LiveDashOutput receives pre-decoded ff_format::VideoFrame / ff_format::AudioFrame values
from the caller, encodes them with H.264/AAC, and muxes them into a DASH
manifest (manifest.mpd) backed by .m4s segment files.
§Example
ⓘ
use ff_stream::{LiveDashOutput, StreamOutput};
use std::time::Duration;
let mut out = LiveDashOutput::new("/var/www/live")
.video(1280, 720, 30.0)
.audio(48000, 2)
.segment_duration(Duration::from_secs(4))
.build()?;
// for each decoded frame:
out.push_video(&video_frame)?;
out.push_audio(&audio_frame)?;
// when done:
Box::new(out).finish()?;Structs§
- Live
Dash Output - Live DASH output: receives frames and writes a
manifest.mpdplaylist.