← 返回命令列表

Linux command

mencoder 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert video

mencoder [input.avi] -o [output.mp4] -ovc lavc -oac mp3lame

Extract audio

mencoder [video.avi] -o [audio.mp3] -ovc copy -oac mp3lame

Resize video

mencoder [input.avi] -o [output.avi] -vf scale=[640:480] -ovc lavc -oac copy

Two-pass encoding

mencoder [input.avi] -o /dev/null -ovc lavc -lavcopts vpass=1 && mencoder [input.avi] -o [output.avi] -ovc lavc -lavcopts vpass=2

Join videos

mencoder -ovc copy -oac copy -o [joined.avi] [file1.avi] [file2.avi]

说明

mencoder encodes video from MPlayer. It converts between formats and applies filters. The tool is part of MPlayer project. Superseded by FFmpeg in many cases.

参数

-o _FILE_
Output file.
-ovc _CODEC_
Video codec.
-oac _CODEC_
Audio codec.
-vf _FILTERS_
Video filters.
--help
Display help information.

FAQ

What is the mencoder command used for?

mencoder encodes video from MPlayer. It converts between formats and applies filters. The tool is part of MPlayer project. Superseded by FFmpeg in many cases.

How do I run a basic mencoder example?

Run `mencoder [input.avi] -o [output.mp4] -ovc lavc -oac mp3lame` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _FILE_ do in mencoder?

Output file.