mixing.transcript.media¶
ffmpeg-backed audio extraction and timeline-cut application.
These functions shell out to ffmpeg (which must be on PATH); they
have no Python dependencies beyond the stdlib.
Functions
|
Re-encode |
|
Extract a mono mp3 from |
- mixing.transcript.media.apply_keeps(input_path, output_path, keeps, *, video_codec='libx264', audio_codec='aac', crf=20, preset='medium', audio_bitrate='160k', faststart=True, overwrite=True)[source]¶
Re-encode
input_pathkeeping only the listed time ranges.- Parameters:
output_path (
Union[str,Path]) – Output file (extension picks the container).keeps (
Sequence[dict]) –[{"start": float, "end": float}, ...]time ranges in seconds.audio_bitrate (
str) – Re-encode knobs forwarded to ffmpeg.faststart (
bool) – Add-movflags +faststart(mp4 web-streaming).overwrite (
bool) – Pass-yto ffmpeg.
- Return type:
- Returns:
The output path.