Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

ffmpeg-graceful-degradation

Skill by HKUDS

Gives an AI assistant a fallback workflow for ffmpeg encoding failures. It probes encoders, tests a short clip, then falls back through copy mode, mpeg4 and moviepy. Aimed at users processing uploaded or batch videos.

  • Score 86
  • 8.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ffmpeg-graceful-degradation

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/OpenSpace /tmp/OpenSpace && mkdir -p ~/.claude/skills && cp -r /tmp/OpenSpace/benchmarks/gdpval/skills/ffmpeg-graceful-degradation ~/.claude/skills/ffmpeg-graceful-degradation

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install ffmpeg-graceful-degradation in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

FFmpeg Graceful Degradation is a skill that gives an AI assistant a fallback workflow for video encoding failures. The source says these failures are common due to codec availability, library version mismatches, or system configuration issues.

The workflow checks encoder availability with ffmpeg -encoders, then tests a five-second clip before any batch processing. If the preferred encoder fails, it tries copy mode, then the mpeg4 encoder, and finally moviepy, which bundles its own ffmpeg binary. The source also includes a Python implementation pattern, a decision flow, and a table of common error messages. It is aimed at processing user-uploaded videos, running in containers with limited codec support, batch jobs, and cross-platform deployments with varying ffmpeg builds.

Written from the project's SKILL.md and checked against it.

What it can do

  • Probe encoder availabilityChecks ffmpeg -encoders for libx264, libopenh264 and mpeg4 before encoding.
  • Test on a short clipExtracts a 5-second clip and tries an encode before batch processing.
  • Copy mode fallbackRetries with copy mode, which avoids re-encoding the video.
  • MPEG4 fallbackUses the mpeg4 encoder as a universal fallback when libx264 fails.
  • MoviePy fallbackInstalls moviepy and uses Python to write video and concatenate clips.
  • Error pattern referenceMaps common ffmpeg error messages to causes and suggested fixes.

What you need

  • ffmpeg installed on the system
  • Python with pip for the moviepy fallback

Try asking

  • Encode this video to H.264, falling back if libx264 is missing.
  • Test a 5-second clip of input.mp4 before batch encoding the folder.
  • Concatenate these clips with moviepy if ffmpeg encoding fails.

Good to know

  • Copy mode does not change the codec or format.
  • The mpeg4 fallback produces larger file sizes.
  • The moviepy fallback requires installing moviepy with pip.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: benchmarks/gdpval/skills/ffmpeg-graceful-degradation/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to ffmpeg-graceful-degradation

All alternatives →

Compare with intelligence-vocabulary, media-use or media_library

ffmpeg-graceful-degradation: common questions

Does this skill fall back when libx264 is unavailable?

Yes. The source says to try copy mode and then the mpeg4 encoder, which it describes as always available.

Why does the skill test on a short clip first?

The source says never to start batch processing without validation, so it extracts a 5-second segment and tests the preferred codec.

Which ffmpeg errors does it cover?

The source lists libopenh264 wrong ELF class, Encoder libx264 not found, Broken pipe and Invalid data found, each with a suggested fix.

How do I install ffmpeg-graceful-degradation?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is ffmpeg-graceful-degradation free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is ffmpeg-graceful-degradation safe to use?

It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to ffmpeg-graceful-degradation?

Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.

ffmpeg-graceful-degradation Install

Add to stack

Loading.