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 🙏

© 2025 – Pkg Stats / Ryan Hefner

codem-watcher

v0.0.10

Published

Node commandline application that monitors a folder and enqueue transcoder jobs

Readme

Codem-watcher

Description

Codem-watcher is a program that monitors a folder for new MP4 files and transcode the file into multiple files each with different bitrates. The transcoding is performed by codem-transcode. The resulting files are copied to the specified destination folder and a SMIL file are created. These files can then be delivered by for example a Wowza Streaming Engine.

Installation

Recommended installation procedure is to use npm:

# npm install codem-watcher

Use the -g option to install it globally

# npm install -g codem-watcher

To start the program find where ´npm´ installs your packages and this script. Then run

# /PATH/TO/PROGRAM/bin/codem-watcher

Configuration

The configuration is a simple text file including a valid JSON object. Example config:

{
  watchfolder: '/mnt/resource/incoming',
  destination: '/mnt/resource/test/',
  transcoderapi: 'http://localhost:3080/jobs',
  profile: {
    '720p': {
      'width': 1280,
      'height': 720,
      'video': '1300000',
      'audio': '128000',
      'encoder': "-s 1280x720 -strict experimental -acodec aac -ab 128k -ac 2 -ar 48000 -vcodec libx264 -vprofile main -g 48 -b 1100000" 
    },
    '360p': {
      'width': 640,
      'height': 360,
      'video': '820000',
      'audio': '64000',
      'encoder': "-s 640x360 -strict experimental -acodec aac -ab 64k -ac 2 -ar 48000 -vcodec libx264 -vprofile main -g 48 -b 750000"
    },
    '160p': {
      'width': 284,
      'height': 160,
      'video': '300000',
      'audio': '46000',
      'encoder': "-s 284x160 -strict experimental -acodec aac -ab 48k -ac 2 -ar 48000 -vcodec libx264 -vprofile main -g 48 -b 240000"
    }
  }

}

Use the CLI option (´-c´) and point to the configuration file

# codem-watcher -c watcher-config.json

Issues and support

If you run into any issues while using codem-transcode please use the Github issue tracker to see if it is a known problem or report it as a new one.

License

Codem-watcher is released under the MIT license see http://opensource.org/licenses/MIT