Skip to content
FlyCockpit
Skywrite/ Overview & Quick Start
Skywrite logo
SkywriteRust + FFmpegMIT

Skywrite — Overview & Quick Start

GitHub

Overview of the Skywrite Rust media CLI, its JSON-stdout contract, FFmpeg security model, installation options, and a 3-second test clip quick start.

Platforms: Linux (static musl) · macOS · requires FFmpeg 5.1+Target v1.0.0

Skywrite is a single-binary Rust CLI that gives coding agents a structured, JSON-first view of local video and audio media and a compact, layered Edit JSON format they can validate, lint, render, or export.

It shells out to your installed ffmpeg and ffprobe for decoding and encoding, embeds upstream Takumi (takumi = 2.20.0) for native HTML/JSON still graphics without a browser, and optionally calls OpenRouter or a local OpenAI-compatible server (llama-server, Ollama, LM Studio) for transcription, frame/video understanding, edit suggestions, and media generation. On-device transcription with NVIDIA Parakeet TDT 0.6B v3 runs locally inside Skywrite at zero API cost.

[!NOTE] Skywrite is an assembly editor: source selection, in points, clip order, gaps, stills, constant speeds, volume envelopes, LUTs, captions, and audio overlays. Finish complex transitions, motion titles, color grading, and effects in your NLE (Premiere Pro, Final Cut Pro, DaVinci Resolve) or an exported Hyperframes/Remotion project.

Core Capabilities

Area Commands External Runtime / API Required
Media inspection & local sampling inspect, analyze --local FFmpeg / ffprobe only
Multi-recording synchronization sync, sync apply --verify FFmpeg / ffprobe only (or saved transcripts)
Transcription & understanding transcribe, analyze, describe frames|video On-device Parakeet (free, offline), local OpenAI-compatible server, or OpenRouter
Layered editing & review schema, edit suggest|validate|import, review sheet|cuts|lint, verify FFmpeg / ffprobe (+ embedded Takumi for contact sheets)
Native render & NLE / code export edit render, edit export --to premiere|fcpxml|ffmpeg|hyperframes|remotion FFmpeg for MP4/Python; optional Hyperframes or Remotion runtime for compositions
Native still graphics image render None (embedded Takumi; optional network for --google-font)
Generation, upscaling & audio finishing generate image|video|speech|music, upscale, project, jobs, audio OpenRouter for AI generation/video upscaling; FFmpeg only for audio & upscale image
Storage & agent workspace storage, outputs, providers, defaults, skills, styles, nit Optional S3/R2 bucket for storage & outputs

JSON-Stdout Contract & Exit Codes

Every command follows a strict machine-readable contract designed for agents and scripts:

  • Single JSON document on stdout. All successful commands print exactly one JSON document to stdout. Only --help emits human-readable text.
  • Progress and errors on stderr. Status lines, advisory warnings, and failures go to stderr. Failures exit nonzero and emit a JSON error object on stderr.
  • Typed exit contract for paid generation. generate …, upscale video, and jobs resume exit 0 only when a job has completed or is still running at the provider (pending, in_progress, ready) after the bounded wait. Every other terminal or ambiguous state exits 1 with {"error": {"code": "...", "message": "...", "job": { ... }}} on stderr, where code is one of:
    • not_sent — connection failed before any request byte was sent; nothing was billed, and rerunning the command is safe.
    • job_not_submitted — jobs resume called on an ordinary prepared job (rerun the generate command instead).
    • job_uncertain — network reset, timeout after connecting, or unreadable reply; Skywrite never submits an automatic second paid request.
    • job_received — the provider replied, but the saved artifact failed local decode validation; retained without publishing or resubmitting.
    • job_rejected / job_failed — definitive provider rejection or failure; retrying requires an intentional new --take.

FFmpeg Security Model & Non-Destructive Outputs

Skywrite decodes media with your system FFmpeg and enforces strict input/output boundaries:

  • No FFmpeg network access. All media decoding restricts FFmpeg to local files and pipes via -protocol_whitelist file,pipe, preventing FFmpeg from opening remote URLs embedded inside media containers.
  • Playlist and manifest rejection. Multi-file reference formats—including HLS, DASH, IMF, and ffconcat—are rejected as sources. ffprobe inspects inputs under a format whitelist so rejected formats are stopped before reading referenced file paths.
  • Keep FFmpeg patched. Because Skywrite passes untrusted media containers to your system FFmpeg, run the latest point release of a maintained FFmpeg branch.
  • Non-destructive output protection. Existing output files are never overwritten without --overwrite. Consumed inputs—source media, edit JSON, LUTs, captions, transcripts, and analysis files—can never be used as output destinations, even when --overwrite is supplied. Outputs are written to private temporary files and published atomically.
  • Edit and XML trust boundary. Edit JSON files, Premiere XML, and .prproj files act like scripts: they choose which local files Skywrite reads, renders, and copies. Every edit render and edit export response includes an external_sources array listing every canonical path resolved outside the edit file’s directory. Symlinked and special files (FIFOs, devices, sockets, directories) are refused as media, LUT, caption, or transcript sources.

