npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fqmpeg

v2.14.0

Published

Fast & Quick FFmpeg CLI - 17 commands for common video tasks

Readme

fqmpeg

Fast & Quick FFmpeg CLI - 17 commands for common video tasks

English | 日本語


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.gif

What 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 3

All you need to remember is a verb. compress, gif, audio. Add options only when you need them.

Install

npm install -g fqmpeg

Or run directly with npx:

npx fqmpeg compress input.mp4

Prerequisite: 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.png

All 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.gif

Perfect 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


日本語

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

覚えることは動詞だけ。compressgifaudio。オプションは必要なときだけ足す。

インストール

npm install -g fqmpeg

npxで直接実行もできます:

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.gif

FFmpeg構文の学習に最適!

📚 完全ガイド

全オプション+実例付きの詳細ドキュメント:
👉 32blog.com/fqmpeg 👈

  • 全17コマンドの詳細解説
  • 高度な使用パターン
  • コツ・ベストプラクティス
  • GUIツール比較

リンク

License

MIT