menc
v1.4.3
Published
Media encoder (ffmpeg wrapper)
Downloads
83
Readme
Compress and Convert Your Videos with Command Line
Quick Start
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