Communitygithub.com

FilippTrigub/abra

视频增强流水线。当用户想要锐化、调色、增暖或归一化视频音频时使用本技能——包括自然、电影感和鲜艳等预设风格。

abra 是什么?

这是一个基于 FFmpeg 的视频增强流水线技能,能够批量处理视频文件,完成锐化、色彩分级和音频归一化。它预设了三种风格:自然(细微锐化、饱和度提高 10%)、电影感(强锐化、饱和度提高 35% 并暖色调)、鲜艳(强锐化、饱和度提高 40%)。技能通过 Python 脚本 `enhance.py` 执行,依赖 `ffmpeg` 和 `uv` 包管理器。首次运行需安装依赖,处理前会要求用户选择预设风格。输出报告会包含成功/失败视频数、输出目录路径及失败文件名。适用于 Cursor、Codex 等支持 Shell 命令的 AI 代理平台,为开发者提供一键式的视频质量提升工作流。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/FilippTrigub/abra/tree/HEAD/skills/video-enhancer

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

video-enhancer — 视频增强流水线

锐化、调色并归一化一组视频的音频。不含字幕 —— 如需添加字幕请使用 video-captioner 技能。

流水线

输入视频 → unsharp + eq + colorbalance (ffmpeg) → -14 LUFS 音频归一化 → 输出

预设

预设锐度饱和度暖色
natural细微+10%无
cinematic强烈+35%暖色(增强红色,减少蓝色)
vivid强烈+40%无

如果用户未指定预设,请在运行前询问他们想要哪种效果。简要描述选项:natural 为干净、克制的效果;cinematic 为温暖、对比强烈的 Instagram 风格调色;vivid 为最大色彩强度。

如何运行

安装依赖(仅首次运行):

cd "$SKILL_DIR" && uv sync

然后处理视频:

cd "$SKILL_DIR" && uv run python scripts/enhance.py \
  --input <path/to/input> \
  --output <path/to/output> \
  --preset natural|cinematic|vivid

常用调用

# 电影感调色
uv run python scripts/enhance.py --input ./input --output ./output --preset cinematic

# 自然调色
uv run python scripts/enhance.py --input ./input --output ./output --preset natural

# 鲜艳调色
uv run python scripts/enhance.py --input ./input --output ./output --preset vivid

运行后

向用户报告:

  • 成功处理的视频数量和失败的数量。
  • 输出目录的完整路径。
  • 如果有视频失败,请明确命名它们。

边界情况

  • 如果未安装 ffmpeg:告知用户安装(Arch/CachyOS 上使用 sudo pacman -S ffmpeg,macOS 上使用 brew install ffmpeg,Ubuntu 上使用 sudo apt install ffmpeg)
  • 如果未安装 uv:引导至 https://docs.astral.sh/uv/getting-started/installation/
  • 如果输入目录为空:清晰地报告,而不是静默退出
  • 如果给出了未知预设:列出有效选项(natural, cinematic, vivid)
  • 音频归一化可能会针对短片段打印关于动态模式的警告——这是预期行为,并非错误

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

FilippTrigub/abra

>- Animate a still image into a short video clip using fal.ai's LTX-2.3 Fast image-to-video model in the cloud. No GPU required - runs entirely on fal.ai serverless infrastructure.

FilippTrigub/abra

>- Auto-describe and caption images using a local vision-language model. Writes a JSON sidecar per image containing a one-sentence description, a suggested Instagram caption with hashtags, and detected content tags.

FilippTrigub/abra

>- Animated caption pipeline. Use this skill when the user wants to burn word-by-word animated captions into videos — using Whisper for transcription and pycaps for rendering. Supports default minimalist style or a futuristic CSS theme with alternating gold/magenta glowing words.

FilippTrigub/abra

>- Cut videos into segments, rearrange them, and produce an output video with a specific cuts-per-second rate. Uses MoviePy for video manipulation. Prioritizes audio transcription for timestamped cutting, falls back to adaptive scene detection.

FilippTrigub/abra

>- Edit a region of a video using a text prompt via Wan2.1-VACE inpainting. Supports two modes: background (auto-segment via rembg) or region (rectangle defined by fractions). Requires a CUDA GPU with at least 8 GB free VRAM.

FilippTrigub/abra

Generate videos from text or images using Higgsfield's multi-model cloud platform. Supports kling, seedance, dop, and dop-preview models. Uses a small preset layer for common creative styles. Auto-detects text-to-video or image-to-video based on input. No GPU required.

FilippTrigub/abra

>- Remove the background from every frame of a video using AI (BiRefNet-general via rembg). Outputs transparent-background video or composites onto a solid colour or image. Requires a CUDA GPU with at least 3 GB free VRAM.

相关技能