# Need Help for  Multi-bitrate Video On Demand Streaming

**URL:** https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046
**Category:** Wowza Streaming Engine
**Created:** [January 8, 2010, 7:46pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046 "2010-01-08T19:46:54Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Nanda\_kumar](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@Nanda\_kumar](https://community.wowza.com/u/Nanda_kumar)
#### Post date: [January 8, 2010, 7:46pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/1 "2010-01-08T19:46:54Z")

</div>

Hello,

I want to stream the following code into Multi-bitrate Video using smil file.

\<embed height=“349” width=“500” type=“application/x-shockwave-flash” src=“player.swf” id=“mpl” name=“mpl” quality=“high” allowscriptaccess=“always” allowfullscreen=“true” wmode=“opaque”

flashvars="streamer=rtmp://ec2-174-129-80-132.compute-1.amazonaws.com/vods3&file=amazons3/bucketname/TEST.Title7.mp4&largecontrols=false&overstretch=fi t&image=images/NEWBREED.jpg&frontcolor=0xffffff&backcolor=0x00000 0&flashvars=foo=Hello&lightcolor=0xDB5131&logo=ima ges/action\_videos.gif&bwfile

=images/oscmax.gif&bwstreams=100,250,500"/\>

**Parameters:**

streamer=rtmp://ec2-174-129-80-132.compute-1.amazonaws.com/vods3

file=amazons3/bucketname/TEST.Title7.mp4

Please let me know what all the steps to stream video on multi bitrate using smil file.

Note: I have tried the following tutorial [http://community.wowza.com/t/-/64](http://community.wowza.com/t/-/64) , but dont know how to stream in html page.

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 8, 2010, 2:41pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/2 "2010-01-08T14:41:31Z")

</div>

The first thing you have to do is create a smil file that references different bit rate videos. You change this:

```auto
file=amazons3/bucketname/TEST.Title7.mp4

```

To this:

```auto
file=smil:amazons3/bucketname/mySmil.smil

```

Then create the filed name mySmil.smil and upload to your bucket. The link below shows how to create the smil file. It is going to be sitting next to the videos in the same bucket, so the smile file /video src should just be the video names, not bucket or path.

I think JW player 4.7 or try the latest 5 version should work.

Also add Flashvar “type=rtmp”. Or if JW 5 make it “provider=rtmp”

(also, take this out of the Flashvars “&flashvars=foo=Hello”)

Richard

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [January 19, 2010, 6:01am UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/3 "2010-01-19T06:01:32Z")

</div>

I will give you the same answer here. JW Player seems to be pre-pending smil: to the stream name. Wowza cannot handle the smil: prefix. JW Player should not be pre-pending smil: to the stream name.

Charlie

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 8, 2010, 2:58pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/4 "2010-01-08T14:58:02Z")

</div>

It’s the tutorial you mentioned, about half way down the page in the “Multi-bitrate Video on Demand” section:

[http://community.wowza.com/t/-/64](http://community.wowza.com/t/-/64)

```auto
<smil>
	<head>
	</head>
	<body>
		<switch>
			<video src="mp4:Extremists_700.m4v" system-bitrate="700000"/>
			<video src="mp4:Extremists_350.m4v" system-bitrate="350000"/>
			<video src="mp4:Extremists_200.m4v" system-bitrate="200000"/>
		</switch>
	</body>
</smil>

```

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 9, 2010, 1:13pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/5 "2010-01-09T13:13:29Z")

</div>

The Flashvars is a problem. It’s not well formed and you are trying to do too much too soon. I suggest fixing it and simplifying it. The “provider=rtmp” part is important in this case and it might not be being read because you have nested “flashvars” in the Flashvars. There might be a soft or hard return in the middle of it too. Try it like this for testing:

flashvars=“streamer=rtmp://ec2-174-129-80-132.compute-1.amazonaws.com/vods3&file=smil:amazons3/bucketname/mySmil.smil&provider=rtmp”

I tried to test this but got connection rejected, so I assume you have SecureToken enabled. So if you are not supplying the token correctly, that could also be a problem

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 13, 2010, 1:17pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/6 "2010-01-13T13:17:40Z")

</div>

I see the problem, you are using Wowza 1.7.2.

Multi-bitrate and smil files are not supported in that version. You need to be using a Wowza Server 2 AMI:

[https://www.wowza.com/ec2.html](https://www.wowza.com/ec2.html)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 13, 2010, 3:03pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/7 "2010-01-13T15:03:03Z")

</div>

hm, when I checked the streamer in the source earlier this morning it said:

server=0

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 13, 2010, 3:18pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/8 "2010-01-13T15:18:16Z")

