Graphrt

FFmpeg

Probe, konversi (preset format, codec dan kualitas yang tetap), potong, ekstrak audio, thumbnail, ubah ukuran, gabung, tanam subtitle dan GIF. Hanya file di folder yang diizinkan, whitelist protokol dan demuxer, hanya membuat file output baru

Stabil v0.1.0 Node.js 9 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk file media lokal dengan ffmpeg/ffprobe sistem. Workflow dan agent bisa memeriksa, mengonversi, memotong, menggabung dan merender file video dan audio di folder yang kamu izinkan, dan setiap hasil adalah file baru di satu folder output. Tool memilih dari menu format, codec dan tingkat kualitas yang tetap, tidak pernah mengirim opsi ffmpeg mentah.

Yang bisa dilakukan

  • probe: container, duration, size, bit rate and streams (codec, resolution, frame rate, rotation, sample rate, channels, language), include_raw adds ffprobe's JSON.
  • transcode: mp4, mov, mkv, webm, mp3, m4a, wav, flac, ogg or opus, with an allowed codec per format (h264, h265, vp9, av1, aac, mp3, opus, vorbis, flac, pcm) and quality low/medium/high. Workflow nodes may add allowlisted output options with extra_args.
  • trim: start with end or duration (seconds or HH:MM:SS.fff), frame-accurate re-encode, or a fast stream copy with accurate: false.
  • extract_audio: the first audio track as mp3, m4a, wav, flac, ogg or opus.
  • thumbnail: one frame at time as jpg, png or webp, optionally scaled to target_width.
  • resize: target_width and/or target_height (16–7680), aspect kept.
  • concatenate: 2–50 files in order, by stream copy (all parts must share codecs and sizes) or reencode: true.
  • burn_subtitles: draws the cues of an .srt file into the picture, with an optional font_size.

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • Probe a media file ffmpeg.probe
  • Convert a media file ffmpeg.transcode
  • Extract the audio track ffmpeg.extract_audio
  • Resize a video ffmpeg.resize
  • Cut a section ffmpeg.trim
  • Join media files ffmpeg.concatenate
  • Burn in subtitles ffmpeg.burn_subtitles
  • Grab a frame ffmpeg.thumbnail
  • Make a GIF ffmpeg.make_gif

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • FFMPEG_INPUT_DIRS (required)
    Comma-separated directories (absolute or ~/...) that input files may be read from, subdirectories included
  • FFMPEG_OUTPUT_DIR (none)
    Existing directory for outputs. Without it only probe works, the rest return setup_required. Outputs can be read back as inputs.
  • FFMPEG_MAX_INPUT_BYTES 2 GiB
    Largest input file
  • FFMPEG_MAX_OUTPUT_BYTES 2 GiB
    Largest output (ffmpeg's -fs), an output that reaches it is removed and the call fails
  • FFMPEG_TIMEOUT_MS 600000
    Per ffmpeg/ffprobe run (1000 to 1780000), the process is killed when it passes
  • FFMPEG_MAX_INPUT_PIXELS 33177600 (8K)
    Most pixels (width × height) of any video stream an operation decodes, also passed as -max_pixels
  • FFMPEG_MAX_INPUT_SECONDS 3600
    Longest input (or concatenation) an agent tool call may process, nodes are not limited
  • FFMPEG_THREADS 4
    Decoder, encoder and filter threads per run (1 to 64)
  • FFMPEG_BINARY Ffmpeg, ffprobe on PATH
    Absolute paths to the programs
  • FFPROBE_BINARY

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari FFmpeg.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install ffmpeg
workflow.yaml
- id: ffmpeg
  type: ffmpeg.probe
Plugin di docs