JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q51272F
  • License MIT

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

๐ŸŽฌ ffgen โ€” FFmpeg Command Generator CLI

Scoped as: @sirojbek/ffgen
Author: Sirojbek
Version: 1.0.0
License: MIT

โšก What is ffgen?

ffgen 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

๐Ÿง‘โ€๐Ÿ’ป Installation

npm install -g @sirojbek/ffgen

๐Ÿš€ Usage

ffgen <input-file> <output-dir> [optional-subfolder]

โ“ FAQ

Q: Do I need FFmpeg installed? A: Yes, both ffmpeg and ffprobe must be in your PATH.

Q: Can I use it in a BullMQ queue? A: Yep, use it as a subprocess or import its logic.

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.