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.
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-degradationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install ffmpeg-graceful-degradation in Claude Code
git clone --depth 1 https://github.com/HKUDS/OpenSpace /tmp/OpenSpace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenSpace/benchmarks/gdpval/skills/ffmpeg-graceful-degradation ~/.gemini/antigravity-cli/skills/ffmpeg-graceful-degradationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install ffmpeg-graceful-degradation in Antigravity CLI
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
ANo 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 →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
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.
