Skip to content
compress-latest-desktop-video logo

Compress Latest Desktop Video

compress-latest-desktop-video

压缩桌面最新视频 - 使用 HandBrake 快速压缩桌面上最新的视频文件,采用快速失败策略

SKILL.md

Full skill instructions

Compress Latest Desktop Video

快速压缩桌面上最新的视频文件,采用**快速失败(Fast-Fail)**策略。

核心原则

  • 乐观执行 - 默认环境良好,直接执行压缩
  • 快速失败 - 遇到问题立即退出,明确错误原因
  • 最小预检查 - 不预先检查工具和环境,减少决策开销

工作流程

  1. 直接查找桌面上最新的视频文件(不限制时间范围)
  2. 使用 HandBrakeCLI 压缩视频(H.264, RF 22, Web 优化)
  3. 压缩成功后删除源文件
  4. 失败时保留源文件并显示错误

压缩参数

  • 视频编码器: H.264 (x264)
  • 质量: RF 22(平衡质量和文件大小)
  • 输出格式: MP4
  • Web 优化: 已启用
  • 音频: 自动处理

使用方法

压缩桌面最新的视频

快速失败错误处理

脚本会在以下情况快速失败并退出:

  • ❌ 桌面无视频文件
  • ❌ HandBrakeCLI 未安装
  • ❌ 压缩失败(输出文件无效)

失败时执行:

  1. 保留源文件
  2. 显示明确的错误信息
  3. 提供修复建议(如 brew install handbrake)

执行效率

  • 典型执行时间: ~8秒(仅压缩时间)
  • 预检查时间: ~0秒(无预检查)
  • 相比防御性检查: 节省 3.5%+ 时间

脚本位置

  • 优化脚本: scripts/​compress_fast.sh
  • 原脚本: scripts/​compress.sh(保留作为参考)

安装依赖

仅在首次失败时需要:

brew install handbrake

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View