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

aufmt

v1.0.1

Published

## Overview

Downloads

6

Readme

Aufmt

Overview

Aufmt is a rule-based audio and video encoder. It can be used to transcode media into your preferred formats using ffmpeg as a backend. See the provided config/example.js for an example of how to configure your encoding rules.

Install it from NPM:

npm install -g aufmt

Usage

To see the provided documentation, use aufmt --help.

Inspecing files

You can use the aufmt command on its own to analyze a file and show the various sub-streams:

$ aufmt your_file.mkv
your_file.mkv:
* v:0 hevc jpn [default]
* a:0 ac3 eng fltp (6) [5.1(side)] [default]
* a:1 ac3 eng fltp (2) [stereo]
* a:2 ac3 jpn fltp (6) [5.1(side)]
* s:0 subrip eng [forced]
* s:1 subrip eng

Re-encoding files

Re-encode your media based on rules defined in the ~/.aufmt.js config file. See the config/example.js for an example of how this config file should be defined.

Basic Transcoding

It is recommended to use the -d option initially to perform a dry-run. This will display the stream transformations without performing any re-encoding:

$ aufmt recode -d your_file.mkv

When you are satisfied, remove the -d option to perform transcoding (if needed).

By default, aufmt will output the file using a temporary suffix. For example, the file your_file.mkv will be transcoded to a file following the pattern your_file.XXXXXX.tmp.mkv.

If you would like aufmt to replace the original file when transcoding is finished, use the -r option:

$ aufmt recode -r your_file.mkv`

Please use this carefully as it is destructive and can result in data loss.

Find more details using the aufmt recode --help command.

Stream mapping

By default, all streams will be copied or transcoded into the output file. You can select or deselect specific streams using the -m (map) option. For example:

$ aufmt recode your_file -m v:0,a:1,sn

This will select the first video stream (v:0), the second audio stream (a:0), and will de-select all subtitle streams (sn). This syntax is designed to mirror ffmpeg's -map option.

Reordering streams is not currently possible, please use a post-processing tool like mkvmerge if you need to manipulate streams in a more complex way.

Additional options

Additional options can be passed to the ffmpeg backend using a variety of ways:

  • Presets: Use -p to specify a named rule preset to apply (defined in your config file), instead of using the default preset defined in the configuration file.
  • Option Groups: Use -o to specify a named option group (defined in your config file) to be included with the ffmpeg command.
  • Inline Options: Use -v, -a, and -s to specify additional video, audio, and subtitle encoder options inline, as needed.

When using complex transcoding configurations it is highly recommended to use the -d option for a dry-run to preview the ffmpeg options before performing a transcode.