1.4.3 • Published 9 months ago

menc v1.4.3

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

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
1.4.3

9 months ago

1.4.2

9 months ago

1.3.3

10 months ago

1.4.1

9 months ago

1.4.0

9 months ago

1.3.2

11 months ago

1.3.1

11 months ago

1.3.0

11 months ago

1.2.5

12 months ago

1.2.4

12 months ago

1.2.3

12 months ago

1.2.1

12 months ago

1.2.0

12 months ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago