个人工具

UbuntuHelp:MEncoder/zh

来自Ubuntu中文

跳转至: 导航, 搜索

IconsPage?action=AttachFile&do=get&target=mplayer.png

什么是 MEncoder?

Mencoder is a companion program to the [[UbuntuHelp:MPlayer/zh| MPlayer media player]] that can be used to encode or transform any audio or video stream that MPlayer can read. See the RestrictedFormats wiki page for instructions for enabling non-free formats in MPlayer and gmplayer. For more information visit the MPlayer web site.Filters include cropping, scaling, vertical flipping, horizontal mirroring, expanding to create letterboxes, rotating, brightness/contrast, changing the aspect ratio of the video's pixels, colorspace conversion, hue/saturation, color-specific gamma correction, filters for reducing the visibiltiy of compression artifacts caused by MPEG compression (deblocking, deringing), automatic brightness/contrast enhancement (autolevel), sharpness/blur, denoising filters, and several different ways of deinterlacing. Certain filters capable of reversing telecine that do not work well with MPlayer can be used as well.

MencoderMPlayer 媒体播放器的一个协同程序用于对所有音频或视频流的解码和转换以便MPlayer读取。这里 你可以看到关于在 MPlayer中使用非免费格式文件还有gmplayer的说明。更多信息请浏览MPlayer网站。滤镜包括剪裁,缩放,垂直翻转;均衡器,拓展到创建字符框,旋转,亮度/对比度,改变视频横纵比; 颜色空间转换,色调/饱和度,色彩特定伽马校正器;有的滤镜是为减少MPEG压缩处理造成的清晰度下降(去块, deringing ) ,自动亮度/对比度增强( autolevel ),锐利/模糊,去噪滤波器,和几个不同的扫描方式。某些滤镜能够校正无法播放的电视和电影使MPlayer能够顺利播放。

如何使用MEncoder

安装

首先,保证满足mencoder软件包安装需要的所有依赖关系

 sudo apt-get install mencoder

你可以也要考虑寻找并安装w32codecs软件包,如果你要用到专有格式,如wmv。

基本用法

使用mencoder,你必须指定一个输入文件,一个输出文件,一个音频解码器和一个视频解码器。做为一个基本的模式,你可以用如下的命令将视频文件转换成任何Mplayer可读的类型,如用一个AVI文件使用MP3解码器。

 mencoder <输入的电影文件名> -oac mp3lame -ovc lavc -o output_movie.avi 

音频/视频解码器

查看你安装过的音频解码器列表,运行

 mencoder -oac help 

使用音频解码器,特别如这个例子,加上了参数-oac <音频解码器>。类似地,对于视频解码器,搜索

 mencoder -ovc help 


相关链接