About#
reCodr is an Electron desktop application that wraps ffmpeg in a clean drag-and-drop GUI for re-encoding video files. It automatically detects available hardware encoders on startup - NVIDIA NVENC, AMD AMF, Intel QSV, and Apple VideoToolbox - and falls back to software encoding when no GPU acceleration is present. Output is always MKV to preserve all video, audio, and subtitle streams without container limitations.
The app runs ffmpeg and ffprobe as child processes from the Electron main process, keeping the renderer free for UI updates like real-time progress, ETA, and encoding speed.
Features#
- Drag & drop or file picker - supports MKV, MP4, AVI, MOV, WebM, FLV, WMV, and more
- Automatic hardware encoder detection - scans
ffmpeg -encodersoutput at startup to find available GPU encoders - Multi-encoder support - NVIDIA NVENC, AMD AMF, Intel QSV, Apple VideoToolbox, and libx264/libx265 software fallback
- Codec selection - choose between H.264 and HEVC (H.265) per encoder family
- Configurable quality and preset - encoder-aware defaults (CQ for NVENC, QP for AMF, CRF for software, bitrate for HEVC VideoToolbox)
- Multi-track audio - select individual tracks, copy or re-encode to AAC (192k), Opus (128k), or AC3 (384k)
- Multi-track subtitles - select tracks, copy or convert to SRT, ASS, or MOV Text
- Font attachment passthrough - preserves embedded fonts for styled subtitles
- Live progress tracking - frame-based percentage, FPS, speed multiplier, and ETA
- File size comparison - shows original vs. encoded size after completion
- Custom binary paths - point to specific ffmpeg/ffprobe builds if they're not on PATH
- Command preview & editing - inspect and modify the generated ffmpeg command before encoding
- Cross-platform builds - Windows (portable + NSIS), macOS (DMG + ZIP), Linux (AppImage + DEB)
Technical Highlights#
The encoder family system maps each hardware API to its codec-specific flags, since every encoder has different parameter semantics:
const encoderFamilies = {
nvenc: { hevc: "hevc_nvenc", h264: "h264_nvenc" },
amf: { hevc: "hevc_amf", h264: "h264_amf" },
qsv: { hevc: "hevc_qsv", h264: "h264_qsv" },
videotoolbox: { hevc: "hevc_videotoolbox", h264: "h264_videotoolbox" },
software: { hevc: "libx265", h264: "libx264" },
};
applyVideoEncodingArgs() branches on the encoder family to set the right quality and preset flags - NVENC uses -cq with -preset p1–p7, AMF uses -qp_i/-qp_p with speed/balanced/quality, QSV uses -global_quality, VideoToolbox H.264 uses -q:v (1–100) while HEVC requires -b:v bitrate mode, and software uses -crf with standard x264/x265 presets.
All main↔renderer IPC uses ipcMain.handle() / ipcRenderer.invoke() for request-response, with progress updates pushed via event.sender.send('encode-progress', ...) during active encodes. Power management blocks system sleep while jobs are running using powerSaveBlocker.
h264_videotoolbox but not hevc_videotoolbox, or older Intel GPUs with H.264-only QSV support.Supported audio and subtitle options
Audio re-encoding#
| Option | Codec | Bitrate | Use case |
|---|---|---|---|
| Copy | - | Original | No quality loss, fastest |
| AAC | aac | 192 kbps | Best device compatibility |
| Opus | libopus | 128 kbps | Best quality-to-size ratio |
| AC3 | ac3 | 384 kbps | Dolby Digital, surround setups |
Subtitle conversion#
| Option | Format | Notes |
|---|---|---|
| Copy | Original | Preserves styling and format |
| SRT | SubRip | Text-based subtitles only |
| ASS | Advanced SubStation | Retains positioning/styling |
| MOV Text | tx3g | MP4/MOV container compatibility |
Stack#
- Runtime: Electron 28 (Chromium + Node.js)
- Build: electron-builder (multi-platform output)
- Backend: ffmpeg / ffprobe via
child_process.spawn() - Language: Vanilla JavaScript - no frameworks, no bundler
- License: GPL-2.0
