Package Exports
- ffmpeg-generator
- ffmpeg-generator/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ffmpeg-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Generate multi-resolution FFmpeg HLS commands from any .mp4 file via a smart CLI. Auto-detects streams, builds playlists, and speeds up your video pipeline.
๐ฌ ffmpeg-generator
CLI tool to generate high-quality FFmpeg HLS commands โ fast, smart, and stream-ready โก
โก What is ffmpeg-generator
?
ffmpeg-generator
is a fast, developer-friendly CLI tool to generate and run complex FFmpeg commands for HLS transcoding. It auto-scales videos to multiple resolutions, handles audio streams, and outputs a fully functional master.m3u8
playlist โ ready for streaming ๐
โจ Features
- ๐ฆ Converts
.mp4
to multi-quality.m3u8
(HLS) - ๐ Auto-detects video resolution & audio index
- ๐ Smart directory structure with confirmation prompts
- ๐ง Built-in presets for:
- 2160p, 1440p, 1080p, 720p, 480p, 360p
- ๐งช Built-in
ffprobe
checks before processing - ๐ฌ Interactive CLI with
inquirer
- โ๏ธ Perfect for streaming servers, encoding queues, media tools
- ๐ผ๏ธ Optional logo watermark overlay on all resolutions (
--logo
) - ๐ Customizable FFmpeg encoding preset speed (
--speed
) Supports:placebo
,slow
,medium
,fast
,faster
,veryfast
(default),superfast
,ultrafast
- โฑ๏ธ Adjustable segment duration with
--hls-time
option (default:6
seconds)
๐งโ๐ป Installation
โ Warning: Make sure you have ffmpeg installed and available in your PATH.
npm install -g ffmpeg-generator
๐ Usage
ffgen <input-file> <output-dir> [optional-subfolder]
ffgen input.mp4 output-folder-path
โ FAQ
Q: Do I need FFmpeg installed? A: Yes, both ffmpeg and ffprobe must be in your PATH.
Q: Is it open-source? A: MIT license. Steal it. Fork it. Build on it.
๐ง Author
Built with โค๏ธ by @sirojbek
โIf you manually write FFmpeg commands in 2025โฆ you need this CLI and a vacation ๐ญโ
๐ License
MIT ยฉ 2025 Feel free to remix, extend, or publish your own variant.
Contact
Linked In: sirojbekmaqsudov
Made with โ, bugs, and ffmpeg rage by Sirojbek, Smash that โญ on GitHub
Devs who know, know.