Expand description
Frame-push SRT output.
SrtOutput receives pre-decoded ff_format::VideoFrame / ff_format::AudioFrame values
from the caller, encodes them with H.264/AAC, and pushes the MPEG-TS
stream to an SRT destination using FFmpeg’s built-in SRT support.
This module is only available when the srt feature flag is enabled.
§Example
ⓘ
use ff_stream::{SrtOutput, StreamOutput};
let mut out = SrtOutput::new("srt://192.168.1.100:9000")
.video(1920, 1080, 30.0)
.audio(44100, 2)
.video_bitrate(4_000_000)
.audio_bitrate(128_000)
.build()?;
// for each decoded frame:
out.push_video(&video_frame)?;
out.push_audio(&audio_frame)?;
// when done:
Box::new(out).finish()?;Structs§
- SrtOutput
- Live SRT output: encodes frames as MPEG-TS and pushes them to an SRT destination.