多协议、性能稳定、丰富API的流媒体服务器软件
如何对VOD内容文件进行转码?

Microsoft Expression Encoder 4


Wowza的例子视频文件(随Wowza Streaming Engine一同安装,并可以从如何开始一个VOD点播流?下载) 就是用Expression Encoder 4编码的。 它可以生成多个不同码率且关键帧对齐的版本,可以用于多码率传输。 了解更多Wowza产品细节

下面的Expression Encoder 4 配置用于编码例子视频文件:



FFmpeg


注意: 更新于FFmpeg N-52458-gaa96439版本(04-30-2013)

FFmpeg 是一个针对单个视频文件进行编码的很好的选择(FFmpeg暂不支持多码率编码)。

  1. 要使用这些FFmpeg命令,请从下面获得最新版本的FFmpeg:

    http://ffmpeg.org

    -或-

    http://www.videohelp.com/tools/ffmpeg

  2. 建立预先配置文件,下面的命令会用到它。

    1. 创建文件夹:
      <drive letter>:\usr\local\share\ffmpeg

    2. 将FFmpeg包中的presets文件夹下的所有文件拷贝到这个新的文件夹下。


注意: 在Mac OS X平台上,下面的例子可以在通过Mac Ports安装的FFmpeg版本上运行。同时也要安装好转码配置。

FFmpeg 命令例子

下面的例子采用MP4例子视频文件.
ffmpeg -y -i Butterfly_HD_1080p.mp4 -s 320x180 -y -strict experimental -acodec aac -ab 64k -ac 2 -ar 48000 -vcodec libx264 -vprofile baseline -level 30 -g 48 -b 200000 -threads 64 butterflyiphone_320.mp4

ffmpeg -y -i Butterfly_HD_1080p.mp4 -s 640x360 -y -strict experimental -acodec aac -ab 128k -ac 2 -ar 48000 -vcodec libx264 -vprofile baseline -level 30 -g 48 -b 520000 -threads 64 butterflyiphone_640.mp4

ffmpeg -y -i Butterfly_HD_1080p.mp4 -s 320x180 -y -strict experimental -acodec aac -ab 64k -ac 2 -ar 48000 -vcodec libx264 -vprofile main -g 48 -b 270000 -threads 64 butterfly_400.mp4

ffmpeg -y -i Butterfly_HD_1080p.mp4 -s 420x270 -y -strict experimental -acodec aac -ab 64k -ac 2 -ar 48000 -vcodec libx264 -vprofile main -g 48 -b 570000 -threads 64 butterfly_700.mp4

ffmpeg -y -i Butterfly_HD_1080p.mp4 -s 720x406 -y -strict experimental -acodec aac -ab 128k -ac 2 -ar 48000 -vcodec libx264 -vprofile main -g 48 -b 1000000 -threads 64 butterfly_1100.mp4

ffmpeg -y -i Butterfly_HD_1080p.mp4 -s 1024x576 -y -strict experimental -acodec aac -ab 128k -ac 2 -ar 48000 -vcodec libx264 -vprofile main -g 48 -b 1200000 -threads 64 butterfly_1300.mp4

ffmpeg -y -i Butterfly_HD_1080p.mp4 -s 1080x608 -y -strict experimental -acodec aac -ab 128k -ac 2 -ar 48000 -vcodec libx264 -vprofile main -g 48 -b 1400000 -threads 64 butterfly_1500.mp4
		

你也可以用VideoLAN (VLC) 来转码。要了解更多,请阅读VLC 转码指南