Przejdź do treści
Biblioteka skilli
Marketing i treści · Konwersja i formaty

ffmpeg

/ffmpeg

Przetwarza, sprawdza i naprawia pliki audio i wideo w FFmpeg: kompresja, przycinanie, napisy, głośność i strumienie.

Repozytorium
ffmpeg-skill ↗
Licencja
MIT
Ostatnia zmiana repozytorium
04.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
7
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 04.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Przetwarza, sprawdza i naprawia pliki audio i wideo w FFmpeg: kompresja, przycinanie, napisy, głośność i strumienie.

Oryginalny opis (EN)

Process, inspect, and troubleshoot audio and video with FFmpeg and ffprobe. Use for transcoding, compression, remuxing, trimming, concatenation, scaling, GIF creation, subtitles, audio extraction, loudness normalization, HLS, hardware encoding, stream analysis, and writing or fixing ffmpeg commands.

Jak działa

  1. Choose the mode first
  2. Choose a reference
  3. Required workflow
  4. Non-negotiable rules
Sekcje z nagłówków SKILL.md, w oryginale · 126 linii, 987 słów
Podgląd SKILL.md
---
name: ffmpeg
description: >-
  Process, inspect, and troubleshoot audio and video with FFmpeg and ffprobe.
  Use for transcoding, compression, remuxing, trimming, concatenation, scaling,
  GIF creation, subtitles, audio extraction, loudness normalization, HLS,
  hardware encoding, stream analysis, and writing or fixing ffmpeg commands.
license: MIT
compatibility: Requires ffmpeg and ffprobe on PATH. Available codecs and filters depend on the build. Command examples use Bash/POSIX shell syntax.
metadata:
  sources: https://ffmpeg.org/documentation.html
---

# FFmpeg

Respond in the user's language. This skill covers the FFmpeg/ffprobe CLI, not
integration with the libav* C APIs. Resolve all relative references below from
the directory containing this `SKILL.md`.

## Choose the mode first

- **Command or explanation only:** do not process media. Use the supplied
  facts and state assumptions for unknown properties. Inspect actual inputs or
  local capabilities only when needed to answer accurately and execution is
  allowed; do not run environment checks just to provide a generic example.
  If the user says not to run commands, run none, including ffprobe or local
  help. Do not claim an unexecuted command or its output has been validated.
- **Inspection or diagnosis:** run only the read-only checks relevant to the
  question. Do not create media outputs or apply a repair without a processing
  request. Distinguish observed facts from proposed fixes.
- **Processing:** follow the full workflow below before reporting completion.

Apply the safety rules in every mode, including when proposing commands.

## Choose a reference

Read only the matching section and the file's introductory assumptions, not
all references. Markdown fragments identify headings, not separate files.

