Skip to content
المشاريع

حول

Desktop node editor for ffmpeg: wire inputs, filters, encoders and outputs into one ffmpeg command

التصميم والوسائط

كيف تُقاس هذه الأرقام

57 نجمة4 التفرعات +1 خلال 24 ساعة

ما يمكنك فعله

  • Image sequences: pick one numbered image (e.g. shot_1001.exr) and choose "Use sequence". The pattern (shot_%04d.exr), first and last frame and any missing frames are found in its folder. Frame rate, start number, pattern type and loop are set on the Input and also passed to ffprobe.
  • EXR layers: for a multi-layer EXR, pick the layer to read (e.g. diffuse, specular) from the list of layers in the file.
  • Rules: languages in order of preference (e.g. eng, ger), min. channels, a preferred layout (stereo, 5.1, 7.1), skip commentary, forced and SDH subtitles, skip titles matching a pattern, and "best" / "2nd best" ….
  • Best match: language order first, then resolution for video; for audio the channel layout, then codec (lossless > DTS > E-AC-3 > AC-3 > others) and bitrate; for subtitles the default flag and text before image subtitles. The Inspector lists the matching streams in this order and marks the one picked.

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل
ffmpegnodes

ffmpegnodes

A desktop node editor for ffmpeg!

Wire up inputs, filters, encoders and outputs, and ffmpegnodes builds a single ffmpeg command from the graph, checks it for problems, and runs it with live progress.

  • Multiple inputs and outputs, stream copy, per-stream language, title and disposition
  • Stream Selectors: pick streams by rule (language, channels, forced/SDH …), so one graph works for many source files; one selector can pick several streams and repeat its chain for each
  • Batch: run one graph over many files or patterns like X:\videos\*.mkv, spread over several NVIDIA GPUs
  • 500+ filter nodes: a curated set with friendly settings, plus every filter in your ffmpeg build
  • Encoder presets: x264, x265, SVT-AV1, VP9, ProRes and NVIDIA NVENC (H.264, HEVC, AV1); AAC, Opus, MP3, AC-3/E-AC-3, FLAC, ALAC and PCM
  • One parameters node can feed many encoders, e.g. five audio tracks with the same settings
  • GPU pipeline: CUDA decode, GPU filters and NVENC encode, keeping frames on the GPU
  • ? help for every filter, encoder and option, from the official ffmpeg docs (works offline)
  • Checks before running: formats along each wire, container compatibility, one-click fixes
  • Automatic letterbox detection and crop
  • HDR10+ node: measures the video and adds HDR10+ dynamic metadata to HEVC or AV1, on the CPU or with NVENC
  • Preview nodes: see one frame at any point of the graph, with zoom and pan
  • Wizard that builds a complete recode graph in four steps
  • Live command preview, copyable for PowerShell or other shells
  • Parallel jobs, each with progress, speed, time left and GPU/CPU per stage
  • Quick-add, duplicate, save/load with autosave
  • Installers for Windows, macOS and Linux, with in-app updates
  • Built with Tauri 2 (Rust) and React

♥️ Support this project: https://ko-fi.com/chrispzone ♥️

