# Stream smil file from our server

**URL:** <https://community.wowza.com/t/stream-smil-file-from-our-server/34048>\
**Category:** Wowza Streaming Engine\
**Created:** [January 20, 2010, 7:44pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048 "2010-01-20T19:44:44Z")\
**Posts on this page:** 20\
**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 20, 2010, 7:44pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/1 "2010-01-20T19:44:44Z")

</div>

Hello ,

I want to stream smil file from our server but flv file from amazon s3 stroage using wowza streaming server.

**Streaming server :** rtmp://ec2-72-44-32-94.compute-1.amazonaws.com/vods3

**Smil File :** [http://clients.basitsolutionsgroup.com/test/mediaplayer/test\_mysmil.smil](http://clients.basitsolutionsgroup.com/test/mediaplayer/test_mysmil.smil)

**Flv path:** [http://actionvideos.s3.amazonaws.com/scooby-theme.flv](http://actionvideos.s3.amazonaws.com/scooby-theme.flv) or (amazons3/actionvideos/scooby-theme.flv)

**Html File :** [http://clients.basitsolutionsgroup.com/test/mediaplayer/readme.php](http://clients.basitsolutionsgroup.com/test/mediaplayer/readme.php)

**Embed Code :**

\<embed

type=“application/x-shockwave-flash”

id=“player2”

name=“player2”

src=“player-viral.swf”

width=“400”

height=“315”

allowscriptaccess=“always”

allowfullscreen=“true”

flashvars=“streamer=rtmp://ec2-72-44-32-94.compute-1.amazonaws.com/vods3&file=ttp://clients.basitsolutionsgroup.com/test/mediaplayer/test\_mysmil.smil”

/\>

**Smil File :** (test\_mysmil.smil)

Is it possible to stream smil file from our web sever (using wowza streaming server) ?

Please check it [http://clients.basitsolutionsgroup.com/test/mediaplayer/readme.php](http://clients.basitsolutionsgroup.com/test/mediaplayer/readme.php)

---

<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 20, 2010, 3:58pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/2 "2010-01-20T15:58:13Z")

</div>

It won’t work. The smil file has to be alongside the content.

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 22, 2010, 11:32pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/3 "2010-01-22T23:32:26Z")

</div>

Right now, I don’t know. I’m working on this generally though and maybe I will be able to help more on this soon.

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 22, 2010, 11:34pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/4 "2010-01-22T23:34:32Z")

</div>

Oh, I do know this: width is required.

\<video src=“amazons3/actionvideos/scooby-theme.flv” **width=“320”** system-bitrate=“128000” /\>

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 23, 2010, 1:24pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/5 "2010-01-23T13:24:33Z")

</div>

I’m not sure. The best I have achieved so far is to get it to play the first item in a smil file.

Use this one:

[http://developer.longtailvideo.com/svn/trunk/fl5](http://developer.longtailvideo.com/svn/trunk/fl5)

For the 4.x use this one:

[http://developer.longtailvideo.com/svn/trunk/as3](http://developer.longtailvideo.com/svn/trunk/as3)

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 25, 2010, 1:15pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/6 "2010-01-25T13:15:54Z")

</div>

Sure, yes. I’m not sure if I can solve anything about it though.

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 26, 2010, 10:15pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/7 "2010-01-26T22:15:03Z")

</div>

So far, the way I have found that works is using FLVPLayback Component with smil file. And you can get a working example from the sample files on page one of the Adobe dynamic streaming guide:

