fqmpeg
v2.14.0
Published
Fast & Quick FFmpeg CLI - 17 commands for common video tasks
Maintainers
Readme
fqmpeg
Fast & Quick FFmpeg CLI - 17 commands for common video tasks
English
FFmpeg is the most powerful video tool out there. But every time you use it, this happens:
# "I just want to compress a video..."
ffmpeg -i input.mp4 -c:v libx264 -crf 23 -preset medium -c:a aac -movflags +faststart output.mp4# "I just want to make a GIF..."
ffmpeg -ss 10 -t 3 -i input.mp4 \
-vf "fps=15,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \
-loop 0 output.gifWhat was -c:v again? What's the default for -crf? How does the palettegen filter syntax work?
Every time you Google it. Every time you open Stack Overflow. Every time you copy-paste.
fqmpeg skips the "Google → copy-paste" loop:
fqmpeg compress input.mp4
fqmpeg gif input.mp4 -s 10 -d 3All you need to remember is a verb. compress, gif, audio. Add options only when you need them.
Install
npm install -g fqmpegOr run directly with npx:
npx fqmpeg compress input.mp4Prerequisite: FFmpeg must be installed on your system.
Quick Start
# Compress video (H.264, CRF 23)
fqmpeg compress input.mp4
# Create GIF (start at 10s, 3s duration)
fqmpeg gif input.mp4 -s 10 -d 3
# Extract audio as MP3
fqmpeg audio input.mp4
# Resize to 1280px width
fqmpeg resize input.mp4 -w 1280
# Add watermark
fqmpeg watermark input.mp4 logo.pngAll 17 Commands
| Category | Commands |
|----------|----------|
| Basic | compress, audio, info, thumbnail |
| Format | gif, webm, hls |
| Edit | trim, speed, concat |
| Effects | resize, crop, watermark, stabilize, subtitle |
| Audio | strip-audio, denoise |
Common Options
| Option | Description |
|--------|-------------|
| -o, --output <path> | Output file path (default: auto-generated) |
| --dry-run | Print the FFmpeg command without running it |
| -y | Overwrite output without asking |
--dry-run — Learn Instead of Googling
Add --dry-run to see the FFmpeg command without executing it:
$ fqmpeg gif --dry-run input.mp4 -s 10 -d 3
ffmpeg -ss 10 -t 3 -i input.mp4 -vf fps=15,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse -loop 0 input-gif.gifPerfect for learning FFmpeg syntax!
📚 Complete Guide
Detailed documentation with all options and examples:
👉 32blog.com/fqmpeg 👈
- All 17 commands with examples
- Advanced usage patterns
- Tips & best practices
- GUI tool comparisons
Links
- Blog: 32blog.com — FFmpeg guides and more
- X: @omitsu_dev
日本語
FFmpegは最強の動画ツール。でも毎回こうなる:
# 「動画を圧縮したいだけなのに…」
ffmpeg -i input.mp4 -c:v libx264 -crf 23 -preset medium -c:a aac -movflags +faststart output.mp4# 「GIF作りたいだけなのに…」
ffmpeg -ss 10 -t 3 -i input.mp4 \
-vf "fps=15,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \
-loop 0 output.gif-c:vって何だっけ。-crfのデフォルトいくつだっけ。GIFのpalettegen構文どうだっけ。
毎回ググる。毎回Stack Overflowを開く。毎回コピペする。
fqmpegはその「ググる→コピペ」をスキップする:
fqmpeg compress input.mp4
fqmpeg gif input.mp4 -s 10 -d 3覚えることは動詞だけ。compress、gif、audio。オプションは必要なときだけ足す。
インストール
npm install -g fqmpegnpxで直接実行もできます:
npx fqmpeg compress input.mp4前提条件: FFmpeg がインストールされている必要があります。
クイックスタート
# 動画を圧縮(H.264, CRF 23)
fqmpeg compress input.mp4
# GIF作成(10秒地点から3秒間)
fqmpeg gif input.mp4 -s 10 -d 3
# 音声をMP3で抽出
fqmpeg audio input.mp4
# 幅1280pxにリサイズ
fqmpeg resize input.mp4 -w 1280
# 透かし追加
fqmpeg watermark input.mp4 logo.png全17コマンド
| カテゴリ | コマンド |
|---------|---------|
| 基本 | compress, audio, info, thumbnail |
| 変換 | gif, webm, hls |
| 編集 | trim, speed, concat |
| 効果 | resize, crop, watermark, stabilize, subtitle |
| 音声 | strip-audio, denoise |
共通オプション
| オプション | 説明 |
|-----------|------|
| -o, --output <path> | 出力ファイルパス(デフォルト: 自動生成) |
| --dry-run | FFmpegコマンドを表示するだけで実行しない |
| -y | 上書き確認をスキップ |
--dry-run — ググる代わりに
--dry-run をつけると、実行せずにFFmpegコマンドだけ表示する:
$ fqmpeg gif --dry-run input.mp4 -s 10 -d 3
ffmpeg -ss 10 -t 3 -i input.mp4 -vf fps=15,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse -loop 0 input-gif.gifFFmpeg構文の学習に最適!
📚 完全ガイド
全オプション+実例付きの詳細ドキュメント:
👉 32blog.com/fqmpeg 👈
- 全17コマンドの詳細解説
- 高度な使用パターン
- コツ・ベストプラクティス
- GUIツール比較
リンク
- ブログ: 32blog.com — FFmpegガイド等
- X: @omitsu_dev
License
MIT
