需先在系统里单独安装 ffmpeg 可执行文件;字幕合并等示例依赖已有的 srt 与视频文件路径;README 提到 LLaMA2 检查点需从 Hugging Face 另行获取。
FFMPerative
remyxaiMIT更新放缓用自然语言对话就能自动生成 FFmpeg 命令完成视频剪辑、拼接和格式转换,省去手写复杂命令行的麻烦。
Chat to Compose Video
pip install ffmperativeREADME 未说明显存或 GPU 要求,仅要求 Python 3 与 ffmpeg;若使用其 LLaMA2 检查点则需自行准备模型环境。
用自然语言聊天指令驱动 ffmpeg 完成视频剪辑的 LLM 助手
用自然语言对话就能自动生成 FFmpeg 命令完成视频剪辑、拼接和格式转换,省去手写复杂命令行的麻烦。
核心能力
- 把自然语言指令翻译成 ffmpeg 命令执行剪辑
- 支持变速、缩放、裁剪、翻转、倒放等基础操作
- 支持语音转文字并合并 SRT 字幕到视频
- 提供 compose 子命令按文本提示拼接多段素材
- 可作为 Python 库直接调用 ffmp 函数
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
FFMPerative - Chat to Compose Video
FFMPerative is your copilot for video editing workflows. Powered by Large Language Models (LLMs) through an intuitive chat interface, now you can compose video edits in natural language to do things like:
- Change Speed, Resize, Crop, Flip, Reverse Video/GIF
- Speech-to-Text Transcription and Closed-Captions
Just describe your changes like these examples.
Setup
Requirements
- Python 3
- ffmpeg
PyPI:
pip install ffmperative
Or pip install from source:
git clone https://github.com/remyxai/FFMPerative.git
cd FFMPerative && pip install .
Quickstart
Add closed-captions with:
ffmperative do --prompt "merge subtitles 'captions.srt' with video 'video.mp4' calling it 'video_caps.mp4'"
Features
Python Usage
Simply import the library and pass your command as a string to ffmp.
from ffmperative import ffmp
ffmp("sample the 5th frame from '/path/to/video.mp4'")
Compose 🎞️
Use the compose call to compose clips into an edited video. Use the optional --prompt flag to guide the composition by text prompt.
ffmperative compose --clips /path/to/video/dir --output /path/to/my_video.mp4 --prompt "Edit the video for social media"
Resources
- ffmpeg-python
- Sample FFMPerative Dataset
- FFMPerative LLaMA2 checkpoint
- Automatically Edit Videos from Google Drive in Colab