Note: The suggestions in this article are for reference only. We do not provide support for third-party encoders. There is no supporting forum thread for this article.
Microsoft Expression Encoder 4
The Wowza sample videos (that ship with Wowza Media Server and those that can be downloaded from Video on Demand Tutorial) were encoded using Expression Encoder 4, which can generate multiple versions at different bitrates that are properly key-frame aligned, suitable for muli-bitrate streaming.
The following Expression Encoder 4 presets were used to encode the sample videos:
FFmpeg
Note: Updated for FFmpeg version N-52458-gaa96439 (04-30-2013)
FFmpeg is a good option for encoding single videos (multi-bitrate encoding hasn't worked using FFmpeg).
- To use these FFmpeg commands, get the most recent FFmpeg version from:
http://ffmpeg.arrozcru.org/autobuilds/
-or-
http://www.videohelp.com/tools/ffmpeg
- Setup the presets, which are required for the commands below.
- Create the folder structure:
<drive letter>:\usr\local\share\ffmpeg
- Copy all of the files from the presets folder in the FFmpeg package to this folder.
- Create the folder structure:
Note: On Mac OS X, the following examples work with the version of FFmpeg that's installed by Mac Ports. The presets are also installed.
Example FFmpeg commands
The following example uses this sample MP4 video file.
Code:
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
Code:
ffmpeg -i Butterfly_HD_1080p.mp4 -s 212x120 -y -strict experimental -acodec aac -ab 96k -ac 2 -ar 48000 -vcodec libx264 -vprofile baseline -g 48 -b 85000 -level 30 -threads 64 butterfly_175k.mp4
Note: Microsoft Silverlight players prefer a 2-second key frame frequency. If you set the -r (fps) flag to half of the -g (GOP) setting, the video will have a 2-second key frame frequency. In the examples above where -g is 60, you would set -r 30.
Richard


Article List
Categories
Wowza Media