Wowza Community

Scheduled + live stream + transcoder (adaptive bitrate streaming)

Hello,

I’m new in Wowza and I’m testing the trial version, my goal is create a schedule stream with live content transcoded and transcoded videos.

So far I managed to do this without live stream:

streamschedule.smil

<smil>
    <head>
    </head>
    <body>
        <stream name="stream"></stream>
        <playlist name="pl1" playOnStream="stream" repeat="true" scheduled="2015-05-26 12:00:00">
            <video src="mp4:video1.mp4" start="0" length="-1"/>
        </playlist>
        <playlist name="pl2" playOnStream="stream" repeat="true" scheduled="2015-05-26 13:00:00">
            <video src="mp4:video2.mp4" start="0" length="-1"/>
        </playlist>
        <playlist name="pl3" playOnStream="stream" repeat="true" scheduled="2015-05-26 14:00:00">
            <video src="mp4:video3.mp4" start="0" length="-1"/>
        </playlist>
    </body>
</smil>

switch.smil

<?xml version="1.0" encoding="UTF-8"?>
<smil title="Videos">
	<body>
		<switch>
			<video height="720" src="stream_720p" systemLanguage="por" width="1280">
				<param name="videoBitrate" value="1300000" valuetype="data"></param>
				<param name="audioBitrate" value="125000" valuetype="data"></param>
			</video>
			<video height="360" src="stream_360p" systemLanguage="por" width="640">
				<param name="videoBitrate" value="850000" valuetype="data"></param>
				<param name="audioBitrate" value="125000" valuetype="data"></param>
			</video>
			<video height="160" src="stream_160p" systemLanguage="por" width="284">
				<param name="videoBitrate" value="200000" valuetype="data"></param>
				<param name="audioBitrate" value="125000" valuetype="data"></param>
			</video>
		</switch>
	</body>
</smil>

Playback:

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

Or with live stream but without schedule.

<?xml version="1.0" encoding="UTF-8"?>
<smil title="TV24">
	<body>
		<switch>
			<video height="720" src="myStream_source"
                systemLanguage="por" width="1280">
				<param name="videoBitrate" value="2025000" valuetype="data"></param>
				<param name="audioBitrate" value="192000" valuetype="data"></param>
			</video>
			<video height="360" src="myStream_360p "
                systemLanguage="por" width="640">
				<param name="videoBitrate" value="850000" valuetype="data"></param>
				<param name="audioBitrate" value="192000" valuetype="data"></param>
			</video>
			<video height="160" src="myStream_160p" systemLanguage="por" width="284">
				<param name="videoBitrate" value="200000" valuetype="data"></param>
				<param name="audioBitrate" value="192000" valuetype="data"></param>
			</video>
		</switch>
	</body>
</smil>

I know that

Sorry for my english, I hope you can understand my question.

Hello there and welcome to the Wowza support forum.

For clarity, lets assume your live stream is called myStream.

I believe the streamschedule.smil would look like this:

<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="myStream_720p" start="0" length="-1"/>
        </playlist>
	<playlist name="pl2" playOnStream="Stream2" repeat="true" scheduled="2014-12-11 16:26:00">
            <video src="myStream_360p" start="0" length="-1"/>
        </playlist>    
        <playlist name="pl3" playOnStream="Stream3" repeat="true" scheduled="2014-12-11 16:26:00">
            <video src="mySstream_160p" start="0" length="-1"/>
        </playlist>
    </body>
</smil>

And the switch.smil would then be:

<smil>
	<head>
	</head>
	<body>
		<switch>
			<video src="Stream1" system-bitrate="2025000"/>
			<video src="Stream2" system-bitrate="850000"/>
			<video src="Stream3" system-bitrate="200000"/>
		</switch>
	</body>
</smil>

Please make sure you have reviewed this guide:

How to do scheduled, adaptive bitrate streaming using Stream class streams

Also, you can start Wowza in stand-alone mode (install-dir/bin/startup.bat|startup.sh) and view the output in the console. This allows you to see any error or warn messages in real time.

I hope this helps.

Regards,

Salvadore

Thanks for the reply Salvadore

As I mentioned in my post, scheduled live stream with transcoder i can do it, but I can’t discover how to do with another stream with transcoder high quality video.