Media Commands¶
FFmpeg Auto-Resolution¶
Max automatically resolves FFmpeg using a 3-tier strategy:
1. Check system PATH (shutil.which)
2. Check ~/.max_cli/bin/ for previously downloaded binary
3. Auto-download platform-specific binary with user confirmation
No manual FFmpeg installation is required. To manually install:
compress¶
Compress video files.
extract-audio¶
Extract audio from video.
convert¶
Convert video format.
trim¶
Trim video to specified duration.
concat¶
Concatenate multiple videos.
video-to-gif¶
Convert video to animated GIF.
denoise¶
Remove background noise from video/audio (hiss, hum, fan, ambient room noise).
Options:
- --mode, -m - Denoise mode: auto (general), hiss (constant hiss), hum (low rumble), speech (RNNoise, best for voice) (default: auto)
- --strength, -s - Denoising strength: mild, medium, aggressive (auto mode only, default: medium)
- --output, -o - Output file (default: {stem}_denoised{ext})
- --queue, -q - Add to background queue
Examples:
# Auto-denoise (anlmdn filter, medium strength)
max video denoise recording.mp4
# Remove constant microphone hiss
max video denoise podcast.mp4 --mode hiss
# Cut low-frequency rumble (AC, traffic)
max video denoise lecture.mp4 --mode hum
# BEST for speech/podcasts (RNNoise neural network)
max video denoise recording.mp4 --mode speech
# Aggressive denoising for very noisy audio
max video denoise noisy.mp4 --strength aggressive
# Process in background queue
max video denoise long_clip.mp4 --queue
Note:
automode uses FFmpeg'sanlmdnfilter (CPU-heavy). For faster results, try--mode hissor--mode hum. Video stream is copied (-c:v copy), only audio is re-encoded.
brightness¶
Adjust video brightness.
color¶
Apply color preset to video.
Presets: vivid, vintage, noir, warm, cool, fade