Skip to content

CLI Reference

medix

The only command. Convert one file or a whole directory of media files.

Synopsis

medix [OPTIONS] PATH

Argument

ArgumentDescription
PATHA single media file or a directory. Required.

Options

FlagShortTypeDefaultDescription
--output-opath<input>/converted/Output directory. Created if it doesn’t exist.
--recursive-rflagfalseRecurse into subdirectories when PATH is a directory.
--dry-run-nflagfalseShow the conversion plan and sample ffmpeg command without writing files.
--versionflagPrint Medix version and exit.
--help-hflagPrint help and exit.

Examples

Terminal window
medix video.mp4
medix ~/Videos/
medix ~/Videos/ -r
medix ~/Videos/ -o ~/Converted/
medix ~/Videos/ --dry-run
medix ~/Videos/ -r -o ~/Converted/ -n
medix --version

Module invocation

Medix can also be invoked as a Python module:

Terminal window
python -m medix [OPTIONS] PATH

Functionally identical to medix.

Interactive prompts

When not in --help / --version mode, Medix shows a series of prompts:

PromptShown when
Install FFmpeg?FFmpeg / ffprobe not found
Which source formats?Multiple input formats discovered
Which output format?Always
Configure advanced settings?Always
(advanced) Video codec”Yes” to advanced
(advanced) Audio codec”Yes” to advanced
(advanced) Resolution”Yes” to advanced
(advanced) Frame rate”Yes” to advanced
(advanced) Preset”Yes” to advanced + H.264/H.265 codec
(advanced) CRF”Yes” to advanced + H.264/H.265 codec
(advanced) Audio bitrate”Yes” to advanced
Confirm planAlways

Defaults by output format

FormatVideoAudio
MP4H.264 (libx264)AAC
MKVH.264 (libx264)AAC
WebMVP9 (libvpx-vp9)Opus
MOVH.264 (libx264)AAC
AVIH.264 (libx264)MP3
TSH.264 (libx264)AAC

Every default can be overridden via advanced settings.