ffmpeg-video-transcoding-pipeline

ffmpeg-video-transcoding-pipeline is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 98 tokens per session (1,437 once invoked), scanned A, original, MIT.

A guide to automated video conversion pipelines built with FFmpeg, a command-line tool for processing audio and video. It covers multiple quality versions for streaming, common video formats, and audio loudness normalization.

In plain words
What is it for?
Use it to create HLS or MPEG-DASH video-on-demand outputs, encode H.264, HEVC, or AV1 video, create fragmented MP4 files, and normalize audio loudness.
Why use it?
It helps prepare one video file for different network speeds and playback devices without manually creating each version. It also provides repeatable processing steps for streaming media.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to create HLS or MPEG-DASH video-on-demand outputs, encode H.264, HEVC, or AV1 video, create fragmented MP4 files, and normalize audio loudness.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/ffmpeg-video-transcoding-pipeline
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill ffmpeg-video-transcoding-pipeline
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ffmpeg-video-transcoding-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/ffmpeg-video-transcoding-pipeline/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/ffmpeg-video-transcoding-pipeline)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/ffmpeg-video-transcoding-pipeline"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/ffmpeg-video-transcoding-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ffmpeg-video-transcoding-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/ffmpeg-video-transcoding-pipeline"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/ffmpeg-video-transcoding-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,437 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.01437
Opus 5.5 $0.00039 $0.00575
Sonnet 5.5 $0.00020 $0.00287
Haiku 4.5 $0.00010 $0.00144

Measured 1mo ago against content hash 316b19c96d5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ffmpeg-video-transcoding-pipeline scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(cmd, capture_output=True, text=True, check=True)
Art/Digital_Media_and_Video_Production/ffmpeg-video-transcoding-pipeline/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FFmpeg Video Transcoding Pipeline Skill Guide

This skill standardizes automated multi-bitrate transcoding pipelines for video-on-demand (VOD) streaming infrastructure.


1. Adaptive Bitrate (ABR) Transcoding Ladder

[ Raw Master Video ] (ProRes / High-Bitrate MP4)
         |
         +---> FFmpeg Multi-Output Transcoder
                 |
                 |-- 1080p @ 4500 kbps (fMP4 / H.264)
                 |-- 720p  @ 2500 kbps (fMP4 / H.264)
                 |-- 480p  @ 1200 kbps (fMP4 / H.264)
                 |-- 360p  @ 600 kbps  (fMP4 / H.264)
                 |-- Audio: AAC 128 kbps (EBU R128 Normalized)
                 |
                 v
[ Master Playlist: master.m3u8 / manifest.mpd ]

2. Production FFmpeg Commands & Scripts

A. Production Multi-Bitrate HLS Generation Script

#!/usr/bin/env bash
set -euo pipefail

INPUT_FILE="${1:?Usage: $0 <input_video.mp4> <output_dir>}"
OUT_DIR="${2:?Usage: $0 <input_video.mp4> <output_dir>}"

mkdir -p "${OUT_DIR}"

ffmpeg -hide_banner -y -i "${INPUT_FILE}" \
  # Video filter: scale and keyframe alignment (2-second GOP at 30fps = 60 frames)
  -filter_complex \
  "[0:v]split=3[v1080][v720][v480]; \
   [v1080]scale=w=1920:h=1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v1080out]; \
   [v720]scale=w=1280:h=720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2[v720out]; \
   [v480]scale=w=854:h=480:force_original_aspect_ratio=decrease,pad=854:480:(ow-iw)/2:(oh-ih)/2[v480out]" \
  \
  # 1080p Stream
  -map "[v1080out]" -c:v:0 libx264 -preset slow -b:v:0 4500k -maxrate:v:0 4800k -bufsize:v:0 9000k \
  -g 60 -keyint_min 60 -sc_threshold 0 \
  \
  # 720p Stream
  -map "[v720out]" -c:v:1 libx264 -preset slow -b:v:1 2500k -maxrate:v:1 2700k -bufsize:v:1 5000k \
  -g 60 -keyint_min 60 -sc_threshold 0 \
  \
  # 480p Stream
  -map "[v480out]" -c:v:2 libx264 -preset slow -b:v:2 1200k -maxrate:v:2 1350k -bufsize:v:2 2400k \
  -g 60 -keyint_min 60 -sc_threshold 0 \
  \
  # Audio Stream (Normalized)
  -map a:0 -c:a aac -b:a 128k -ar 48000 -ac 2 \
  -af "loudnorm=I=-16:TP=-1.5:LRA=11" \
  \
  # HLS Output Packaging
  -f hls \
  -hls_time 4 \
  -hls_playlist_type vod \
  -hls_flags independent_segments \
  -hls_segment_type fmp4 \
  -hls_segment_filename "${OUT_DIR}/stream_%v_data%03d.m4s" \
  -master_pl_name master.m3u8 \
  -var_stream_map "v:0,a:0 v:1,a:0 v:2,a:0" \
  "${OUT_DIR}/stream_%v.m3u8"

echo "Transcoding completed. Manifest at: ${OUT_DIR}/master.m3u8"

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 129 lines · 98 tokens per session scan A 316b19c96d5c

Subscribe to this mod's changes

ffmpeg-video-transcoding-pipeline is a skill published in the GitHub repository hamzabellouch/agent-skills (8 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 1,437 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-10.

Related

ffmpeg-video-transcoding-pipeline compared with skills from other repositories

ffmpeg-video-transcoding-pipeline next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ffmpeg-video-transcoding-pipelinehamzabellouch/agent-skillsSkill81mo agoMITA98Claude Code, Codex
spec-investigatebenjaminthomas/spec-driven-devSkill2yesterdayMITA229Claude Code
spec-implementbenjaminthomas/spec-driven-devSkill2yesterdayMITA137Claude Code
spec-shipbenjaminthomas/spec-driven-devSkill2yesterdayMITA119Claude Code
spec-walkthroughbenjaminthomas/spec-driven-devSkill2yesterdayMITA172Claude Code
spec-setupbenjaminthomas/spec-driven-devSkill2yesterdayMITA223Claude Code
spec-escapesbenjaminthomas/spec-driven-devSkill2yesterdayMITA148Claude Code