| Task | Read before choosing the command |
| --- | --- |
| Compress / compatible MP4 | [MP4 recipe](references/recipes.md#1-compatible-mp4--compression) |
| Remux / no re-encoding | [Remux](references/recipes.md#2-remux-without-re-encoding) |
| Cut / join | [Trimming](references/recipes.md#3-trimming) / [concatenation](references/recipes.md#5-concatenation) |
| Resize / crop / pad | [Scaling](references/recipes.md#4-scaling-letterboxing-and-cropping) |
| Extract / replace / remove audio | [Audio](references/recipes.md#6-audio) |
| Frames / images / GIF | [Images](references/recipes.md#7-frames-image-sequences-and-gifs) |
| Watermark / subtitles | [Overlays](references/recipes.md#8-watermarks-and-subtitles) |
| Change speed | [Speed](references/recipes.md#9-playback-speed-with-preserved-audio-pitch) |
| Normalize loudness | [Two-pass loudnorm](references/advanced.md#two-pass-loudnorm) |
| Target file size | [Bitrate budget](references/advanced.md#size-budgets--two-pass-encoding) |
| HLS / pipes / GPU | [HLS](references/advanced.md#hls-vod) / [pipes](references/advanced.md#pipes-and-fragmented-mp4) / [GPU](references/advanced.md#gpu-verify-before-optimizing) |
| Error / missing tracks / timestamps | [Diagnosis](references/fundamentals.md#diagnose-causes-instead-of-hiding-errors) / [mapping](references/fundamentals.md#stream-selection) / [timing](references/fundamentals.md#time-and-frame-rate) |
| Multiple output files / preservation checks | [Safe execution](references/fundamentals.md#safe-execution) / [acceptance checks](references/fundamentals.md#acceptance-checks) |

For unfamiliar syntax, read [option placement](references/fundamentals.md#option-placement)
and [escaping](references/fundamentals.md#filtergraphs-and-escaping). For uncovered
features, consult the [official sources](references/advanced.md#official-sources)
and local help; do not guess options.

## Required workflow

Use the full sequence for processing. For command-only or inspection tasks,
apply only the relevant steps within the selected mode's execution limits.

1. **Establish the goal.** Identify inputs, output path, playback compatibility,
   acceptable loss, size/resolution limits, and editing precision. When a safe
   default is obvious, state assumptions instead of asking unnecessary questions.
   Never interpret "lossless" as "visually almost identical." If requirements
   conflict (for example, MP4 and preserving ASS styling/attachments), explain
   the conflict and ask which requirement to relax before processing.
2. **Check the environment.** For processing, run `command -v ffmpeg`,
   `command -v ffprobe`, and `ffmpeg -version`. In other modes, check only tools
   needed for the permitted inspection. Reuse successful environment and
   capability checks in this session; recheck after build/host/device changes
   or a related failure. If a tool is missing,
   suggest an OS-appropriate installation; do not silently install packages or
   drivers. On Windows, use the shell's equivalent executable lookup and adapt
   quoting/redirection as needed.
3. **Probe every processing input.** In other modes, probe only when needed
   and permitted; never invent probe results for unavailable files:

   ```bash
   ffprobe -v error -show_format -show_streams -show_chapters -of json "./input.mkv"
   ```
   Inspect stream types/indices, codecs, duration, starting timestamps,
   fps/time_base, SAR/DAR, rotation, pixel format, HDR/color tags, audio channels,
   sample rate, language/default/forced flags, and attachments. Missing fields
   and `N/A` do not mean zero. Bound probing time for live/network inputs;
   do not count every frame unless necessary.
4. **Plan each stream.** Choose the container, mapping, and copy/transcode policy
   separately for each stream. `-c copy` avoids re-encoding but does not guarantee
   arbitrary frame-accurate trimming. Filtering requires encoding the processed
   stream. MP4/H.264/AAC/yuv420p is a common SDR playback choice, not a universal
   default. Never silently convert HDR/10-bit/alpha to SDR/8-bit.
5. **Verify required capabilities** using local `ffmpeg -h encoder=NAME`,
   `-h filter=NAME`, `-h muxer=NAME`, or `-h demuxer=NAME`. Use `-encoders`,
   `-decoders`, `-filters`, `-formats`, `-protocols`, and `-hwaccels` as needed.
   A feature appearing in online documentation does not establish build support.
6. **Execute safely (processing only).** Choose a new output path, `-n`, and
   usually `-nostdin`. Test a short sample before an expensive job. Explain
   material tradeoffs: loss, omitted tracks, changed fps, color, channels,
   or metadata.
7. **Validate the result.** A successful exit and an existing file are not
   sufficient. Probe the output and compare selected streams, duration,
   dimensions, fps, audio rate/channels, and file size against the goal.
   Decode when appropriate:
   ```bash
   ffmpeg -hide_banner -nostdin -v error -xerror -i "./output.mp4" \
     -map '0:V?' -map '0:a?' -f null -
   ```
   `V` excludes attached pictures. This checks A/V decoding, not subtitle
   correctness, color rendering, synchronization, or every playlist segment.
   Decode the entire output for a full validation; explicitly label sampling
   as partial. Do not claim visual or listening checks you did not perform.
8. **Report briefly:** output path, executed command or key parameters,
   what was preserved/changed, and which checks actually ran.

## Non-negotiable rules

- Never send sensitive paths or token-bearing URLs to external search services.
- Never use the same file as input and output. Never delete originals.
  Use `-y`, bulk overwrites, or cleanup only with explicit authorization.
  `-n` does not protect every auxiliary file written by muxers.
- Select streams explicitly with `-map`; quote `?`, `*`, and graph labels
  for the shell. Adding `-map` disables normal automatic stream selection.
- Do not use `-map 0` without checking every stream's container compatibility.
  Never promise preservation of all metadata, attachments, or Dolby Vision
  during remuxing without verifying it.
- Never combine `-c:v copy` with video filtering or `-c:a copy` with audio filtering.
- Do not treat timestamp issues with a random combination of `-copyts`, `-r`,
  `-fflags +genpts`, `-avoid_negative_ts`, and `aresample=async`. Find the cause.
- Never interpolate untrusted strings into a shell command or filtergraph.
  In programs, pass an argument array to subprocess without `shell=True`;
  FFmpeg-level filter escaping is still necessary.
- https://ffmpeg.org/ documentation updates nightly. Prefer local help and
  documentation matching the installed version over examples for newer builds.
Pliki w paczce (7)
  • SKILL.md 8 KB
  • agents/openai.yaml 1 KB
  • evals/README.md 9 KB
  • evals/evals.json 4 KB
  • references/advanced.md 8 KB
  • references/fundamentals.md 8 KB
  • references/recipes.md 10 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · V9EQ/ffmpeg-skill100MIT
digitalsamba/claude-code-video-toolkit100MIT
TerminalSkills/skills100Apache-2.0
magnus919/agent-skills100MIT
znlgis/opengis-skills100MIT
atomicbot-ai/atomic-agent100MIT
PIXARTSeu/Synapse100AGPL-3.0
n0an/ffmpeg-skill100MIT
wyattowalsh/agents100MIT

Migawka bazy z 13.11.2026 · wersja paczki 3239228c28ad (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100ffmpeg-media-workflow
    Planuje i wykonuje lokalne przekształcenia wideo i audio, takie jak napisy, głośność, synchronizacja i eksport.
  • 100ffmpeg-command
    Zamienia opis operacji na wideo lub audio w gotowe polecenie ffmpeg: transkodowanie, przycinanie, łączenie, filtry, nakładki, miniatury, GIF-y i napisy.
  • 100ffmpeg-processing
    Przetwarza wideo i audio: transkoduje, edytuje, streamuje i analizuje pliki multimedialne.
  • 98ffmpeg-ops
    Obsługuje przetwarzanie mediów w ffmpeg i ffprobe: transkodowanie, cięcie i łączenie, korekcja kolorów, normalizacja głośności, napisy, GIF-y, pakowanie HLS, kodowanie sprzętowe i kontrola jakości VMAF.
  • 100video-editor
    Doradza w montażu wideo z ffmpeg: dobre praktyki kodowania, optymalizacja jakości, transkodowanie, remuxing, przestrzenie barw i diagnoza problemów z jakością.
  • 100video-composition
    Składa, miksuje i waliduje gotowe wideo z FFmpeg i FFprobe: łączenie, nakładki, napisy, głośność, przejścia i eksport.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.