Change content directory

Hi,

I have a very simple question, how do I change the content directory of the simple video streaming module of wowza.

By default the module streams from the “content” folder in the wowza installation directory, I want to place the content in d: and stream from that folder.

Thanks

Create a conf folder for the application, for example:

[wowza-install-dir]/conf/vod

Copy /conf/Application.xml to the new folder:

[wowza-install-dir]/conf/vod/Application.xml

Edit the new file, change /StorageDir to another path:

<StoragaDir>c:\content</StorageDir>

Richard

The file /conf/Application.xml is the default configuration file. So if you create a new folder in the /applications folder

[wowza-install-dir]/applications/newApp

And do not create a corresponding /conf folder, then the /conf/Application.xml is used.

It’s a good idea not to touch this folder, unless you want to create many similar applications without creating individual Application.xml files, in which case it is very useful to change that one file, then just create new applications by adding a folder.

Richard

Ethan,

No, this won’t work.

Richard

Yes, but you can have subfolders, and subfolders can be symlinks or ntfs junction to other locations.

Richard

Like this:

http://64.119.133.84:1935/spotvault_vod/_definst_/mp4:HD/MP4700_2997BestVari.mp4/playlist.m3u8'

Richard

Thank you Richard for the quick reply.

Just one question out of curiosity, if I change the Application.xml file in the “conf” folder, does it go any harm to other modules ?

Thanks

Is Z: a mapped drive (mapped to a network location), or an additional local drive?

If the later then that should work, provided that the content folder exists in the root of drive Z:

If this is a mapped drive then you need to ensure that the drive is accessible without having to enter

a username and password. If that still doesn’t help, see if you can use the UNC path instead, like

this:

  <StorageDir>\\servername\sharename\content</StorageDir>

or similar.

If still no luck, then post the related errors seen in the error log: [install-dir]/logs/wowzamediaserver_error.log

Daren

I see that you can change the content directory path from the default to whatever you need it to be but, can you also change the directory to multiple drives i.e. D: and E: or multiple folders on a network that are mapped to the Wowza Server?

D:\content

E:\content

or

C:\content

D:\mynetwork\mycontent\content

Thanks,

Ethan

So, to clarify, only a single folder on a single drive will work?

Hi, I have been trying to setup a new content folder for vod streaming. I have that working fine. But, I cant get a sub folder to work. I can play the file in my new content folder. But I have so many files I want to add sub folders to look for them. If I point the rtmp streamer to the sub folder the player can’t find it.

Thanks

I got it to work with Flash streaming by adding the sub folder to the line with the file location as opposed to the file directory location(which is where I thought it would have worked) So instead of being at the end of the directory name it is at the beginning of the file name. for example

‘provider’: ‘rtmp’,

‘streamer’: ‘rtmp://64.119.133.84:1935/spotvault_vod’,

‘file’: ‘HD/MP4700_2997BestVari.mp4’, I added the HD/ HD is my sub folder and this works for Flash

‘image’: ‘http://example.com/thumbs/sintel.jpg’,

‘modes’: [

{type: ‘flash’, src: ‘jwplayer/player.swf’},

{

type: ‘html5’,

config: {

‘file’: ‘http://64.119.133.84:1935/spotvault_vod/HD/mp4:MP4700_2997BestVari.mp4/playlist.m3u8’,

‘provider’: ‘video’

}

So I just can’t figure out how to use the sub folder for ios streaming. spotvault is my content folder and HD is my sub folder.

Thanks

Hello,

Yes, you can.

Did you try changing it and it didn’t work? Just make sure you restart your Wowza server so that the new configuration changes take effect.

Zoran

Can i change the content folder from C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 3.1.1\content

to E:\content with

E:\content

E is a second hard drive which i installed to the same server for vod files.

Thanks

yes it worked !!!

can also change the content folder to an other Network Drive.

if i map a Network Hard Disk it will also works?

I am having trouble with this. I made the change to application.xml in the VOD folder to use “z:\content”…but when I do this it breaks my live broadcasts and my scheduler. I then went in and made the same change to the application.xml file in the live folder, no help there. So I have now reverted them all back. I am out of harddrive space where the default content folder resides…any help?