</div>

Try taking out “&bwstreams=100,250,500” from Flashvars.

Maybe this is conflicting with the smil file.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 18, 2010, 2:52pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/9 "2010-01-18T14:52:29Z")

</div>

This is because some versions of JW player look for .mp4 extension and add the “mp4:” prefix. So it is getting doubled up mp4:mp4:streamname.mp4

So don’t add the prefix.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [January 18, 2010, 4:28pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/10 "2010-01-18T16:28:04Z")

</div>

I get “application rejected connection” from your ec2 server with the smil file.

Do you have SecureToken installed? If so, can you remove that for testing. And do you have a sample video in that bucket (eg Extremists.flv) so I can test that.

Also, sorry, but I can’t find what you sent to support. Can you resend and reference this thread.

Richard

---

<div class="post-metadata">

### Author: ![BSG\_Inc](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@BSG\_Inc](https://community.wowza.com/u/BSG_Inc)
#### Post date: [January 13, 2010, 6:57am UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/11 "2010-01-13T06:57:43Z")

</div>

Richard,

When I go to [http://ec2-72-44-32-94.compute-1.amazonaws.com/](http://ec2-72-44-32-94.compute-1.amazonaws.com/) it says 2.0.0

---

<div class="post-metadata">

### Author: ![Nanda\_kumar](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@Nanda\_kumar](https://community.wowza.com/u/Nanda_kumar)
#### Post date: [January 8, 2010, 8:23pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/12 "2010-01-08T20:23:59Z")

</div>

Please give me tutorial link for how to create smil file for wowza streaming server as per your above reply.

---

<div class="post-metadata">

### Author: ![Nanda\_kumar](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@Nanda\_kumar](https://community.wowza.com/u/Nanda_kumar)
#### Post date: [January 9, 2010, 5:10pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/13 "2010-01-09T17:10:29Z")

</div>

Hello,

I have done the following steps for Multi-bitrate Video On Demand Streaming as per [http://community.wowza.com/t/-/64](http://community.wowza.com/t/-/64) .

Please let me know if i had missed anything.

**I. I have updated the following steps in vods3/Application.xml**

1. Set the Streams/StreamType property to: default

**Answer:** It has set default. So i didn’t change anything.

1. Set the HTTPStreamers property to: cupertinostreaming,smoothstreaming

**Answer:** It has set default. So i didn’t change anything.

1. Add the following property to the application level container at the bottom of the Application.xml file (be sure to get the correct container - there are several in the Application.xml file)

**Code:**

smoothStreamingMediaMajorVersion

2

Integer

**Answer:** I have added above code manually to container which is last of vods3/Application.xml.

4.Smooth Streaming only: Using a text editor create the file [install-dir]/conf/clientaccesspolicy.xml with the following content (For more information see the article Network Security Access Restrictions in Silverlight):

**Answer:** It has set default. So i didn’t change anything.

**II. Created smil file and streaming**

1. I have created new smil file(mySmil.smil) in mybucket with following code

1. I have created new HTML file with following code to stream video

**Note :**

**1) Both mySmil.smil and scooby-theme.flv are in same bucket.**

**2) We are using new Wowza Streaming server 2.0**

**3) We are using JW player version 5.0**

Now there is no video streaming it always showing loading icon in flv player while playing.

---

<div class="post-metadata">

### Author: ![Nanda\_kumar](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@Nanda\_kumar](https://community.wowza.com/u/Nanda_kumar)
#### Post date: [January 13, 2010, 3:45pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/14 "2010-01-13T15:45:56Z")

</div>

Hello,

I have changed the flashvars as per your instructions but it still not working

**My Embed Code :**

**mysmil.smil Code :**

[HTML]

[/HTML] **Note:**

1. Both mysmil.smil and scooby-theme.flv are in same bucket.

2. I have used “Hot Link Denial” module to restrict stream from other sites except my site.

If i will use multi bitrate video streaming, it not works fine. Other wise it works fine(streaming directly from s3 bucket). Please check the above link and code.

In smil file, it has “system-bitrate” variable, how to set this variable its deponds upon video or randomly because i don’t about the bitrate of scooby-theme.flv. I think problem might be in creation of smil file. So please check it.

**Following error is shown in error log file**