Prerequisites

  • OS: Linux (x86_64, aarch64) or macOS (arm64, x86_64).
  • FFmpeg 5.1 or newer with ffprobe on your PATH. The full test suite passes on FFmpeg 5.1.2, 6.1.1, 7.0.2, 7.1, 7.1.1, 8.0.1, 8.1.2, and 9.1.
    • Required for native MP4 rendering: H.264 (libx264) and AAC encoders.
    • Required for burned-in captions (mode: "burn"): subtitles filter (libass).
    • Recommended for pitch-preserving speed changes: rubberband filter.
  • Debian / Ubuntu:
    sudo apt-get install ffmpeg
  • macOS (Homebrew): The default ffmpeg formula omits libass and rubberband. Install the keg-only ffmpeg-full formula and put it first on your PATH:
    brew install ffmpeg-full
    export PATH="$(brew --prefix ffmpeg-full)/bin:$PATH"

No Python or Node.js runtime is required for inspection, synchronization, FCPXML/Premiere export, Takumi graphics, or native MP4 rendering.

Installation

Option 1: Prebuilt Binaries (Target v1.0.0)

Prebuilt release archives will be published on GitHub Releases (FlyCockpit/skywrite) starting with v1.0.0 for Linux static musl (x86_64-unknown-linux-musl, aarch64-unknown-linux-musl, no glibc requirement) and macOS (aarch64-apple-darwin, x86_64-apple-darwin), accompanied by SHA256SUMS, third-party license notices, and signed GitHub build provenance attestations.

VERSION=1.0.0
TARGET=x86_64-unknown-linux-musl   # or aarch64-unknown-linux-musl, aarch64-apple-darwin, x86_64-apple-darwin
BASE="https://github.com/FlyCockpit/skywrite/releases/download/v$VERSION"

curl -fsSLO "$BASE/skywrite-$VERSION-$TARGET.tar.gz"
curl -fsSLO "$BASE/SHA256SUMS"
sha256sum --check --ignore-missing SHA256SUMS   # macOS: shasum -a 256 --check --ignore-missing SHA256SUMS

# Optional: verify signed GitHub build provenance attestation
gh attestation verify "skywrite-$VERSION-$TARGET.tar.gz" --repo FlyCockpit/skywrite

tar -xzf "skywrite-$VERSION-$TARGET.tar.gz"
mkdir -p ~/.local/bin
install -m 0755 "skywrite-$VERSION-$TARGET/skywrite" ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"

Option 2: Build from Source

Building from source requires Rust 1.91 or newer (rustup), plus cmake and a C++ compiler (for example apt-get install cmake g++ on Debian/Ubuntu) to compile the bundled on-device Parakeet transcription engine (transcribe.cpp / ggml):

git clone https://github.com/FlyCockpit/skywrite.git
cd skywrite
cargo build --release --locked
mkdir -p ~/.local/bin
install -m 0755 target/release/skywrite ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"

If you do not have cmake or a C++ compiler—or do not need on-device transcription—build with --no-default-features:

cargo build --release --locked --no-default-features

That build leaves out only the on-device transcription engine (ondevice: models will report that the engine is missing); every other feature remains identical.

Quick Start (3-Second Test Clip)

Verify your FFmpeg capabilities, initialize offline starter model defaults, inspect the Edit JSON schema, and run your first inspection on a synthetic 3-second clip with color bars and a sine tone:

# 1. Check FFmpeg, rubberband, libass subtitles filter, and configured providers (no network for OpenRouter)
skywrite doctor

# 2. Create offline starter model preferences in ~/.skywrite/config.json (idempotent, stores no keys)
skywrite init

# 3. Print the complete Edit v1 JSON Schema and example
skywrite schema

# 4. Generate a 3-second test clip with FFmpeg and inspect its streams & metadata
ffmpeg -f lavfi -i testsrc=d=3 -f lavfi -i sine=d=3 -pix_fmt yuv420p camera-a.mp4
skywrite inspect camera-a.mp4

# 5. Read a built-in workflow skill
skywrite skills read technical-explainer

skywrite doctor reports:

  • audio_stretcher.rubberband_available — whether your FFmpeg includes rubberband for pitch-preserving speed changes.
  • burned_captions.subtitles_filter_available — whether your FFmpeg includes the libass subtitles filter for burned-in captions (with a fix hint if missing).
  • providers — configured custom providers and whether each answered its /models endpoint (network_checked indicates whether any custom check ran; OpenRouter is never contacted by doctor).

To use paid OpenRouter commands later, export OPENROUTER_API_KEY in the shell environment inherited by your agent (.env files are never auto-loaded, and keys are never written to config.json).

Known Limitations

  • Pre-release availability. Prebuilt binaries begin with v1.0.0; until published, install by building from source. Skywrite is not published to crates.io.
  • Assembly scope. Skywrite intentionally keeps Edit v1 small: it does not model complex transitions, keyframed transforms, color wheels, or motion-graphics timelines. Hand off to Premiere, FCPXML, Hyperframes, or Remotion for finishing.
  • Platform support. Linux and macOS are supported; native Windows builds are not targeted.
  • NLE import verification. FCPXML 1.10 import into Final Cut Pro / DaVinci Resolve cannot be certified from Linux CI and should be verified in your target NLE. .prproj import is experimental and read-only (prefer FCP 7 XML export from Premiere).
  • Remotion backend constraints. Exported Remotion projects require integer FPS (use FFmpeg/FCPXML for rational NTSC rates) and are subject to Remotion’s own runtime and license.
  • No automatic cache eviction or account-wide budget cap. Shared caches under ~/.cache/skywrite grow until cleared manually, and Skywrite does not track account-wide spend across commands—use a spending-capped API key on OpenRouter.
  • License. MIT License; the embedded Geist font is licensed under the SIL Open Font License 1.1.