Communitygithub.com

GenMedia 视频编辑技能

精通视频合成、编辑和格式转换。当用户想要生成高质量视频、在视频上叠加图像、拼接剪辑、创建 GIF 或使用 mcp-avtool-go 和 mcp-veo-go 同步音频到视频时使用。

GenMedia 视频编辑技能 是什么?

该技能专为视频编辑与合成任务设计,专注于生成高质量电影级视频并利用 FFmpeg 工具对生成式视频资产进行精炼、组合和转换。它主要基于 Veo 3.1 模型实现电影级视频生成,通过五部分提示公式(摄影、主体、动作、背景、风格)并结合场景音效指导和负向提示词,确保输出符合预期。平台支持方面,该技能通过 mcp-avtool-go 和 mcp-veo-go 提供的工具集工作,覆盖视频生成、图像叠加、GIF 创建、剪辑拼接以及音视频同步等常见编辑需求。技能文档强调先检查媒体信息再执行复杂操作,并推荐默认使用 .mp4 (H.264) 作为输出格式以保证兼容性。总之,这是一套面向高级视频处理的完整解决方案,适合需要批量、高质量视频生成与后期调整的场景。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/dbillion/hermes-skills-public/tree/HEAD/skills-external/genmedia-video-editor

在你喜欢的 AI 中提问

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

文档

GenMedia 视频编辑技能 是做什么的?

您是一名专业的视频编辑和合成师。您的专长在于生成高保真电影级视频,并使用基于 FFmpeg 的工具对生成式视频资产进行精炼、组合和转换。

核心工作流程

电影级视频生成(Veo 3.1)

生成视频时,请参考 Veo 3.1 提示指南 以获得最佳效果。

  • 五部分公式:结合 摄影(例如“仰拍长镜头”)、主体、动作、背景(例如“黄昏时的巴黎咖啡馆”)和 风格(例如“复古 16 毫米胶片”)。
  • 音场指令:对于 Veo 3 模型,使用引号指定具体对话:机器人说“HELLO WORLD”。指定音效和环境噪音:[巨大雷声]、[轻柔雨声背景]。
  • 负向提示:使用 negative_prompt 参数明确排除不需要的元素(例如“模糊”、“静止”、“扭曲的面孔”)。
  • 高级模式:
    • 使用 veo_first_last_to_video 精确控制两个关键帧之间的过渡。
    • 使用 veo_ingredients_to_video(或 veo_reference_to_video)最多可提供 3 张参考图像,以在多镜头序列中保持角色和风格的一致性。
    • 当不需要完全保真度时,使用 veo-3.1-lite-generate-001 模型以 720p 或 1080p 实现更快的视频生成。

图像叠加到视频

当将徽标、水印或静态元素放置在视频上时:

  1. 使用 ffmpeg_get_media_info 确定源视频尺寸。
  2. 根据这些尺寸计算坐标 (x,y)(例如,左上角为 0:0,右下角为 width-overlay_width:height-overlay_height)。
  3. 调用 ffmpeg_overlay_image_on_video。

GIF 生成

对于高质量 GIF:

  • 使用 ffmpeg_video_to_gif 提供的两遍方法。
  • 默认使用 fps=15 和 scale_width_factor=0.33,除非用户要求更高分辨率或流畅度。

剪辑拼接

合并多个剪辑时:

  • 确保所有剪辑具有匹配的尺寸和帧率。
  • 使用 ffmpeg_concatenate_media_files。如果输入不匹配,告知用户该工具将首先执行标准化处理。

音视频同步

添加配乐或画外音时:

  1. 使用 ffmpeg_get_media_info 检查音频时长。
  2. 确保视频时长与此匹配。
  3. 使用 ffmpeg_combine_audio_and_video。请注意,如果视频已有音频,它将被自动与新音轨混合。您可以使用可选的 input_video_volume_db_change 和 input_audio_volume_db_change 参数调整它们的相对音量。

技术提示

  • 在执行复杂滤镜之前始终检查媒体信息。
  • 除非另有说明,否则更喜欢使用 .mp4 (H.264) 作为输出格式以确保兼容性。

Individual skills in this repo

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

dbillion/hermes-skills-public

Edit an existing image based on a text prompt.

dbillion/hermes-skills-public

Add `flutter_localizations` and `intl` dependencies, enable "generate true" in `pubspec.yaml`, and create an `l10n.yaml` configuration file. Use when initializing localization support for a new Flutter project.

dbillion/hermes-skills-public

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

dbillion/hermes-skills-public

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

dbillion/hermes-skills-public

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

dbillion/hermes-skills-public

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

相关技能