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

@gromlab/create-vod

v0.1.17

Published

DASH/HLS video converter with hardware acceleration (NVENC/QSV/AMF/VAAPI), thumbnails and poster generation

Downloads

1,203

Readme

Create VOD 🎬

🇷🇺 Russian README: https://gromlab.ru/vod/create-vod/src/branch/master/README_RU.md

CLI tool to convert videos to DASH and HLS with hardware acceleration (NVENC / Intel QSV / AMD AMF / VAAPI), adaptive streaming, and automatic thumbnails/poster.

Features:

  • ⚡ Hardware acceleration: auto-detect encoder/decoder (NVENC / Intel QSV / AMD AMF / VAAPI / CPU)
  • 🎯 Formats: DASH and HLS (shared segments)
  • 📊 Quality profiles: multiple bitrates/FPS (auto or custom)
  • 🖼️ Preview: thumbnail sprite + VTT, poster from the first frame
  • ⏱️ Progress: per-profile and overall CLI progress bars

Install

For the CLI to work correctly, FFmpeg and MP4Box must be installed in the system.

# Arch Linux
sudo pacman -S ffmpeg gpac

# Ubuntu/Debian
sudo apt install ffmpeg gpac

# macOS
brew install ffmpeg gpac

Quick Start

Before running, make sure FFmpeg and MP4Box are installed (see Install).

npx @gromlab/create-vod video.mp4

Output: In the current directory you'll get:

video/
├── manifest.mpd     # DASH manifest
├── master.m3u8      # HLS master playlist
├── poster.jpg       # Poster frame
├── thumbnails.{jpg,vtt}  # Sprite + VTT cues
├── audio/           # Audio init + segments (AAC)
├── 1080p/           # H.264 1080p init + segments
├── 720p/            # H.264 720p
├── 480p/            # H.264 480p
├── 360p/            # H.264 360p
├── 1080p-av1/       # AV1 1080p (if av1 selected)
└── ...              # Other profiles/codecs as {profile}-{codec}

CLI Usage

create-vod <input-video> [output-dir] [-r resolutions] [-c codec] [-p poster-timecode] [-e encoder] [-d decoder] [-m]

Main arguments

| Argument | Description | Default | Required | |---------------|------------------------------|---------|----------| | input-video | Path to input video file | - | ✅ | | output-dir | Output directory | . | ❌ |

Options

| Option | Description | Values / Format | Default | Example | |--------|----------------------------|----------------------------|----------|---------------------------------| | -r, --resolutions | Quality profiles | 360, 720@60, 1080-60 | auto | -r 720,1080,1440@60 | | -c, --codec | Video codec(s) | h264, av1 (comma/space separated) | h264 | -c h264,av1 | | -p, --poster | Poster timecode | HH:MM:SS or seconds | 00:00:00 | -p 00:00:05 or -p 10 | | -e, --encoder | Video encoder | auto, nvenc, qsv, amf, vaapi, videotoolbox, v4l2, cpu | auto | -e nvenc | | -d, --decoder | Video decoder (hwaccel) | auto, nvenc, qsv, vaapi, videotoolbox, v4l2, cpu | auto | -d cpu | | -m, --muted | Disable audio track | flag | off | -m |

Examples

# Default (DASH + HLS, auto profiles)
npx @gromlab/create-vod video.mp4

# Custom output directory
npx @gromlab/create-vod video.mp4 ./output

# Selected resolutions
npx @gromlab/create-vod video.mp4 -r 720,1080,1440

# High FPS
npx @gromlab/create-vod video.mp4 -r 720@60,1080@60

# Poster from 5th second
npx @gromlab/create-vod video.mp4 -p 5

# Force CPU encode/decode
npx @gromlab/create-vod video.mp4 -c h264 -e cpu -d cpu

# Force GPU encode + CPU decode
npx @gromlab/create-vod video.mp4 -c h264 -e nvenc -d cpu

# Combined parameters
npx @gromlab/create-vod video.mp4 ./output -r 720,1080@60,1440@60 -p 00:00:10

# No audio
npx @gromlab/create-vod video.mp4 -m

Supported resolutions

| Resolution | Label | FPS options | |------------|----------------|------------------| | 360 | 360p (640×360) | 30, 60, 90, 120 | | 480 | 480p (854×480) | 30, 60, 90, 120 | | 720 | 720p (1280×720)| 30, 60, 90, 120 | | 1080 | 1080p (1920×1080)| 30, 60, 90, 120| | 1440 | 1440p (2560×1440)| 30, 60, 90, 120| | 2160 | 2160p (3840×2160)| 30, 60, 90, 120|

High FPS (60/90/120) are generated only if the source supports that FPS.

Defaults & Automation

  • Segment duration: 2 seconds
  • Hardware accel: auto-detect best encoder/decoder (GPU if available, else CPU)
  • Profiles: auto-selected based on source resolution
  • Bitrate: BPP-based dynamic calculation
  • Thumbnails: auto sprite (160×90, 1s interval) + VTT
  • Poster: first frame (0:00:00, configurable via -p)
  • Parallel encoding: enabled
  • AV1: enabled only if hardware AV1 encoder detected (in auto mode); otherwise stays on H.264

Requirements: Node.js ≥18.0.0, FFmpeg, MP4Box (gpac), optional NVIDIA/Intel/AMD GPU for acceleration