Do scheduled, adaptive bitrate streaming using Stream class streams

For the example, you can download the following versions of the big buck bunny clip and put them in the Wowza Streaming Engine server content folder:

Each item must be keyframe-aligned for switching to work. For encoding suggestions to achieve this, see Encode VOD using FFmpeg with Wowza Streaming Engine.

Make sure the Stream Class Scheduler is set up:

  1. Get the Wowza Module Collection package.
  2. Add the server listener to /conf/Server.xml, then restart Wowza Streaming Engine.
    <ServerListener>
    	<BaseClass>com.wowza.wms.collection.serverlistener.ServerListenerStreamPublisher</BaseClass>
    </ServerListener>
  3. Create the streamschedule.smil file in the /content folder:
    <smil>
        <head>
        </head>
        <body>
         	 <stream name="Stream1"></stream>
         	 <stream name="Stream2"></stream>
    	 <stream name="Stream3"></stream>
    
            <playlist name="pl1" playOnStream="Stream1" repeat="true" scheduled="2014-12-11 16:26:00">
                <video src="mp4:bigbuckbunny_450.mp4" start="0" length="-1"/>
            </playlist>
    	<playlist name="pl2" playOnStream="Stream2" repeat="true" scheduled="2014-12-11 16:26:00">
                <video src="mp4:bigbuckbunny_750.mp4" start="0" length="-1"/>
            </playlist>
            <playlist name="pl3" playOnStream="Stream3" repeat="true" scheduled="2014-12-11 16:26:00">
                <video src="mp4:bigbuckbunny_1100.mp4" start="0" length="-1"/>
            </playlist>
        </body>
    </smil>
  4. Create the switching SMIL file (switch.smil) in the content folder:
    <smil>
    	<head>
    	</head>
    	<body>
    		<switch>
    			<video src="Stream1" system-bitrate="450000"/>
    			<video src="Stream2" system-bitrate="750000"/>
    			<video src="Stream3" system-bitrate="1100000"/>
    		</switch>
    	</body>
    </smil>
  5. Restart Wowza Streaming Engine to load the scheduler.

Playback in iOS:

http://[wowza-ip-address]:1935/live/smil:switch.smil/playlist.m3u8

Playback in Silverlight:

http://[wowza-ip-address]:1935/live/smil:switch.smil/Manifest

Playback Flash HTTP (San Jose) stream:

http://[wowza-ip-address]:1935/live/smil:switch.smil/manifest.f4m