compress-video

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Compress videos locally using FFmpeg and FFprobe. Install missing dependencies needed for the requested workflow. Website workflows require source-code access and browser tools to verify the rendered site.
使用 FFmpeg 和 FFprobe 在本地压缩视频。为所请求的工作流安装缺失的依赖项。 网站工作流需要源代码访问权限和浏览器工具来验证渲染后的站点。

Commands

命令

RequestWorkflow
A video file, or
compress <file>
Compress using compression.md.
compare <file>
Compare quality and estimated sizes using comparison.md.
audit [project] [URL or scope]
Inspect embedded videos and report improvements using audit.md.
scan-and-optimize [project] [URL or scope]
Discover, audit, optimize, and update videos across the project using scan-and-optimize.md.
Infer the workflow from natural-language requests too. Read only the relevant references. A file without a command uses the compression workflow.
For both website workflows, use the current workspace or a supplied project path. If source code is unavailable, ask for repository access before starting. Begin with routes, components, styles, and asset references in the source code; use a live or local URL to verify rendered video sizes and playback. If no URL is supplied, reuse a development server or start the project locally.
audit
reviews the requested page and its source code, or the specified scope.
scan-and-optimize
covers the whole source project by default; a supplied URL is its browser starting point. Honor an explicitly narrower scope. Ask for a missing input only when it cannot be inferred.
Reuse source locations and preferences already provided. Compression defaults, including CRF values, are defined in compression.md.
请求工作流
一个视频文件,或
compress <file>
按照 compression.md 进行压缩。
compare <file>
按照 comparison.md 比较质量和预计文件大小。
audit [project] [URL or scope]
按照 audit.md 检查嵌入的视频并报告改进建议。
scan-and-optimize [project] [URL or scope]
按照 scan-and-optimize.md 发现、审查、优化并更新整个项目中的视频。
也可以根据自然语言请求推断工作流。仅阅读相关的参考文档。未指定命令的文件使用压缩工作流。
对于两种网站工作流,使用当前工作区或提供的项目路径。如果无法访问源代码,请在开始前索取仓库访问权限。 首先检查源代码中的 routes、components、styles 和 asset references;使用线上或本地 URL 验证渲染后的视频大小和播放效果。如果未提供 URL,则复用开发服务器或在本地启动项目。
audit
审查所请求的页面及其源代码,或指定的范围。
scan-and-optimize
默认覆盖整个源项目;提供 URL 时,将其作为浏览器起始点。遵循明确指定的较窄范围。仅当缺失的输入无法推断时才进行询问。
复用已提供的源位置和偏好设置。压缩默认值(包括 CRF 值)定义在 compression.md 中。

Examples

示例

text
$compress-video demo.mov
$compress-video compare demo.mov
$compress-video audit ./website https://example.com/blog/post
$compress-video scan-and-optimize ./website http://localhost:3000
These are agent requests, not terminal commands.
text
$compress-video demo.mov
$compress-video compare demo.mov
$compress-video audit ./website https://example.com/blog/post
$compress-video scan-and-optimize ./website http://localhost:3000
这些是 Agent 请求,而不是终端命令。