[http://www.adobe.com/devnet/flashmediaserver/articles/dynstream\_advanced\_pt1.html](http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_advanced_pt1.html)

Get the files from the package in this location:

dynstream\_walkthrough\_pt1\hands-on\_pt1\completed\FLVPB - SMIL

Put the smil file alongside the html and swf file on web server, point to your wowza server in the smil, modify the smil for content on your Wowza server, and start it up. If the content is in order, it should work. Monitor Wowza console to see stream switching.

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:** [March 25, 2013, 1:24pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/8 "2013-03-25T13:24:46Z")

</div>

Using MediaCache you store the .smil file alongside the content and reference it with relative link.

```auto
<video src="abc1231" width="1280" system-bitrate="800000"/>
<video src="abc1232" width="768" system-bitrate="500000"/>

```

The playback the smil using the MediaCache 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:** [March 26, 2013, 11:15am UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/9 "2013-03-26T11:15:00Z")

</div>

Re adding extenstions, you can change that behavior:

> **[WowzaStreamingEngine\_MediaCacheUsersGuide.pdf](https://www.wowza.com/resources/WowzaStreamingEngine_MediaCacheUsersGuide.pdf)**
>
> 1306.53 KB

The smil and the videos have to be in the same place, along-side each other, the same folder on the same web server, or a folder on that web server.

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:** [June 18, 2013, 5:24pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/10 "2013-06-18T17:24:37Z")

</div>

Absolute path to where, a web server? Is so, make that the MediaCache source and place the smil and files together there.

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:** [June 18, 2013, 5:32pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/11 "2013-06-18T17:32:49Z")

</div>

This might work with absolute paths if MediaCache is setup, though I have not tried it

[https://www.wowza.com/docs/how-to-use-java-api-calls-to-resolve-smil-file-requests](https://www.wowza.com/docs/how-to-use-java-api-calls-to-resolve-smil-file-requests)

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:** [June 18, 2013, 5:35pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/12 "2013-06-18T17:35:16Z")

</div>

Also, noticing that you have [two threads](https://www.wowza.com/forums/showthread.php?29046-SMIL-syntax-for-using-MediaCache#post119238) at lease on this. Please don’t duplicate.

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:** [June 18, 2013, 6:14pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/13 "2013-06-18T18:14:26Z")

</div>

With this in place, Wowza will intercept smil (which is MediaList) requests and allow you to form the MediaList yourself. This way with MediaCache enabled Wowza does not have to get the smil from the MediaCache source, and you can reference the MediaCache assets with full url in the smil like

```auto
mp4:http/yourwebserver.com/sample.mp4

```

Seems like what you are asking for. That’s the only thing I can think of using MediaCache with your videos on a web server that you do not have access to upload a smil to

Richard

---

<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 22, 2010, 7:40pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/14 "2010-01-22T19:40:31Z")

</div>

Hello ,

I have tried the following to stream smil from my server using wowza streaming server. It works fine normally without switching method.

**My Embed code :**

[HTML]\<embed

type=“application/x-shockwave-flash”

id=“player2”

name=“player2”

src=“player-viral.swf”

width=“315”

height=“315”

allowscriptaccess=“always”

allowfullscreen=“true”

flashvars=“file=mysmil5.smil&provider=rtmp&rtmp.loadbalance=true”

/\>[/HTML]

**Note:** I have added _rtmp.loadbalance=true_ in flashvars and removed streamer in flashvars.

mysmil5.smil is stored in [http://clients.basitsolutionsgroup.com/test/mediaplayer/](http://clients.basitsolutionsgroup.com/test/mediaplayer/)

**mysmil5.smil:**

[HTML]

[/HTML]

**Note:** I have added meta tag in smil file.

scooby-theme.flv is stored in my amazon s3 storage bucket.

It works fine because it don’t has switch streaming.

if changed the code into like following for switch streaming

[HTML]

[/HTML]

It not works fine.

Please check this link [http://clients.basitsolutionsgroup.com/test/mediaplayer/test3.html](http://clients.basitsolutionsgroup.com/test/mediaplayer/test3.html)

Please let me know whether i did anything wrong.

---

<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 23, 2010, 6:43pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/15 "2010-01-23T18:43:39Z")

</div>

Please let me know whether the current version of JW player (5.0) supports the multibitrate switching. If not means, which player will support this functionality?

---

<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 25, 2010, 6:38pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/16 "2010-01-25T18:38:22Z")

</div>

Hello Richard,

I have visited this page [http://developer.longtailvideo.com/svn/trunk/fl5](http://developer.longtailvideo.com/svn/trunk/fl5) , but it shows some files listing.

I have download the source from [http://developer.longtailvideo.com/trac/browser/trunk/fl5](http://developer.longtailvideo.com/trac/browser/trunk/fl5). How can I stream the smil file by downloaded code. It has only swf,fla files , there is no html or embed code.

---

<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 25, 2010, 6:38pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/17 "2010-01-25T18:38:58Z")

</div>

Can i show your output for smil file streaming using wowza streaming server with multi vibrate switching.

---

<div class="post-metadata">

**Author:** ![Anh\_Tuan\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Anh\_Tuan\_Nguyen](https://community.wowza.com/u/Anh_Tuan_Nguyen)\
**Post date:** [March 22, 2013, 2:48am UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/18 "2013-03-22T02:48:21Z")

</div>

Hi,

I have a slightly different scenario. I upload 2 different bitrate video files and 1 smil file to an online storage which returns 3 permanent links for the files. For example:

smil: [http://…/files/abc123](http://.../files/abc123)

500.mp4: [http://…/files/abc1231](http://.../files/abc1231)

800.mp4: [http://…/files/abc1232](http://.../files/abc1232)

I would like to use my Wowza server running MediaCache to stream an adaptive bitrate stream with the above files.

The smil file content:

The streaming url to the Wowza Server: [http://…:1935/mediacache/_definst_/smil:http22](http://...:1935/mediacache/_definst_/smil:http22) /abc123/playlist.m3u8 in which “http22” is the short name of “http://…/files/”

I have tried and it does not work. How could I make it? (I saw the answer “smil file has to be alongside with video files” of Dec, 2007. Any updates from Wowza enable this?)

Thanks

---

<div class="post-metadata">

**Author:** ![Anh\_Tuan\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Anh\_Tuan\_Nguyen](https://community.wowza.com/u/Anh_Tuan_Nguyen)\
**Post date:** [March 25, 2013, 6:54pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/19 "2013-03-25T18:54:16Z")

</div>

Dear Richard,

Thank you for your reply. I am not sure I understand what you mean by alongside: does the smil file have to be in the same “physical” location with the media files?

From your example, the smil file and the media files could be stored in different locations (e.g., different HDDs) but can be accessed by relative links. If so, I modified the smil file accordingly, and it still does not work.

Please, spend some time look at the logs from wowzamedia\_error

* * *

MediaCacheItemHTTPImpl.getItemInfo[[download.cloudvis.net/files/4b050e4077e60130cde1525400da24fa.smil](http://download.cloudvis.net/files/4b050e4077e60130cde1525400da24fa.smil)]: HTTP response: 503

WARN server comment 2013-03-26 09:34:55 - - - - - 190585.593 - - - - - - - - MediaCacheItemBase.init: Item does not exist: http22/4b050e4077e60130cde1525400da24fa.smil

WARN server comment 2013-03-26 09:34:55 - - - - - 190585.593 - - - - - - - http22/4b050e4077e60130cde1525400da24fa open: java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: http22/4b050e4077e60130cde1525400da24fa

WARN server comment 2013-03-26 09:34:55 - - - - - 190585.594 - - - - - - - - HTTPStreamerCupertinoIndexPlaylist.indexFile[mediacache/_definst_/smil:http22/4b050e4077e60130cde1525400da24fa]: MediaList is empty.

WARN server comment 2013-03-26 09:34:55 - - - - - 190585.617 - - - - - - - -

* * *

It seems to me that Wowza automatically inserts the file extension (.smil) into the url. If so, it can not get the correct file because the correct url is [download.cloudvis.net/files/4b050e4077e60130cde1525400da24fa](http://download.cloudvis.net/files/4b050e4077e60130cde1525400da24fa) (without smil extension). This will explain “MediaList is empty”.

The whole smil file is below:

I need your help on this.

Thank you!

Anh

---

<div class="post-metadata">

**Author:** ![Anh\_Tuan\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Anh\_Tuan\_Nguyen](https://community.wowza.com/u/Anh_Tuan_Nguyen)\
**Post date:** [March 27, 2013, 11:59pm UTC](https://community.wowza.com/t/stream-smil-file-from-our-server/34048/20 "2013-03-27T23:59:11Z")

</div>

I understood. The files have to be physically in the same folder. The along-side virtual path to the files does not work.

Thank you Richard!

Anh.

[Next page](https://community.wowza.com/t/stream-smil-file-from-our-server/34048.md?page=2)
