mencoder是一个配套的程序为可用于编码或转换的任何音频或视频流,其MPlayer能读取MPlayer的媒体播放器。对于启用非自由格式的MPlayer和gmplayer的说明,请参阅RestrictedFormats wiki页面。欲了解更多信息,请访问MPlayer的网站。
第1步.安装MenCoder 和 MPlayer
CentOS的/ RHEL和Fedora用户,请确保您已
启用ATrpms库系统。让我们开始安装MPlayer和mencoder按照您的操作系统。
在CentOS / RHEL和Fedora:
# yum install mencoder
对于Ubuntu和Debian:
$ sudo apt-get update
$ sudo apt-get install mencoder
第2步.检查音频/视频编码
成功安装mencoder之后,让我们检查可用的音频/视频编码
视频编解码器:
$ mencoder -ovc help
MEncoder svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
nuv - nuppel video
lavc - libavcodec codecs - best quality!
vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.
qtvideo - QuickTime DLLs, currently only SVQ1/3 are supported.
xvid - XviD encoding
x264 - H.264 encoding
音频编解码器:
$ mencoder -oac help
MEncoder svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
Available codecs:
copy - frame copy, without re-encoding (useful for AC3)
pcm - uncompressed PCM audio
mp3lame - cbr/abr/vbr MP3 using libmp3lame
lavc - FFmpeg audio encoder (MP2, AC3, ...)