# Creating subfolders with streams files in content

**URL:** <https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064>\
**Category:** Wowza Streaming Engine\
**Created:** [May 21, 2014, 11:51am UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064 "2014-05-21T11:51:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)\
**Post date:** [May 21, 2014, 11:51am UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/1 "2014-05-21T11:51:47Z")

</div>

Hey everyone.

I would like to know how can i create a subfolder in content directory and use to streaming. For example access with VLC the url:

rtsp://[wowza-ip-server]:1935/live/subfolder\_name/camera.stream

When i try create one subfolder in content with one file named camera.stream that error is launched in Flash RTMP Player:

‘Failed to play /subfolder\_name/camera.stream; stream not found.’

Details: Wowza version 4.0.3 in AMI with Linux.

---

<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:** [May 21, 2014, 9:05am UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/2 "2014-05-21T09:05:06Z")

</div>

Hi there, to access content in a sub folder you need to include the app instance. By default this is named “_definst_”

So your URL would look something like this:

```auto
rtsp://[wowza-ip=server]:1935/live/_definst_/subfolder_name/camera.stream

```

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:** [May 22, 2014, 2:12pm UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/3 "2014-05-22T14:12:30Z")

</div>

As long as the sub folder is located inside the [install-dir]/content folder and your Application.xml file is configured to use the “content” directory /content it should work.

How are you starting the stream? StartupStreams.xml? Stream Manager? or through the UI with Server/Startup Streams? Are you sure you are starting the stream?

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:** [May 22, 2014, 2:32pm UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/4 "2014-05-22T14:32:17Z")

</div>

I should say, it worked in my test.

It may be a connectivity issue, what do you see in the access logs after the publish event?

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:** [May 23, 2014, 8:47am UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/5 "2014-05-23T08:47:10Z")

</div>

Thanks for the update and I am glad you got it working.

I am not sure what your next question is? You can have multiple sub-folders inside the content folder.

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:** [May 23, 2014, 9:33am UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/6 "2014-05-23T09:33:58Z")

</div>

There is no way that I know of to specify where the new stream file is created via the UI, it will create the file to whatever directory is set in the application

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:** [May 23, 2014, 11:56am UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/7 "2014-05-23T11:56:16Z")

</div>

Your very welcome.

Salvadore

---

<div class="post-metadata">

**Author:** ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)\
**Post date:** [May 21, 2014, 12:20pm UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/8 "2014-05-21T12:20:40Z")

</div>

Thanks for reply Salvadore!

So i tried it before and didn’t work.

Is necessary change something in config files?

---

<div class="post-metadata">

**Author:** ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)\
**Post date:** [May 23, 2014, 11:39am UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/9 "2014-05-23T11:39:30Z")

</div>

Hey Salvadore,

I remade tests and worked. I started streams by UI with Wowza Streaming Engine. Thank you very much!

But I have a question yet…

If i have multiple folders in content how can i manage them? Is it possible to use Wowza Streaming Engine for subfolders?

---

<div class="post-metadata">

**Author:** ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)\
**Post date:** [May 23, 2014, 12:02pm UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/10 "2014-05-23T12:02:58Z")

</div>

Thanks a lot Salvadore.

So when i create one stream in the “Stream Files” the file is saved in /content but i want save him in /content/subfolder\_that\_i\_choose changing the storage location “dynamically”. Is this possible with Wowza Streaming Engine?

---

<div class="post-metadata">

**Author:** ![Guilherme\_Nozawa](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@Guilherme\_Nozawa](https://community.wowza.com/u/Guilherme_Nozawa)\
**Post date:** [May 23, 2014, 2:16pm UTC](https://community.wowza.com/t/creating-subfolders-with-streams-files-in-content/43064/11 "2014-05-23T14:16:56Z")

</div>

Understood. Thank you very much again for informations Salvadore.

Best Regards,

Guilherme.
