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
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_BYTES2 GiBLargest input file -
FFMPEG_MAX_OUTPUT_BYTES2 GiBLargest output (ffmpeg's -fs), an output that reaches it is removed and the call fails -
FFMPEG_TIMEOUT_MS600000Per ffmpeg/ffprobe run (1000 to 1780000), the process is killed when it passes -
FFMPEG_MAX_INPUT_PIXELS33177600 (8K)Most pixels (width × height) of any video stream an operation decodes, also passed as -max_pixels -
FFMPEG_MAX_INPUT_SECONDS3600Longest input (or concatenation) an agent tool call may process, nodes are not limited -
FFMPEG_THREADS4Decoder, encoder and filter threads per run (1 to 64) -
FFMPEG_BINARYFfmpeg, ffprobe on PATHAbsolute paths to the programs -
FFPROBE_BINARY
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari FFmpeg.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
$ graphrt plugin install ffmpeg - id: ffmpeg type: ffmpeg.probe