V0.6.0 · PURE RUST · ZERO FFMPEG
The complete media processing toolkit — encode, transcode, filter, watermark, encrypt, stream, broadcast — all in one memory-safe binary. Auto-detects GPU hardware. 34 commands, 57 codec support rules, 10 streaming protocols.
ms is a pure-Rust media processing binary that replaces FFmpeg with a single, memory-safe, dependency-free executable. It auto-detects GPU hardware (Apple Silicon, NVIDIA, Intel Arc, AMD), supports modern codecs (AV1, AV2, VVC, Opus, FLAC), and includes built-in DRM encryption, pay-per-view token gating, HLS segmentation, broadcast IP protocols, and a security scanner that detects malicious payloads hidden in media files.
Zero CVEs from buffer overflows. Rust's ownership model guarantees safety at compile time.
No dynamic linking, no dependency hell. Copy and run on any platform.
Finds Apple VideoToolbox, NVIDIA NVENC, Intel QSV, AMD VCN automatically.
Scans for malicious payloads, polyglot files, PHP disguises, metadata exploits.
HLS, MoQ/QUIC, WHIP/WHEP, NMOS IS-04/IS-05, SMPTE ST 2110, IPMX.
AES-128-CTR encryption, HMAC-signed tokens, self-destructing pay-per-view.
34 commands. 38 filters. 57 codec rules. One binary.
Encode any video to AV1 MP4 with built-in filters. Chunked processing for large files. rav1e encoder — pure Rust.
ms encode movie.mp4 output.av1 --chunk-size 30
Crop, scale, rotate, trim, speed, concatenate, picture-in-picture overlay.
ms video in.mp4 crop out.mp4 0 0 640 480
Decode, resample, normalize, fade, speed, pitch shift. Opus encode. AAC multichannel via fdk-aac-rust.
ms audio song.mp3 decode song.wav
Resize, crop, rotate, flip, thumbnail. JPEG, PNG, WebP, BMP, TIFF, GIF.
ms image photo.jpg resize 1920 1080 out.jpg
Mux separate audio+video into MP4. Demux to extract raw streams. No re-encoding.
ms mux out.mp4 -v video.h264 -a audio.wav
PHP disguises, polyglot files, embedded scripts, ID3 bombs, EXIF injection, MP4 atom overflow, MKV EBML recursion.
ms validate suspect.mp4
Strip all metadata, hidden atoms, ID3 tags, EXIF data. Keeps only essential streams.
ms sanitize infected.mp4 clean.mp4
Encrypt/decrypt media. Key files generated alongside. HMAC-SHA256 token signing for PPV.
ms drm movie.mkv enc.mkv --action encrypt
Self-destructing video packages. Max views, expiry, token verification.
ms ppv-create movie.mkv pkg.mkv --max-views 5
Generate HLS playlists with TS/fMP4 segments. CMAF segments with MoQ/QUIC transport. WHIP/WHEP WebRTC ingest/egress.
ms streaming hls input.mp4 hls/ --segment-duration 4
NMOS IS-04/IS-05, SMPTE ST 2110, IPMX device integration.
ms broadcast nmos --registry http://reg.local
Chain operations with JSON pipelines. Auto context passing. Fork/join.
ms pipeline in.mp4 --steps '[...]'
Apple M1-M4, NVIDIA NVENC/NVDEC, Intel Arc/QSV, AMD VCN — automatic.
ms hw
47 rules, 31 formats. Identifies files by header bytes regardless of extension.
ms magic
System info, hardware detection, codec registry, file probe, memory status.
ms debug movie.mp4 --text
Unix socket IPC, sequential processing, daemon mode.
ms queue start --daemon
Why the industry standard isn't enough anymore.
| Feature | FFmpeg | ms |
|---|---|---|
| Written in | C | Rust |
| Memory safety | Manual | Compile-time guaranteed |
| Single binary | Dynamic linking hell | One executable |
| GPU detection | Manual compile flags | Automatic at runtime |
| Built-in security scanner | No | Yes — 7 payload types |
| DRM encryption | AES (complex setup) | AES-128-CTR + HMAC tokens |
| Pay-per-view | No | Built-in |
| AV1 encode | libdav1d (decode only) | rav1e — pure Rust |
| MoQ/QUIC | No | Built-in relay + publisher |
| SMPTE ST 2110 | No | Built-in |
| License | GPL/LGPL | MIT |
git clone https://github.com/youruser/mediastream-framework.git
cd mediastream-framework
cargo build --release
cp target/release/ms /usr/local/bin/ms
ms --version
ms hw
cd demo-site
docker compose up -d
# Access at https://localhost:8443
docker run --rm -it \
-v ./demos/input:/data \
mediastream-engine ms probe /data/movie.mp4
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/youruser/mediastream-framework.git
cd mediastream-framework
cargo build --release
sudo cp target/release/ms /usr/local/bin/
ms probe movie.mp4 # Inspect a file
ms hw # Check GPU hardware
ms encode in.mp4 out.av1 # Encode to AV1
ms validate suspect.mp4 # Security scan
ms debug --text # Full diagnostic
Click any command to see details and examples.
Powered by the ms engine API — probe, validate, and play media files with full metadata.
Upload a media file (max 30 seconds), choose an operation, and watch results stream in real time.
Interactive API explorer. Click any endpoint to try it live.
Probe a media file. Returns format, duration, resolution, codecs.
Auto-detect GPU hardware. Apple Silicon, NVIDIA, Intel, AMD.
List all supported codecs (29 general + 19 audio).
List all 38 video filters by category.
Show compiled decode/encode backends and their status.
Security scan — detect malicious payloads in media files.
Full diagnostic dump — system, hardware, codecs, memory.
Magic bytes identification table (47 rules, 31 formats).
// Response will appear here
HLS segmentation with TS packets. Generate playlists and segments from any video file.
Interactive demos with live playback, real-time stats, and protocol comparison.
Three interchangeable decode/encode backends, selectable at runtime.
ms encode in.mp4 out.av1
ms --use oxideav encode in.mp4 out.av1
ms --use rff encode in.mp4 out.av1