Expand description
Audio transcoding (re-encoding between formats).
This module provides Transcoder for re-encoding audio from one
codec/format to another. Unlike Remuxer which
copies packets verbatim, the transcoder decodes and re-encodes the
audio stream, allowing codec changes (e.g. AAC → MP3).
Video and subtitle streams are not included in the output.
§Example
use unbundle::{AudioFormat, MediaFile, Transcoder, UnbundleError};
let mut unbundler = MediaFile::open("input.mp4")?;
Transcoder::new(&mut unbundler)
.format(AudioFormat::Mp3)
.run("output.mp3")?;Structs§
- Transcoder
- Builder for audio transcoding operations.