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

@shaztech/video-stitcher

v1.1.0

Published

CLI tool for stitching videos and images together using FFmpeg

Readme

video-stitcher

CI npm

A CLI tool to stitch videos and images into a single MP4 using FFmpeg.

Prerequisites

  • Node.js 20+
  • FFmpeg installed and on your system PATH

Installation

Global install (recommended)

npm install -g @shaztech/video-stitcher

This adds the video-stitcher command to your PATH.

Run without installing

npx @shaztech/video-stitcher <input-files...>

Local development

git clone https://github.com/shaztechio/video-stitcher.git
cd video-stitcher
npm install
npm link          # makes video-stitcher available globally from this checkout

Usage

video-stitcher [options] <input-files...>

At least 2 input files are required.

Options

| Option | Description | Default | | ------ | ----------- | ------- | | -o, --output <file> | Output file path | stitched_<timestamp>.mp4 | | -d, --image-duration <n> | Default display duration for images (seconds) | 1 | | --bg-audio <file> | Background audio file to mix into the output | | | --bg-audio-volume <n> | Background audio volume multiplier (0.0–2.0) | 1.0 | | -h, --help | Show help message | |

Per-image duration

Append :<seconds> to an image filename to override the global --image-duration default:

video-stitcher image1.jpg:3 image2.jpg:5 video1.mp4 -o output.mp4
  • Images without an annotation fall back to -d / --image-duration
  • Duration annotations on video files are silently ignored (videos use their actual duration)
  • Globs with annotations (e.g. *.jpg:4) are not supported — use -d for a uniform default

Background audio

Use --bg-audio to mix a background audio track into the final output:

video-stitcher video1.mp4 video2.mp4 --bg-audio music.mp3 -o output.mp4
  • The audio loops automatically if shorter than the video
  • The audio is trimmed if longer than the video
  • Use --bg-audio-volume to adjust the level: 0.0 is muted, 1.0 is original, 2.0 is double

Use Cases

See USECASES.md for common usage patterns and pipeline ideas.

Examples

# Stitch two videos
video-stitcher video1.mp4 video2.mp4 -o output.mp4

# Include images with a global 2-second duration
video-stitcher image1.jpg video1.mp4 image2.jpg -o output.mp4 -d 2

# Per-image durations
video-stitcher image1.jpg:3 image2.jpg:5 video1.mp4 -o output.mp4

# Mix per-image and global default
video-stitcher image1.jpg:3 image2.jpg video1.mp4 -o output.mp4 -d 2

# Process all MP4s in a directory
video-stitcher *.mp4 -o combined.mp4

# Add background music
video-stitcher video1.mp4 video2.mp4 --bg-audio music.mp3 -o output.mp4

# Add background music at half volume
video-stitcher image1.jpg:3 video1.mp4 --bg-audio music.mp3 --bg-audio-volume 0.5 -o output.mp4