Skip to main content

mux_audio_into_video

Function mux_audio_into_video 

Source
pub(crate) fn mux_audio_into_video(
    video_path: &Path,
    pcm: &[f32],
    format: OutputFormat,
) -> Result<()>
Available on crate feature render and non-target_family=wasm only.
Expand description

Mix and mux pcm into the finished video at video_path.

The WAV is written next to the video, merged with the video stream copied (no re-encode), and removed afterwards; the muxed result replaces the original file atomically via rename.