Skip to content

Format Conversion

Converting a file between formats or containers — for example MP4 to MKV, or WAV to MP3 — is one of the most common FFmpeg tasks. ffmpeg-studio wraps this in a simple export call, so you don't need to hand-write the FFmpeg command.

Example

example/format_conversion.py
"""
Example Convert Input from one format to another without any filter
"""

from ffmpeg import InputFile, export


export(
    InputFile(r"video.mp4"),
    path="out.mkv",
).run()