> ERROR server comment 2010-01-13 04:11:20 - - - - - 8726.475 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:20 - - - - - 8726.755 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:30 - - - - - 8736.262 - - - - - - - HTTPByteReader.sendRequest: java.net.SocketException: Connection reset
> 
> WARN server comment 2010-01-13 04:11:31 - - - - - 8737.011 - - - - - - - MediaReaderFLV.open: Metadata appears to be bad: amazons3/actionvideos/mysmil.smil
> 
> ERROR server comment 2010-01-13 04:11:31 - - - - - 8737.606 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:32 - - - - - 8737.893 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:32 - - - - - 8738.18 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:32 - - - - - 8738.46 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:32 - - - - - 8738.74 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:33 - - - - - 8739.02 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:33 - - - - - 8739.3 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:33 - - - - - 8739.579 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:33 - - - - - 8739.86 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:34 - - - - - 8740.14 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:34 - - - - - 8740.42 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:34 - - - - - 8740.699 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> ERROR server comment 2010-01-13 04:11:35 - - - - - 8740.98 - - - - - - - MediaReaderFactory: getInstance: Missing definition for smil
> 
> Please let me know how to fix this issue.

---

<div class="post-metadata">

### Author: ![Nanda\_kumar](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@Nanda\_kumar](https://community.wowza.com/u/Nanda_kumar)
#### Post date: [January 18, 2010, 11:58am UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/15 "2010-01-18T11:58:51Z")

</div>

Hello Richard,

I have removed the “&bwstreams=100,250,500” from Flashvars. But it still not works.

**Now My Embed code is**

Please let me know how to fix this issue.

I have tried to stream smil file from my own server directly with following code

\<embed height=“349” width=“500” type=“application/x-shockwave-flash” src=“player.swf” quality=“high”

allowscriptaccess=“always” allowfullscreen=“false” wmode=“opaque” flashvars=“file=http://mysite.com/mediaplayer/mysmil.smil”/\>

It works fine. So problem is not possible with smil file or jw player or embed code.

**Note 1 :** I have sent my queries to support [support@wowza.com](mailto:support@wowza.com) with attachment of /conf and /logs folders of my wowza server. But i didn’t get any reply for that mails. Please let me know how can i contact support team for direct communication.

---

<div class="post-metadata">

### Author: ![Nanda\_kumar](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@Nanda\_kumar](https://community.wowza.com/u/Nanda_kumar)
#### Post date: [January 18, 2010, 8:01pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/16 "2010-01-18T20:01:30Z")

</div>

In my embed code,

Without prepending “mp4:” is working

**file=amazons3/actionvideos/THROTTLE\_JUNKY.Title7.mp4**

With prepending “mp4:” is not working

**file=mp4:amazons3/actionvideos/THROTTLE\_JUNKY.Title7.mp4**

In flv player it shows following error,

Stream not found:

mp4:amazons3/actionvideos/THROTTLE\_JUNKY.Title7.mp4

In error log file it show following error,

> WARN server comment 2010-01-18 06:20:08 - - - - - 448453.887 - - - - - - - MediaCache.createNewCachItem: Cannot find MediaCacheSource for (mp4:amazons3/actionvideos/THROTTLE\_JUNKY.Title7.mp4).
> 
> WARN server comment 2010-01-18 06:20:08 - - - - - 448453.887 - - - - - - mp4:amazons3/actionvideos/THROTTLE\_JUNKY.Title7.mp4 MediaReaderH264.open[1]: java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: mp4:amazons3/actionvideos/THROTTLE\_JUNKY.Title7.mp4

---

<div class="post-metadata">

### Author: ![Nanda\_kumar](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@Nanda\_kumar](https://community.wowza.com/u/Nanda_kumar)
#### Post date: [January 19, 2010, 7:25pm UTC](https://community.wowza.com/t/need-help-for-multi-bitrate-video-on-demand-streaming/34046/17 "2010-01-19T19:25:43Z")

</div>

Hello Richard,

I have disabled the hotlinkdenial module. I haven’t enabled SecureToken module. Now you can able to test my videos .

Please have a look on [http://clients.basitsolutionsgroup.com/test/mediaplayer/test1.html](http://clients.basitsolutionsgroup.com/test/mediaplayer/test1.html)

[http://clients.basitsolutionsgroup.com/test/mediaplayer/test2.html](http://clients.basitsolutionsgroup.com/test/mediaplayer/test2.html)

I have sent mail to “[support@wowza.com](mailto:support@wowza.com)” with subject “Need Help on Multi-bitrate Video On Demand Streaming - With reference of [https://www.wowza.com/forums/showthread.php?p=34358#post34358](https://www.wowza.com/forums/showthread.php?p=34358#post34358)”.

I got the following reply

“It is most likely a problem with JW Player. It seems to be prepending the smil: prefix to the stream name. We cannot handle a prefix of smil:. It is not valid. You may want to post this issue in the JW Player forums.”

Please guide me in right way.
