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

@bobfrankston/vhscap

v0.1.1

Published

Capture VHS/composite video from a DirectShow device with ffmpeg, with a live preview window that never aborts the recording

Readme

vhscap

Record from a DirectShow capture device (a generic USB VHS/composite dongle) with ffmpeg, showing a live preview window while it records.

Install

npm install -g @bobfrankston/vhscap

Windows-only (DirectShow). Requires ffmpeg + ffplay on PATH and Node 25+.

This ffmpeg build has no SDL output device, so ffmpeg can't open its own preview window. vhscap has ffmpeg write the recording file and pipe a second low-latency stream (intra-only mpeg2, no encoder lookahead lag) which the script forwards to an ffplay window. Because the script does the forwarding, closing the preview window does not stop the recording.

Usage

vhscap -list                      list video/audio capture devices
vhscap -modes [-video "name"]     list a device's supported resolutions/framerates
vhscap [options]                  record — press q in the console to stop

Options:

| Flag | Meaning | |------|---------| | -video "name" | video device (auto-picked when only one real device exists; OBS Virtual Camera is ignored) | | -audio "name" | audio device, or -audio none. Default: the audio device on the same physical USB device as the video device (paired via Windows PnP vid/pid), falling back to name matching (e.g. "AV TO USB2.0" / "Line (AV TO USB2.0)"). If no single device pairs, vhscap lists them and asks for -audio. | | -size WxH | force capture resolution (default: device native) | | -fps n | force framerate (default: device native) | | -out file | output file (default vhs-YYYYMMDD-HHMMSS.mkv) | | -crf n | x264 quality, lower = better (default 18, visually lossless for VHS) | | -nopreview | record without the preview window |

Typical session:

vhscap -list
vhscap -modes -video "USB Video"
vhscap -video "USB Video" -audio "Line (USB Audio Device)"

Notes on VHS resolution

There is no 480x320 mode — NTSC composite capture is delivered at 720x480 (or 640x480) at 29.97 fps interlaced, and that's the native mode generic dongles expose. VHS tape itself only resolves ~240 luma lines horizontally, but you still capture at 720x480 because that's what the digitizer emits; downscaling would discard information. Leave -size unset to get the device's native mode; use -modes to see what the dongle actually offers.

The recording is kept as the dongle delivers it (interlaced). If you later want a deinterlaced copy for viewing: ffmpeg -i in.mkv -vf yadif out.mp4.

Development

Source is vhscap.ts, compiled in place by tsc (co-located .js/.d.ts/.map). Publish with npmglobalize.