展示HN:一种基于AI的命令行工具,将自然语言翻译为FFmpeg命令
我厌倦了每次处理视频时都要花20分钟在谷歌上搜索ffmpeg的语法。因此,我创建了aiclip——一个基于AI的命令行工具,可以将简单的英语翻译成完美的ffmpeg命令。
不再需要这样:
```
ffmpeg -i input.mp4 -vf "scale=1280:720" -c:v libx264 -c:a aac -b:v 2000k output.mp4
```
只需这样说:
```
aiclip "将视频.mp4调整为720p并保持良好质量"
```
主要功能:
- 安全第一:在执行前预览每个命令
- 智能默认:合理的编码器和质量设置
- 上下文感知:扫描您的目录以查找输入文件
- 交互模式:自然地迭代命令
- 测试充分:87%以上的测试覆盖率,具备全面的错误处理
它可以做的事情:
- 转换视频格式(如mov转mp4等)
- 调整和压缩视频
- 从视频中提取音频
- 剪辑和裁剪视频片段
- 创建缩略图和提取帧
- 添加水印和叠加效果
GitHub: [https://github.com/d-k-patel/ai-ffmpeg-cli](https://github.com/d-k-patel/ai-ffmpeg-cli)
PyPI: [https://pypi.org/project/ai-ffmpeg-cli/](https://pypi.org/project/ai-ffmpeg-cli/)
安装:`pip install ai-ffmpeg-cli`
我非常希望能收到关于用户体验的反馈,以及您认为有用的任何功能。您觉得哪些视频处理任务最令人沮丧?
查看原文
I got tired of spending 20 minutes Googling ffmpeg syntax every time I needed to process a video. So I built aiclip - an AI-powered CLI that translates plain English into perfect ffmpeg commands.<p>Instead of this:
ffmpeg -i input.mp4 -vf "scale=1280:720" -c:v libx264 -c:a aac -b:v 2000k output.mp4<p>Just say this:
aiclip "resize video.mp4 to 720p with good quality"<p>Key features:
- Safety first: Preview every command before execution
- Smart defaults: Sensible codec and quality settings
- Context aware: Scans your directory for input files
- Interactive mode: Iterate on commands naturally
- Well-tested: 87%+ test coverage with comprehensive error handling<p>What it can do:
- Convert video formats (mov to mp4, etc.)
- Resize and compress videos
- Extract audio from videos
- Trim and cut video segments
- Create thumbnails and extract frames
- Add watermarks and overlays<p>GitHub: <a href="https://github.com/d-k-patel/ai-ffmpeg-cli" rel="nofollow">https://github.com/d-k-patel/ai-ffmpeg-cli</a>
PyPI: <a href="https://pypi.org/project/ai-ffmpeg-cli/" rel="nofollow">https://pypi.org/project/ai-ffmpeg-cli/</a><p>Install: pip install ai-ffmpeg-cli<p>I'd love feedback on the UX and any features you'd find useful. What video processing tasks do you find most frustrating?