compress-video
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCompress 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
命令
| Request | Workflow |
|---|---|
A video file, or | Compress using compression.md. |
| Compare quality and estimated sizes using comparison.md. |
| Inspect embedded videos and report improvements using audit.md. |
| 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.
auditscan-and-optimizeReuse source locations and preferences already provided. Compression defaults,
including CRF values, are defined in compression.md.
| 请求 | 工作流 |
|---|---|
一个视频文件,或 | 按照 compression.md 进行压缩。 |
| 按照 comparison.md 比较质量和预计文件大小。 |
| 按照 audit.md 检查嵌入的视频并报告改进建议。 |
| 按照 scan-and-optimize.md 发现、审查、优化并更新整个项目中的视频。 |
也可以根据自然语言请求推断工作流。仅阅读相关的参考文档。未指定命令的文件使用压缩工作流。
对于两种网站工作流,使用当前工作区或提供的项目路径。如果无法访问源代码,请在开始前索取仓库访问权限。
首先检查源代码中的 routes、components、styles 和 asset references;使用线上或本地 URL 验证渲染后的视频大小和播放效果。如果未提供 URL,则复用开发服务器或在本地启动项目。
auditscan-and-optimize复用已提供的源位置和偏好设置。压缩默认值(包括 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:3000These 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 请求,而不是终端命令。