ffmpeg
Transform audio and video files with ffmpeg and inspect
them with ffprobe. Operations are non-destructive: always write to a new
output file. Re-encoding can be slow on long media — set realistic expectations.
Setup health check (run first, every session)
Verify with one solo step:
[{ "tool": "os.shell.run", "args": { "cmd": "ffmpeg", "args": ["-version"] } }]
Outcome map:
exit 0 + version → ready, proceed.
command not found: ffmpeg → enter Setup playbook → "ffmpeg missing".
Setup playbook (when prerequisites are missing)
ffmpeg missing
Reply (solo reply step):
«ffmpeg не установлен. Могу поставить: brew install ffmpeg. Поставить?»
On yes:
[{ "tool": "os.shell.run", "args": { "cmd": "brew", "args": ["install", "ffmpeg"] } }]
On Linux: apt-get install ffmpeg.
On Windows, offer this exact winget command after confirmation:
[{ "tool": "os.shell.run", "args": { "cmd": "winget", "args": ["install", "--id", "Gyan.FFmpeg", "-e"] } }]
When to use
- "Convert this video/audio to <format>", "extract the audio from this mp4".
- "Trim from 0:30 to 1:00", "resize to 720p", "make a GIF from this clip".
- "What codec / duration / resolution is this file?" (use
ffprobe).
When NOT to use
- Downloading media from URLs — that's
yt-dlp territory (separate skill).
- Still-image editing — use the
imagemagick skill.
- Lossless container-only edits where a remux suffices — still fine here, just
use
-c copy to avoid re-encoding.
Common operations
All examples invoke os.shell.run. Inspect first with ffprobe; the approval
gate surfaces each write. Use -c copy to remux without re-encoding when only
the container changes.
| Goal |
cmd / args |
| Inspect media |
ffprobe ["-hide_banner", "in.mp4"] |
| Convert MOV → MP4 |
ffmpeg ["-i", "in.mov", "-c:v", "libx264", "-c:a", "aac", "out.mp4"] |
| Extract audio (MP3) |
ffmpeg ["-i", "in.mp4", "-vn", "-q:a", "2", "out.mp3"] |
| Trim (start 30s, 30s long) |
ffmpeg ["-ss", "00:00:30", "-i", "in.mp4", "-t", "30", "-c", "copy", "clip.mp4"] |
| Resize to 720p |
ffmpeg ["-i", "in.mp4", "-vf", "scale=-2:720", "out_720p.mp4"] |
| Video → GIF |
ffmpeg ["-i", "in.mp4", "-vf", "fps=12,scale=480:-1", "out.gif"] |
| Extract one frame |
ffmpeg ["-ss", "00:00:05", "-i", "in.mp4", "-frames:v", "1", "frame.png"] |
| Remux only (fast) |
ffmpeg ["-i", "in.mkv", "-c", "copy", "out.mp4"] |
Rules
- Always write to a NEW output path; never overwrite the source.
- Inspect with
ffprobe first when unsure of codecs/duration/resolution.
- Warn the user that long re-encodes can take a while; prefer
-c copy when
only the container changes.
- Echo the output path (and
ffprobe duration if relevant) after each run.
檢視 NOTICE 宣告
Atomic Orange V1 - source licensing and provenance notice
This private source tree is multi-licensed. The machine-readable authority for
the current audit is LICENSES/source-license-manifest.json. More-specific
component entries override the repository fallback.
Repository source fallback
--------------------------
Remaining Atomic Chat and Menlo source portions are licensed under Apache-2.0
after the component overrides and exclusions in the manifest are applied.
The imported root LICENSE records:
Copyright 2026 Atomic Chat (https://atomic.chat)
Copyright 2025 Menlo Research (https://menlo.ai)
Jan components
--------------
The local package manifests for @janhq/core and the assistant, download,
foundation-models, llamacpp, llamacpp-upstream, mlx, rag, and vector-db
extensions declare AGPL-3.0. Their manifests identify the author as:
Jan <service@jan.ai>
The @janhq/conversational-extension manifest declares MIT and identifies the
same author. No missing copyright years or ownership notices are inferred.
MIT Cargo components
--------------------
The Atomic-Chat Tauri Cargo package and seven nested Tauri plugin Cargo
packages declare MIT. The application manifest identifies:
AtomEons Systems Laboratory
Six plugin manifests identify Jan <service@jan.ai> as author; the
llamacpp-upstream plugin identifies Atomic Chat <service@atomic.chat>. These
author fields do not establish copyright years or holder notices, so this audit
does not invent them. The separate src-tauri/utils Cargo package has no license
field and remains pending.
Not cleared for redistribution
------------------------------
This notice and manifest document source declarations; they are not a release
clearance. Downloaded or compiled binaries, extension archives, fonts, media,
logos, provider marks, icons, screenshots, recordings, models, installed
dependencies, and generated output are excluded or pending. In particular,
pre-install/, downloads/, scripts/dist/, src-tauri/resources/, source-tree
archives, web and docs fonts/media, src-tauri/icons/, and the checked-in Swagger
UI static bundle require payload-specific provenance and license review before
redistribution.
Canonical texts and provenance
------------------------------
LICENSES/Apache-2.0.txt
Local canonical copy from node_modules/@tauri-apps/api/LICENSE_APACHE-2.0
LICENSES/AGPL-3.0.txt
Official GNU text retrieved 2026-08-27 from
https://www.gnu.org/licenses/agpl-3.0.txt
LICENSES/MIT.txt
Official SPDX License List text retrieved 2026-08-27 from
https://raw.githubusercontent.com/spdx/license-list-data/main/text/MIT.txt
Installed third-party dependencies retain their own licenses. A distributable
build needs a fresh software bill of materials, complete attribution bundle,
and resolution of every pending manifest entry for the exact shipped payload.