• How to use Encoding.com with Wowza Media Server

    This article was contributed by Encoding.com. For additional help regarding transcoding videos for use with Wowza Media Server, please visit: http://www.encoding.com/using_wowza_media_server .

    Wowza + Encoding.com = Problem Solved!

    Preparing videos for use with the Wowza Media Server can be accomplished very simply using one of the Wowza Presets on Encoding.com (you'll need a separate account with Encoding.com). Choose a Preset, set a destination location for output files and you're off and running. You can send output files to any location but most likely you'll want to send them directly to your Wowza media server.

    1. Wowza Preset for Single Bitrate output: quick setup to generate a single video output in .mov format

    When using the web interface, select the "Wowza" preset from the Format drop-down menu to generate a static bitrate video output.

    For API jobs, use this XML template:

    <format>
    <output>wowza</output>
    <destination>ftp://your.server.com/output/wowza_test_video.mov</destination>
    <size>320x240</size>
    <bitrate>256k</bitrate>
    <audio_bitrate>128k</audio_bitrate>
    <audio_sample_rate>48000</audio_sample_rate>
    <audio_channels_number>2</audio_channels_number>
    <framerate>24</framerate>
    <keep_aspect_ratio>yes</keep_aspect_ratio>
    <video_codec>libx264</video_codec>
    <profile>main</profile>
    <audio_codec>libfaac</audio_codec>
    <two_pass>no</two_pass>
    <turbo>no</turbo>
    <twin_turbo>no</twin_turbo>
    <cbr>no</cbr>
    <deinterlacing>no</deinterlacing>
    <keyframe>300</keyframe>
    <audio_volume>100</audio_volume>
    <file_extension>mov</file_extension>
    <hint>no</hint>
    </format>
    ----------------------------------------------------------------

    2. Wowza Multi-bitrate Preset for Adapive Bitrate output: quick setup to generate the SMIL index file, output video files (.mov) and the streaming manifest files (.txt)

    When using the web interface, select "Wowza Multi-bitrate" from the Format drop-down menu to generate the necessary files for adaptive streaming.

    For multi-bitrate API jobs, use this XML template:

    <format>
    <output>wowza_multibitrate</output>
    <destination>ftp://your.server.com/output/wowza_test_video.smil</destination>
    <audio_bitrate>128k</audio_bitrate>
    <audio_sample_rate>48000</audio_sample_rate>
    <audio_channels_number>2</audio_channels_number>
    <framerate>24</framerate>
    <keep_aspect_ratio>yes</keep_aspect_ratio>
    <video_codec>libx264</video_codec>
    <profile>wowza_multibitrate</profile>
    <VCodecParameters>no</VCodecParameters>
    <audio_codec>libfaac</audio_codec>
    <two_pass>no</two_pass>
    <turbo>no</turbo>
    <twin_turbo>no</twin_turbo>
    <cbr>no</cbr>
    <deinterlacing>no</deinterlacing>
    <keyframe>48</keyframe>
    <audio_volume>100</audio_volume>
    <file_extension>mov</file_extension>
    <hint>no</hint>
    <bitrates>270k,570k,1000k,1200k,1400k</bitrates>
    <sizes>320x180,420x270,720x406,1024x576,1080x608</sizes>
    </format>
    Sample output SMIL syntax:

    <smil>
    <head>
    </head>
    <body>
    <switch>
    <video src="mp4:wowza_multibitrate_aligned_kf_400.mov" system-bitrate="400000"/>
    <video src="mp4:wowza_multibitrate_aligned_kf_700.mov" system-bitrate="700000"/>
    <video src="mp4:wowza_multibitrate_aligned_kf_1100.mov" system-bitrate="1100000"/>
    <video src="mp4:wowza_multibitrate_aligned_kf_1300.mov" system-bitrate="1300000"/>
    <video src="mp4:wowza_multibitrate_aligned_kf_1500.mov" system-bitrate="1500000"/>
    </switch>
    </body>
    </smil>
    Sample output Smooth Streaming manifest header:

    <?xml version="1.0" encoding="utf-8"?>
    <SmoothStreamingMedia MajorVersion="2" MinorVersion="1" Timescale="10000000" Duration="1471670000">
    <StreamIndex Type="audio" Index="0" Chunks="74" QualityLevels="1" Timescale="10000000" Url="QualityLevels({bitrate})/Fragments(audio={start time})/Chunks({chunk id})/WowzaSessions(2133794089).isma">
    <QualityLevel Bitrate="127473" FourCC="AACL" SamplingRate="48000" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" CodecPrivateData="1190" />

    If you're having problems or want to discuss this article, post in our forum.