如何在Linux上安装Mencoder和MPlayer
时间:2019-05-29 14:48:05 来源:igfitidea点击:
Mencoder是MPlayer媒体播放器的一个伴生程序,可用于编码或转换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. Doesnt 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, ...)