English · 中文 · 日本語 · Português · Deutsch
Cloud FFmpeg CLI — process video/audio files via FFHub.io API. No local FFmpeg installation required.
npm install -g ffhubOr run directly:
npx ffhub -i https://example.com/video.mp4 -c:v libx264 output.mp4# Save your API key
ffhub config YOUR_API_KEY
# Or use environment variable
export FFHUB_API_KEY=YOUR_API_KEYGet your API key at ffhub.io (free tier available).
Use the same FFmpeg arguments you already know:
# Compress video
ffhub -i https://example.com/video.mp4 -c:v libx264 -crf 28 output.mp4
# Convert format
ffhub -i https://example.com/video.mov -c:v libx264 -c:a aac output.mp4
# Extract audio
ffhub -i https://example.com/video.mp4 -vn -c:a libmp3lame output.mp3
# Trim video
ffhub -i https://example.com/video.mp4 -ss 00:00:10 -to 00:00:30 -c copy clip.mp4
# Resize to 720p
ffhub -i https://example.com/video.mp4 -vf scale=-1:720 output.mp4
# Create GIF
ffhub -i https://example.com/video.mp4 -ss 5 -t 3 -vf "fps=10,scale=480:-1" output.gifLocal files are automatically uploaded:
ffhub -i ./my-video.mp4 -c:v libx264 output.mp4
ffhub -i ~/Downloads/recording.mov -vn output.mp3ffhub status <task_id>ffhub -i video.mp4 -c:v libx264 output.mp4
│
├─ Detect local file → upload to FFHub cloud
├─ Submit FFmpeg command to API
├─ Poll progress until complete
└─ Return download URL + file info
| Command | Description |
|---|---|
ffhub [ffmpeg args] |
Submit an FFmpeg task |
ffhub status <id> |
Check task status |
ffhub config <key> |
Save API key to ~/.ffhub/config.json |
ffhub config |
Show current API key |
ffhub help |
Show help |
- Node.js >= 18
- FFHub.io API key
MIT