# Need a serious help on MediaCache with SMIL

**URL:** <https://community.wowza.com/t/need-a-serious-help-on-mediacache-with-smil/35529>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [January 4, 2012, 7:13pm UTC](https://community.wowza.com/t/need-a-serious-help-on-mediacache-with-smil/35529 "2012-01-04T19:13:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![keith\_lai](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@keith\_lai](https://community.wowza.com/u/keith_lai)\
**Post date:** [January 4, 2012, 7:13pm UTC](https://community.wowza.com/t/need-a-serious-help-on-mediacache-with-smil/35529/1 "2012-01-04T19:13:25Z")

</div>

We would like to use adaptive San Jose HTTP with mediacache and the content server is an standard conf apache server.

all file can be pull from originhost

[http://originhost/video.mp4](http://originhost/video.mp4)

[http://originhost/video2.mp4](http://originhost/video2.mp4)

[http://originhost/ios.smil](http://originhost/ios.smil)

it is working pretty well with this URL, it will pull the mp4 file from c1 (apache configred in mediacache)

it works prefectly for file base mp4 file.

```auto
http://wowzahost:1935/MyApplication/_definst_/mp4:c1/video.mp4/playlist.m3u8?uid=1

```

```auto
http://wowzahost:1935/MyApplication/_definst_/mp4:c1/video2.mp4/playlist.m3u8?uid=1

```

but no luck on SMIL…

```auto
http://wowzahost:1935/MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1

```

Here is the ios.smil content.

this format also not working …

The SMIL file can work if I don’t use mediacache. Any idea? I believe the main problem is wowza don’t generate the SMIL file and return MediaList is empty.

The error log from wowza is the following.

```auto
DEBUG server comment - MediaCache.acquireReader[c1/ios.smil]: createNew
DEBUG server comment - MediaCacheSourceBasic.canHandle[c1]: true mediaName:c1/ios.smil prefix:c1/
DEBUG server comment - MediaCacheItemHTTPImpl.init url:http://originhost:80/ios.smil
DEBUG server comment - MediaCacheItemHTTPImpl.getItemInfo length: 393
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - MediaCacheReaderCached.read: nolenmatch: 0:393
WARN server comment - MediaListReaderSMIL.readMediaList[MyApplication/_definst_:c1/ios.smil]: Error reading file: 0 != 393
WARN server comment - HTTPStreamerCupertinoIndexPlaylist.indexFile[MyApplication/_definst_/smil:c1/ios.smil]: MediaList is empty.
application/vnd.apple.mpegurl:
#EXTM3U
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.canHandle[MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8]: true
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.service: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
INFO server comment - onCheckAvailibility: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.canHandle[MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8]: true
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.service: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
INFO server comment - onCheckAvailibility: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.canHandle[MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8]: true
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.service: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
INFO server comment - onPlaylist: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
INFO cupertino connect 1582660369 -
INFO stream create c1/ios.smil -
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - MediaCacheReaderCached.read: nolenmatch: 0:393
WARN server comment - MediaListReaderSMIL.readMediaList[MyApplication/_definst_:c1/ios.smil]: Error reading file: 0 != 393
WARN server comment - HTTPStreamerCupertinoIndexPlaylist.indexFile[MyApplication/_definst_/smil:c1/ios.smil]: MediaList is empty.
application/vnd.apple.mpegurl:
#EXTM3U
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.canHandle[MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8]: true
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.service: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
INFO server comment - onPlaylist: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
INFO cupertino connect 2074856373 -
INFO stream create c1/ios.smil -
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - badRangeStop: 0/392
DEBUG server comment - MediaCacheReaderCached.read: nolenmatch: 0:393
WARN server comment - MediaListReaderSMIL.readMediaList[MyApplication/_definst_:c1/ios.smil]: Error reading file: 0 != 393
WARN server comment - HTTPStreamerCupertinoIndexPlaylist.indexFile[MyApplication/_definst_/smil:c1/ios.smil]: MediaList is empty.
application/vnd.apple.mpegurl:
#EXTM3U
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.canHandle[MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8]: true
DEBUG server comment - HTTPStreamerAdapterCupertinoStreamer.service: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
INFO server comment - onCheckAvailibility: MyApplication/_definst_/smil:c1/ios.smil/playlist.m3u8?uid=1
INFO stream destroy c1/ios.smil -
INFO cupertino disconnect 1582660369 -
INFO stream destroy c1/ios.smil -
INFO cupertino disconnect 2074856373 -
INFO stream destroy c1/ios.smil -
INFO cupertino disconnect 295915575 -
INFO application app-stop _definst_ MyApplication/_definst_
INFO server comment - MediaCacheImpl.stop[MediaCache]
DEBUG vhost comment - Shutdown vhost: _defaultVHost_
DEBUG server comment - Close sessions: 0
DEBUG server comment - Close acceptors: 2
INFO vhost vhost-stop _defaultVHost_ -
DEBUG server comment - Close CMDInterface
INFO server server-stop - -

```

found the similiar thread… but no idea how to fix it.

> [@MediaCache and SMIL](http://community.wowza.com/t/-/37467):
>
> I’m trying to use adaptive San Jose HTTP, Smooth Streaming and Apple Cupertino streams with the MediaCache AddOn. The origin HTTP server has the files: [http://OriginHost:8080/MediaFile.smil](http://OriginHost:8080/MediaFile.smil)[http://OriginHost:8080/MediaFile\_640.mp4](http://OriginHost:8080/MediaFile_640.mp4)[http://OriginHost:8080/MediaFile\_2048.mp4](http://OriginHost:8080/MediaFile_2048.mp4) This Flash URL works for me: [http://WowzaHost:1935/mediacache/](http://WowzaHost:1935/mediacache/)definst/mp4:http/OriginHost:8080/MediaFile\_2048.mp4/manifest.f4m This does not: [http://WowzaHost:1935/mediacache/](http://WowzaHost:1935/mediacache/)definst/smil:http/OriginHost:8080/Me…

Got updated from staff. it might due to the MIME type. but config it, it seems no change.

Wireshark

```auto
GET /ios.smil HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: zh-HK
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: originhost
Connection: Keep-Alive
 
 
 
HTTP/1.1 200 OK
Date: Wed, 04 Jan 2012 12:24:14 GMT
Server: Apache/2.2.21 (Unix)
Last-Modified: Wed, 04 Jan 2012 10:07:03 GMT
ETag: "780040-189-4b5b0fa37dac8"
Accept-Ranges: bytes
Content-Length: 393
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/smil
 
 
<smil><head></head><body><switch>
<video src="mp4:video.mp4" system-bitrate="200000" />
<video src="mp4:video2.mp4" system-bitrate="400000" />
</switch></body></smil>
 

```

---

<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 4, 2012, 6:29pm UTC](https://community.wowza.com/t/need-a-serious-help-on-mediacache-with-smil/35529/2 "2012-01-04T18:29:36Z")

</div>

Is the .smil file alongside the .mp4 files on the web root referenced by c1? If not, that’s where it should be. If so, remove c1/ from path in smil, because it is relative to the smil, like this:

```auto
<smil><head></head><body><switch>
<video src="mp4:video.mp4" system-bitrate="200000" />
<video src="mp4:video2.mp4" system-bitrate="400000" />
</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 5, 2012, 7:27pm UTC](https://community.wowza.com/t/need-a-serious-help-on-mediacache-with-smil/35529/3 "2012-01-05T19:27:57Z")

</div>

Send the stream url and actual http url to support@wowza.com. Include a link to this thread for reference.

Richard

---

<div class="post-metadata">

**Author:** ![keith\_lai](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@keith\_lai](https://community.wowza.com/u/keith_lai)\
**Post date:** [January 5, 2012, 9:25am UTC](https://community.wowza.com/t/need-a-serious-help-on-mediacache-with-smil/35529/4 "2012-01-05T09:25:33Z")

</div>

It is on same apache folder already but still no luck ☹
