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 🙏

© 2024 – Pkg Stats / Ryan Hefner

menc

v1.4.3

Published

Media encoder (ffmpeg wrapper)

Downloads

83

Readme

Compress and Convert Your Videos with Command Line

Quick Start

  1. Install Node.js or Bun.sh.
  2. Run npx menc or bunx menc.

Usage

Usage: menc [options] <files...>

Media encoder (ffmpeg wrapper)

  It helps to convert media files into different
  formats in a simplier way with frendly UI showing
  progress, eta and compression rate.


Arguments:
  files                        one or more files to encode

Options:
  -v, --version                prints version
  -d, --dir <name>             output directory
  -s, --start-time <hh:mm:ss>  trim start time
  -e, --end-time <hh:mm:ss>    trim end time
  --copy                       copy the input stream (the output will not to be re-encoded)
  -c, --custom <value>         use custom ffmpeg options
  -f, --format <format>        output format (choices: "mp3", "ogg", "mp4", "sd:480p", "hd:720p", "fhd:1080p", "qhd:1440p", "2k:1080p",
                               default: "mp4")
  -h, --help                   display help for command

Hint:
  You can also use short names for the "--format" argument.
  For example, instead of "--format sd:480p" you can type
  "--format sd" or "--format 480p".

Formats:
  mp3 (mpeg-1 Audio Layer 3) is a music format that can compress a file by up to 95%.
  ogg is a multimedia container format that's commonly for audio and video files.
  mp4 is a widely used multimedia file storage format for storing video.
  sd or 480p is a video format with 4:3 ratio and 640x480 size.
  hd or 720p is a video format with 16:9 ratio and 1280x720 size.
  fhd or 1080p is a video format with 16:9 ratio and 1920x1080 size.
  qhd or 1440p is a video format with 16:9 ratio and 2560x1440 size.
  2k video or 1080p is a video format with 1:1.77 ratio and 2048x1080 size.

Examples:
  $ npx menc <filename>

  Since "--format" argument is default to "mp4", this command
  will compress your input file and create a new <filename>.mp4
  file inside the current directory.

  $ npx menc -d 123 *.mov

  It will compress all mov files from the current directory and
  put them inside the "123" sub-directory.

  $ npx menc -f hd <filename>

  It will convert the <filename> video to hd:720p format and
  create a new <filename_hd>.mp4 file inside the current
  directory.

  $ npx menc -s 10 -e 1:09:04 <filename>

  Compress the input file into a new <filename>.mp4 from
  the 10th second until 1:09:04.

  $ npx menc -e 1:05 --copy <filename>

  Trim the input file (no re-encoding) into a new file
  from the beginning until 1:05