# Adaptive Streaming from Content Directory sub folders

**URL:** https://community.wowza.com/t/adaptive-streaming-from-content-directory-sub-folders/46282
**Category:** Wowza Streaming Engine
**Created:** [November 27, 2015, 11:05am UTC](https://community.wowza.com/t/adaptive-streaming-from-content-directory-sub-folders/46282 "2015-11-27T11:05:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Peter\_Hall](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@Peter\_Hall](https://community.wowza.com/u/Peter_Hall)
#### Post date: [November 27, 2015, 11:05am UTC](https://community.wowza.com/t/adaptive-streaming-from-content-directory-sub-folders/46282/1 "2015-11-27T11:05:15Z")

</div>

Hi,

We currently run a VOD adaptive streaming service, not using Wowza, where the content is stored in sub folders of the main content directory and we are investigating whether we can use Wowza to replace the current streaming engine.

When I try to build a SMIL definition via the streaming engine manager UI, I see that the / character is not allowed in the source file name. Does this means that VOD adaptive streaming can only be done when the source files are in the main content directory and not in sub folders?

If it is possible to run VOD adaptive streaming for files in sub folders could you please provide an example SMIL for both HDS and HLS delivery?

Thanks in advance

Peter

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [November 27, 2015, 8:31am UTC](https://community.wowza.com/t/adaptive-streaming-from-content-directory-sub-folders/46282/2 "2015-11-27T08:31:47Z")

</div>

Hello there.

You reference the videos in the .smil file relative to the .smil files location.

So, for instance, an application named “vod” with a sub-directory named “test” you would put the .smil (test.smil for example) along with the ABR set of files in the “test” directory. The you would have something like this:

```auto
<smil>
	<head>
	</head>
	<body>
		<switch>
			<video src="mp4:bigbuckbunny_450.mp4" system-bitrate="450000"/>
			<video src="mp4:bigbuckbunny_750.mp4" system-bitrate="750000"/>
		</switch>
	</body>
</smil>

```

And the playback URL would look like this:

```auto
http://[wowza-ip]:1935/vod/[B]_definst_[/B]/smil:test/test.smil/playlist.m3u8

```

App instance part is only needed when content is located in a sub-directory and you are using one string. HTTP urls are always one string. RTMP players often split the connection part from the stream part, but some don’t and in that case you also need to use **_definst_** between the application name and the path.

Regards,

Salvadore

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [November 27, 2015, 11:21am UTC](https://community.wowza.com/t/adaptive-streaming-from-content-directory-sub-folders/46282/3 "2015-11-27T11:21:20Z")

</div>

Peter,

The rendition which is being played can sometimes be found from the player side as it’s the one which is doing the switches based on the end user’s available bandwidth.

You could also write a custom Module by extending ModuleBase:

```auto
public void onHTTPCupertinoStreamerRequest(HTTPStreamerSessionCupertino httpSession, HTTPStreamerCupertinoRequestContext reqContext){
		getLogger().info("onHTTPCupertinoStreamerRequest");
	}

```

Take a look at this guide:

[How to extend Wowza Streaming Engine using the Wowza IDE](https://www.wowza.com/docs/how-to-extend-wowza-streaming-engine-using-the-wowza-ide)

And the [Wowza API](https://www.wowza.com/resources/WowzaStreamingEngine_ServerSideAPI.pdf)

If you need additional assistance with this please consider posting a request to the [find a consultant forum](http://community.wowza.com/c/-/7)

Regards,

Salvadore

---

<div class="post-metadata">

### Author: ![Peter\_Hall](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@Peter\_Hall](https://community.wowza.com/u/Peter_Hall)
#### Post date: [November 27, 2015, 4:05pm UTC](https://community.wowza.com/t/adaptive-streaming-from-content-directory-sub-folders/46282/4 "2015-11-27T16:05:55Z")

</div>

Thanks Salvadore, that makes a lot of sense and does exactly what we need.

Peter

---

<div class="post-metadata">

### Author: ![Peter\_Hall](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@Peter\_Hall](https://community.wowza.com/u/Peter_Hall)
#### Post date: [November 27, 2015, 4:57pm UTC](https://community.wowza.com/t/adaptive-streaming-from-content-directory-sub-folders/46282/5 "2015-11-27T16:57:04Z")

</div>

Hi Salvadore,

How would I check that the stream was changing the selected video bit rate from the management UI?

Peter
