Logo di Web Video

Web Video

Organizzazione
evilmartians
web-video

Codifica un video per il web con uno script ffmpeg incluso: AV1, HEVC e MP4 H.264, oltre a un poster JPEG per i video normali; oppure VP9 WebM e HEVC con alpha, oltre a un poster PNG per i video trasparenti. Il formato viene scelto automaticamente in base alla sorgente. Usala quando l’utente vuole ottimizzare, comprimere o convertire un video, uno screencast, una registrazione dello schermo o una copertina animata per un sito web, un blog, la documentazione o una landing page; velocizzare o rallentare una registrazione; ottenere versioni AV1, HEVC o WebM; oppure pubblicare un video trasparente riproducibile sia in Safari sia in Chrome. NON usarla per modifiche diverse dalla velocità e dalle dimensioni, per lo streaming adattivo (HLS, DASH) o per video ospitati su YouTube o Vimeo.

Add to TypingMind

Panoramica

Pubblicato daevilmartians
Repositoryagent-skills
Nome della skillweb-video
Stelle
52
Fork
8
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da evilmartians su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Web Video in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/evilmartians/agent-skills/tree/main/skills/web-video
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/evilmartians/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/web-video .claude/skills/web-video
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Web Video in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Web Video non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Web Video non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Optimize video for the web

This skill is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.

Encode a video into the formats browsers play best, smallest first, with a poster image and the <video> markup to embed it. Companion to https://evilmartians.com/chronicles/better-web-video-with-av1-codec.

Every encoding setting lives in scripts/web-video.sh next to this file. Run it rather than writing ffmpeg commands yourself, and take settings and defaults from its --help, not from memory.

Running the script

bash
bash <skill-dir>/scripts/web-video.sh [options] <video>

<skill-dir> is the directory this SKILL.md is in. Read --help before the first encode, then map the user's words onto its options: "at 2x speed" is --speed 2, "put them in public/media" is --output-dir public/media, "skip AV1" is --formats hevc,h264.

Some options are worth suggesting when the request implies them. Say why when you do:

  • --no-audio for a cover, background loop, or demo that autoplays muted: nobody hears that track.
  • --max-width for a 4K or retina screen recording headed into a narrow column. Twice the column width covers 2x displays.
  • --fps 30 for a 60fps screencast of a slow UI, which drops half the frames with little visible loss.
  • --fast for a draft. It keeps the quality settings but switches to quicker encoder presets, so the encode finishes several times sooner and the files come out bigger. Use it to check timing or framing, then encode again without it.

Project defaults go in a .web-video file at the root of the project's git repository. When the user states a preference for every video ("we don't ship HEVC", "covers never have sound"), offer to save it there instead of repeating it each run:

bash
# AV1 and H.264 only; transparent video still gets VP9 and HEVC
--opaque-formats av1,h264
--no-audio

The script prints the defaults it picked up, and options on the command line override them. Use --opaque-formats here rather than --formats: that one applies to transparent video too, so the first transparent video would fail. Run the script from inside the project: it looks for the file from the current directory, not from the video's location, and resolves a relative --output-dir the same way.

Encoding is slow on purpose. At the defaults, expect minutes per minute of 1080p video, most of it AV1. Run the script in the background or with the longest timeout your tools allow, and don't kill it for going quiet: when its output isn't a terminal, it reports progress every 30 seconds. It takes one video per run. For several, run them one after another, since each encode already uses every core.

The script checks its requirements before encoding anything and names what's missing: ffmpeg with SVT-AV1, x265, x264, and libvpx-vp9, plus macOS avconvert for HEVC with alpha. Relay that message. On macOS, brew install ffmpeg has every encoder. Elsewhere, a transparent video can only get VP9 (--formats vp9): tell the user Safari needs the HEVC file to show transparency and that it has to be encoded on a Mac.

After it finishes

The script prints each file with its size, the pixel dimensions, and a <video> snippet with the sources in the order browsers should try them. Then:

  • Embed it the project's way. If the project has a video component, an MDX tag, or an asset pipeline, find how it references files and use that instead of the raw HTML. Keep the source order either way: a browser plays the first source it supports.
  • Reserve the space. Set width and height in CSS pixels (half the encoded size for a retina recording), so the page doesn't jump when the video loads.
  • Leave the source alone. The outputs replace it on the page, but deleting the original is the user's call.

Transparent video

The script takes the transparent path when the video has see-through pixels, or when it's Apple's HEVC with alpha. A file that could hold transparency but doesn't use it, like most GIFs, gets the regular formats. If the user expects transparency and the script finds none, the export dropped it. These exports keep it:

  • After Effects: Output Module → Channels: RGB + Alpha, Format: QuickTime, Codec: Apple ProRes 4444
  • Final Cut Pro, Motion: Share → Export File → ProRes 4444 or HEVC with Alpha
  • Blender: Output → FFmpeg, Container: QuickTime, Codec: QTRLE, Color: RGBA

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Web Video?

Codifica un video per il web con uno script ffmpeg incluso: AV1, HEVC e MP4 H.264, oltre a un poster JPEG per i video normali; oppure VP9 WebM e HEVC con alpha, oltre a un poster PNG per i video trasparenti. Il formato viene scelto automaticamente in base alla sorgente. Usala quando l’utente vuole ottimizzare, comprimere o convertire un video, uno screencast, una registrazione dello schermo o una copertina animata per un sito web, un blog, la documentazione o una landing page; velocizzare o rallentare una registrazione; ottenere versioni AV1, HEVC o WebM; oppure pubblicare un video traspare...

Perché usare Web Video su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Web Video è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Web Video in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/evilmartians/agent-skills/tree/main/skills/web-video. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Web Video?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Web Video?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Web Video: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Web Video è gratuita?

Sì. È pubblicata su GitHub da evilmartians con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