🖥️mencoder
➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the mencoder command with important options and switches using examples.
4 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁
# ███╗ ███╗███████╗███╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗██████╗
# ████╗ ████║██╔════╝████╗ ██║██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗
# ██╔████╔██║█████╗ ██╔██╗ ██║██║ ██║ ██║██║ ██║█████╗ ██████╔╝
# ██║╚██╔╝██║██╔══╝ ██║╚██╗██║██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗
# ██║ ╚═╝ ██║███████╗██║ ╚████║╚██████╗╚██████╔╝██████╔╝███████╗██║ ██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝
# To convert a series of jpg files to an avi movie that can be displayed by, for example, Quicktime Player with no add-ons, use:
mencoder "mf://*.jpg" -o movie.avi -ovc lavc -lavcopts vcodec=mjpeg
# Notes:
# It can also make mpeg movies but these do not seem readable by Quicktime Player
# Other vcodecs may give more efficient or higher quality results and be playable on some players, but mjpeg is the only one I found to work with the standard Quicktime Player
# To download mencoder for MacOSX, particularly for Intel CPU, follow the link at http://ffmpegx.com/download.html .
# Useful discussions are on Wikipedia and here.
# Other Possibilities
# ffmpeg or ppmtompeg (discussed here) or mjpeg.
#-----------------------------------------------------------------#
# Join several videos with Mencoder
#=====================================#
# Here is how to merge several video files into a signle one with Mencoder.
# It is pretty easy, here it is:
mencoder -oac copy -ovc copy -idx -o output.avi video1.avi video2.avi video3.avi
# The -oac copy option tells mencoder to just copy the audio stream (no reencoding). -ovc copy does the same with the video stream.
# The -idx option asks mencoder to build the index if none was found. This makes searchin g inside the video easier.
# -o stands for "output" and specifies the o utput file.
# The last few parameters are the input video files.
# You can join as many files as you like. This will work for videos of the same resolution, and using the same codec, but any video format that mencoder recognizes is fine.
# Easy with mencoder (shipped with mplayer in Arch Linux):
mencoder -oac copy -ovc copy video1.avi video2.avi -o final.avi
# Or avimerge
avimerge -o cd.avi -i cd1.avi cd2.avi
# Concatenate two or more movie files into one using mencoder
mencoder cd1.avi cd2.avi -o movie.avi -ovc copy -oac copy
# Explanation:
# You can specify as many files as you want on the command line to process them in sequence.
# -ovc copy simply means to copy the video exactly
# -oac copy simply means to copy the audio exactly
# -o movie.avi is the output file, with all the source files concatenated
# Limitations:
# mencoder is usually not a standard package
# mencoder may be in the same package as mplayer, or maybe not
# mencoder has binary packages for Linux, Mac and Windows
See the MPlayer homepage for more info: http://www.mplayerhq.hu/
# Rotate a movie file with mencoder
mencoder video.avi -o rotated-right.avi -oac copy -ovc lavc -vf rotate=1
# Explanation: mencoder is part of mplayer.
# Other possible values of the rotate parameter:
# 0: Rotate by 90 degrees clockwise and flip (default).
# 1: Rotate by 90 degrees clockwise.
# 2: Rotate by 90 degrees counterclockwise.
# 3: Rotate by 90 degrees counterclockwise and flip.
#==============================##==============================#
# CMD MENCODER #
#==============================##==============================#
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command mencoder in a clear format. This allows users to quickly access the needed information for mencoder without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for mencoder are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.