Skip to content

CLI Usage

Medix exposes a single command: medix.

Synopsis

medix [OPTIONS] PATH

PATH can be a single media file or a directory.

Options

FlagShortDescription
--output PATH-oOutput directory. Default: <input>/converted/
--recursive-rRecurse into subdirectories
--dry-run-nShow what would happen without converting
--versionPrint version and exit
--help-hShow help and exit

Examples

Single file

Terminal window
medix video.mp4

Directory (non-recursive)

Terminal window
medix ~/Videos/

Only scans files directly under ~/Videos/.

Directory (recursive)

Terminal window
medix ~/Videos/ -r

Scans every subdirectory too.

Custom output directory

Terminal window
medix ~/Videos/ -o ~/Converted/

If the directory doesn’t exist, Medix creates it.

Dry run

Terminal window
medix ~/Videos/ --dry-run

Shows the mapping of inputs → outputs and the ffmpeg command that would be executed. No files are written. See Dry Run Mode.

Module invocation

Medix can also be invoked as a Python module, useful in environments where PATH shimming isn’t available:

Terminal window
python -m medix /path/to/videos/

Output path rules

ScenarioOutput location
File input, no -o<file_parent>/converted/
Directory input, no -o<input>/converted/
Any input with -o <dir><dir>/

Filename collisions are resolved by appending an incrementing counter, so existing files are never overwritten.

Exit behaviour

Medix prints a final summary table showing successful and failed files. Any failures include the ffmpeg error output so you can diagnose issues.