GUI Demo
Main Screen & Node Tree
GUI Demo
Preview Nodes
GUI Demo
Preview Viewer
(Big Buck Bunny (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org)
GUI Demo
Multiple Parallel Jobs

Concepts

Pad Shape Meaning
frames round Decoded media. Filters take frames in and put frames out; encoders take them in.
packets diamond, plus a ⬡ icon on the Input Encoded media. Encoders put packets out and the Output takes them in. Wiring an Input's packet pad straight to the Output is a stream copy (-c copy).
parameters small upright rectangle Encoder settings, sent from an Encoder Parameters node into the top pad of one or more encoders.
streams dotted wire All streams of an Input, sent from its streams pad into Stream Selectors.
  • Colours: video is yellow, audio is red and subtitles are blue. Parameter pads and wires use a darker shade of their media colour.
  • Connections: a connection is only allowed when the domain and the media type match.

Features

  • Nodes

    • Input file: probed with ffprobe. It has one frames pad and one packets pad per stream, labelled with codec, size or channels, and language.
      • Image sequences: pick one numbered image (e.g. shot_1001.exr) and choose "Use sequence". The pattern (shot_%04d.exr), first and last frame and any missing frames are found in its folder. Frame rate, start number, pattern type and loop are set on the Input and also passed to ffprobe.
      • EXR layers: for a multi-layer EXR, pick the layer to read (e.g. diffuse, specular) from the list of layers in the file.
    • Stream Selectors (video / audio / subtitle): pick a stream of an Input by rule instead of by its number, so a graph keeps working when you swap the source file. Wire the Input's streams pad into a selector and use its frames or packets pad like an Input stream.
      • Rules: languages in order of preference (e.g. eng, ger), min. channels, a preferred layout (stereo, 5.1, 7.1), skip commentary, forced and SDH subtitles, skip titles matching a pattern, and "best" / "2nd best" ….
      • Best match: language order first, then resolution for video; for audio the channel layout, then codec (lossless > DTS > E-AC-3 > AC-3 > others) and bitrate; for subtitles the default flag and text before image subtitles. The Inspector lists the matching streams in this order and marks the one picked.
      • Several streams: Take picks one stream, the best one per language, or all matches (with an optional maximum). Everything the selector feeds is then repeated for each stream, and the Output gets a slot per stream. Draw it once, e.g. selector → downmix → AAC → Output, and a file with English, German and Spanish audio gets three AAC streams. The selector and the repeated nodes show ×N. A repeated chain can't take a second stream from outside.
      • No match: a required selector shows an error. Otherwise the stream and the nodes that only it feeds are left out of the command and dimmed.
      • Use selectors: right-click an Input to put every wired stream behind a selector. Video and subtitle selectors pick the same stream. Audio selectors ask for the layout you encode to: a 5.1 or bigger stream becomes "min. 6 channels, prefer 5.1", so an existing 5.1 in the same language is picked over a 7.1.4.
    • Filters:
      • A curated set with friendly settings: scale, crop, deinterlace, denoise, loudness, downmix, and more.
      • Every other filter in your ffmpeg build, under "All ffmpeg filters". Their options are read from ffmpeg -h filter=….
      • Help: the ? next to a filter or option opens the matching part of the official ffmpeg filter docs: what it does, accepted values, expression variables and examples. For "All ffmpeg filters" it also shows the type, default and range your ffmpeg reports. The docs are bundled, so this works offline.
    • Help on Input and Encoder Parameters: the ? next to an encoder or setting shows the ffmpeg docs for it: the encoder's own options (e.g. libx264 crf, nvenc cq), generic codec options (b, maxrate, threads), ffmpeg options (-ss, -hwaccel, -r) and image sequence options (-framerate, -start_number).
    • Remove letterbox: detects black bars at the top and bottom of the video and crops them away. It detects by itself when first connected and again when the Input's file changes.
    • Video / Audio / Subtitle Encoder Parameters: codec and all its options in one node. One node can feed any number of encoders, e.g. five audio tracks with the same AAC settings. Each new encoder gets its own connected parameters node.
    • Encoders: take their settings from a parameters node. Without one they show an error, and their stream is left out of the command.
    • Output file: container, stream order, per-stream language, title and disposition.
      • Automatic name (on for new Outputs): the file is named after the Input of the first stream: folder (default: the Input's), prefix, Input name, suffix (default " recode") and extension (default: mkv with video, else the Input's). W:\videos\movie.mp4 with folder C:\clips\, prefix FHD , suffix 5-1 and .mkv gives C:\clips\FHD movie 5-1.mkv. Turn it off to type a fixed path. With Stream Selectors this lets one graph recode any file.
      • Overwrite (on by default): replace the file when it exists. Turn it off and a run asks first, and a batch skips files whose output exists.
      • Enabled switch (on the node and in the Inspector): a disabled Output is left out of the command, together with the nodes that only feed it, which are dimmed. Handy for a quick test Output next to the real ones.
      • Image sequences: name the output like frames_%05d.png (or .tif, .dpx, .exr, .jpg) and pick the matching encoder under "Image sequences": 16-bit PNG/TIFF, 10-bit DPX, float EXR or JPEG. Set the first frame number, or write a single image. 10-bit video stays 10-bit unless you choose an 8-bit format, and the Problems list says so.
    • HDR10+: adds HDR10+ dynamic metadata (SMPTE 2094-40) to an HEVC or AV1 stream from any encoder (x265, SVT-AV1, NVENC …) or a stream copy. Right-click a video encoder → Add HDR10+ puts it between the encoder and the Output.
      • The job measures the frames on its frames pad (normally the encoder's input) while it encodes: maxRGB percentiles, peaks and averages per scene or per frame. Black bars are found and left out first. You can also use an existing HDR10+ JSON (hdr10plus_tool, DaVinci Resolve).
      • Then it writes the metadata into every frame and the final file. Audio, subtitles, chapters and timestamps are kept. No extra tools are needed.
      • The measured JSON can be kept next to the output.
    • Batch: in the Input's Batch section, add files or patterns (C:\videos\*.mkv, ** for subfolders), then press ▶ Run batch. Every file goes through the same graph, one after the other.
      • The Input's own path is the file you edit and preview. ◀ ▶ in the Batch section shows another file of the list, to check what the selectors pick there.
      • Before a file is encoded, it is probed and its letterbox bars, image sequence range and EXR layer are read again, like in the editor. The next file is prepared while the current one encodes.
      • The Outputs fed by the batch Input need automatic names. Put the Input's streams behind Stream Selectors (right-click → Use selectors): direct wires name a stream number, and a file without that stream fails.
      • A file fails on its own (no matching stream, two files writing the same output …); the others still run. An Output with Overwrite off skips files whose output already exists.
      • GPU lanes: a graph that runs on one NVIDIA GPU runs on every GPU at the same time, each taking the next file, so 10 files on 2 GPUs finish in about half the time. Settings → Batch sets the files at the same time per GPU and turns this off.
      • The batch popup lists each file with its state, output and GPU. Click a file for its job.
    • Preview: wire any video frames pad into it to see one frame of the graph at that point. ffmpeg renders just the nodes upstream of it. Click the thumbnail for a viewer with wheel zoom, drag to pan, and Fit / 50% / 1× / 2× / 4× (1× is one image pixel per screen pixel). Set the time in the Inspector, e.g. 00:03:45 or 55. It re-renders shortly after the graph changes; switch that off for heavy graphs. Previews are not part of the command.
  • Codecs: libx264/libx265, SVT-AV1 (AV1 on the CPU), VP9 (libvpx) and ProRes (prores_ks); NVIDIA NVENC (H.264, HEVC, AV1) with GPU selection; AAC, libfdk_aac, Opus, MP3, AC-3, E-AC-3, FLAC, ALAC and PCM (16/24-bit, 32-bit float); mov_text, srt, ass and WebVTT; plus stream copy.

  • GPU pipeline: CUDA decoding, Scale (CUDA), then nvenc. Frames stay on the GPU whenever every step can use them.

  • Checks before running:

    • Formats such as size, pixel format and sample rate are worked out along each wire.
    • Problems appear in the Problems tab.
    • One-click fixes, e.g. "Use yuv420p10le" or "Decode with cuda". Fixes for encoder settings change the parameters node.
  • Recode wizard (Wizard… in the toolbar):

    1. Pick the input file and the output file.
    2. Choose video streams, filters, codec and GPU.
    3. Choose audio streams, filters and codec.
    4. Choose subtitle streams.

    The stream lists have All / None / Invert. Reusable on each step puts the streams behind Stream Selectors, so the graph also works with other files; reusable audio uses one selector that takes the best stream per ticked language through one chain, and reusable subtitles use one selector that copies every subtitle stream like the ticked ones. The wizard remembers this choice. It then builds the complete, wired graph in tidy columns: Input → (selectors →) filters → parameters → encoders → Output.

  • Editing:

    • Quick-add: press Tab or double-click the canvas, or drop a wire on empty space to add a node that is already connected.
    • Duplicate: Ctrl+D copies the selected nodes with their settings. Ctrl+Shift+D also copies their incoming wires.
    • Preview hotkey: P adds a Preview above each selected node, wired to its first video output.
    • Projects: save and open as .ffmpegnodes.json, with autosave.
    • Windows: "New window" (Ctrl+Shift+N) opens another window with its own graph, and jobs can run in each. An extra window keeps its graph until it is closed; after a restart, only the main window's graph comes back.
  • Run: a live command preview, copyable for PowerShell or other shells; progress, speed and cancel. Each job's popup has a Commands tab with every ffmpeg command it really ran (including the HDR10+ steps), ready to copy.

  • Updates: at start the app checks for a newer release and offers "Update and restart". Settings has "Check for updates". On Linux this works for the AppImage; with the .deb or .rpm, download the new version from GitHub.

♥️ Support this project: https://ko-fi.com/chrispzone ♥️


Dev Prerequisites

  • Node 20+ and pnpm.
  • Rust (https://rustup.rs). On Windows you also need the MSVC build tools and WebView2; see https://tauri.app/start/prerequisites/.
  • ffmpeg and ffprobe: Set their paths in the app's ⚙ Settings. NVENC and CUDA features need an NVIDIA GPU and an ffmpeg build that includes them. Tip: Use static builds!

Run

Install the dependencies:

pnpm install

Start the desktop app:

pnpm tauri dev

UI only, in a browser. Here ffprobe, ffmpeg and letterbox detection are mocked:

pnpm dev

Test

pnpm typecheck
pnpm test

End-to-end runs against a real ffmpeg are opt-in. They need ffmpeg / ffprobe with libx265 on PATH, and the second variable adds the NVENC/CUDA runs:

FFMPEG_E2E=1 FFMPEG_E2E_NVENC=1 pnpm test

The Rust side (process handling, letterbox detection, HDR10+ analysis and inject):

cd src-tauri && cargo test

FFMPEG_E2E=1 also runs the Rust HDR10+ round trips through real encoders (libx265, libsvtav1). FFMPEG_E2E_NVENC=1 adds hevc_nvenc, and FFMPEG_E2E_AV1_NVENC=1 adds av1_nvenc (RTX 40 or newer).

Layout

Path What
src/serializer/ graph → ffmpeg argv: filtergraph building, split insertion, chain joining, escaping, shell quoting
src/validation/ connection rules, format negotiation along wires, codec/container compatibility, diagnostics and quick fixes
src/model/ shared types; encoder-parameter resolution, stream selectors, GPU residency, letterbox helpers
src/nodes/defs/ pads per node, curated filter definitions, encoder schemas, generic filters from ffmpeg -h
src/docs/ ffmpeg docs for the help popups: parser for FFmpeg's texinfo docs, the bundled filterDocs.json and optionDocs.json, and lookups
scripts/ gen-docs.ts (regenerates the bundled docs), release-prep.mjs, check-filter-docs.mjs
src/nodes/ui/, src/inspector/, src/ui/ React Flow nodes, Inspector panel, canvas, palette, quick-add, dock, toolbar
src/wizard/ recode wizard: dialog and graph builder with column layout
src/batch/ batch runs: per-file preparation (probe, bars, sequence, EXR layer), GPU lanes, the queue
src/store/ zustand store, duplicate, project files, autosave
src/ipc/ typed Tauri bridge and the browser mock
src-tauri/src/ffmpeg.rs runs ffprobe/ffmpeg (argument lists only, never a shell), streams -progress, cancel, GPU list, filter help, folder listing
src-tauri/src/batch.rs expands batch lists (* / ? / ** patterns), checks for existing outputs
src-tauri/src/letterbox.rs black-bar detection on sampled frames
src-tauri/src/preview.rs renders one Preview frame to memory (PNG on stdout), cancellable per node
src-tauri/src/hdr10plus/ HDR10+: frame statistics and scenes, black bars, JSON, metadata inject into MP4 samples (HEVC SEI / AV1 OBU)

Contributing

Bug reports, ideas and pull requests are welcome; see CONTRIBUTING.md. Report security problems privately, see SECURITY.md.

License

MIT, see LICENSE. The bundled ffmpeg docs (src/docs/*.json) are text from FFmpeg's documentation and stay under FFmpeg's LGPL-2.1-or-later; see THIRD_PARTY_NOTICES.md.

Disclaimer

ffmpegnodes is provided "as is", without warranty of any kind. You use it at your own risk. The author is not liable for any damage or data loss it causes, including overwritten, corrupted or lost files. Keep backups of important files, and check the command before you run it.

Trademark

Not affiliated with or endorsed by the FFmpeg project. FFmpeg is a trademark of Fabrice Bellard.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…