Mencoder は、MPlayerが読み取ることができるオーディオまたはビデオストリームをエンコードまたは変換するために使用できるMPlayerメディアプレーヤーのコンパニオンプログラムです。 MPlayerおよびgmplayerで非フリー形式を有効にする手順については、RestrictedFormatswikiページを参照してください。詳細については、MPlayerのWebサイトにアクセスしてください。
ステップ1.MenCoderとMPlayerをインストールします
CentOS / RHELおよびFedoraユーザーは、システムでATrpmsリポジトリーが有効になっていることを確認してください。オペレーティングシステムに応じて、MPlayerとMencoderのインストールを始めましょう。
CentOS / RHELおよびFedoraの場合:
# yuminstall mencoder
UbuntuおよびDebianの場合:
$ sudo apt-getupdate $ sudo apt-getinstall 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, ...)