# Generic Adaptive VOD Streaming

**URL:** <https://community.wowza.com/t/generic-adaptive-vod-streaming/54698>\
**Category:** Wowza Streaming Engine\
**Created:** [February 21, 2020, 2:49pm UTC](https://community.wowza.com/t/generic-adaptive-vod-streaming/54698 "2020-02-21T14:49:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guido\_Hartig1](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guido\_Hartig1](https://community.wowza.com/u/Guido_Hartig1)\
**Post date:** [February 21, 2020, 2:49pm UTC](https://community.wowza.com/t/generic-adaptive-vod-streaming/54698/1 "2020-02-21T14:49:02Z")

</div>

hi there,

i recorded all live event qualities in my vod folder: event\_720p.mp4,event\_540p.mp4,event\_360p.mp4

and so on for next event.

I want open a generic medialist, smilefile to stream my ABR files.

like [http://WOWZA/vod/ngrp:event\_all/playlist.m3u8](http://WOWZA/vod/ngrp:event_all/playlist.m3u8)

[http://WOWZA/vod/ngrp:event2\_all/playlist.m3u8](http://WOWZA/vod/ngrp:event2_all/playlist.m3u8)

Is there a integrated solution ?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [February 21, 2020, 4:58pm UTC](https://community.wowza.com/t/generic-adaptive-vod-streaming/54698/2 "2020-02-21T16:58:07Z")

</div>

You can create a custom module that would take incoming requests for playback and create the smil files on the fly.

We outline an example module here.  
[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)

As the article describes you would be calling streams using the amslt: instead of smil:

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [February 21, 2020, 5:04pm UTC](https://community.wowza.com/t/generic-adaptive-vod-streaming/54698/3 "2020-02-21T17:04:33Z")

</div>

You could also consider having the SMIL files located in a single location in your server to simply this. We have a module that can be used to force the checks to an alternative location as shown here:

[https://www.wowza.com/docs/how-to-use-different-locations-for-smil-files-and-vod-assets-modulemedialistpathselector](https://www.wowza.com/docs/how-to-use-different-locations-for-smil-files-and-vod-assets-modulemedialistpathselector)

You should be able to use a single alternative location for the SMIL or list the multiple directories with the pathSelectorPrefixes property.

Then with your SMIL file you can define different src locations for each rendition file:

[https://www.wowza.com/docs/How-to-do-adaptive-bitrate-streaming#text-file-configuration](https://www.wowza.com/docs/How-to-do-adaptive-bitrate-streaming#text-file-configuration)

For example:

```auto
<?xml version="1.0" encoding="UTF-8"?>

<smil title="">	

<body>		

<switch>                   

 <video height="720" src="path-1/sub-path/version-720/filename.mp4" systemLanguage="eng" width="1272">	

<param name="videoBitrate" value="2640000" valuetype="data"></param>				

<param name="audioBitrate" value="44100" valuetype="data"></param>			

</video>			

<video height="1080" src="path-2/sub-path/version-1080/filename.mp4" systemLanguage="eng" width="1920">

<param name="videoBitrate" value="4400000" valuetype="data"></param>				

<param name="audioBitrate" value="44100" valuetype="data"></param>			

</video>		

</switch>	

</body>

</smil>

```

The VOD files must be placed within the ${com.wowza.wms.context.VHostConfigHome}/content directory or a subdirectory of this defined folder.

SMIL files can be placed elsewhere if you use the [modulemedialistpathselector](https://www.wowza.com/docs/how-to-use-different-locations-for-smil-files-and-vod-assets-modulemedialistpathselector) and define the directory locations.

_Usage:_

_With VOD applications, when a SMIL file is read by Wowza Streaming Engine, the SMIL file location is prepended to all of the content paths defined in the SMIL file. This works if the referenced content is stored in the same folder as the SMIL file or in a subfolder below the folder that has the SMIL file._

_Use this module in situations where the referenced content and SMIL file are stored in different directory paths or where the content is stored in a folder above the SMIL file folder in the same path. When the content files are processed, this module checks the path against the pathSelectorPrefixes property value and removes any prepended prefixes that match so the original content path defined in the SMIL file is used._

---

<div class="post-metadata">

**Author:** ![Guido\_Hartig1](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guido\_Hartig1](https://community.wowza.com/u/Guido_Hartig1)\
**Post date:** [February 25, 2020, 7:24am UTC](https://community.wowza.com/t/generic-adaptive-vod-streaming/54698/5 "2020-02-25T07:24:47Z")

</div>

Thanks for testing module, works great.

my recommendation
