# Need of prefix ":mp4"

**URL:** <https://community.wowza.com/t/need-of-prefix-mp4/45348>\
**Category:** Wowza Streaming Engine\
**Created:** [July 27, 2015, 8:26am UTC](https://community.wowza.com/t/need-of-prefix-mp4/45348 "2015-07-27T08:26:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton\_Tremetzberger](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Anton\_Tremetzberger](https://community.wowza.com/u/Anton_Tremetzberger)\
**Post date:** [July 27, 2015, 8:26am UTC](https://community.wowza.com/t/need-of-prefix-mp4/45348/1 "2015-07-27T08:26:51Z")

</div>

Dear forum members,

in most of the tutorials for the Wowza Server it is recommended to use the prefix “:mp4” directly before the video file. E.g: rtmp://[wowza-server]:1935/vod/mp4:sample.mp4. In the test player of our installation (4.\*) I leave out the prefix “:mp4” and the video will also be played.

Maybe it is important:

- I set the Default Stream Prefix in the Server Setup to “mp4”

- most of our video files are mp4 (h.264)

- we have a few m4v and mov-files

- we do not have flv-videos

- we also have a few audio files (only mp3)

- we do on-demand and live-streaming

My question is: Is there any (other) reason why I have to use the “:mp4”-prefix? E.g problems with some mobile devices, media player, etc.?

thank you & best regards,

Anton

---

<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:** [July 27, 2015, 7:25am UTC](https://community.wowza.com/t/need-of-prefix-mp4/45348/2 "2015-07-27T07:25:16Z")

</div>

Starting with Wowza 4.0 the new default container is MP4, this used to be FLV, so to playback the streams you needed to specify the mp4 container. Also, prior to Wowza 4.0, you needed to use the mp4: prefix to record to mp4:

```auto
rtmp://[wowza-ip-address]:1935/live/mp4:myStream

```

One other usage is with sub-directories. If a file is in /content/subfolder you would need to use this URL:

```auto
rtmp://[wowza-ip-address]:1935/vod/_definst_/mp4:subfolder/sample.mp4

```

For some players (JWPlayer for example) to stream on demand files from a Wowza media server, you must specify the container format for the video asset. This is typically accomplished by adding a stream prefix to the VOD asset to create the stream name in playback URLs. The stream prefix specifies the container format for RTMP streaming. For example, in the following playback URL:

```auto
rtmp://[wowza-ip-address]:1935/vod/mp4:sample.mp4

```

The mp4: stream name prefix specifies that the QuickTime container format is used for the sample.mp4 video.

In Wowza Streaming Engine Manager, you can specify a default container format so that the corresponding stream prefix isn’t required in playback URLs. The Streaming Engine has two settings:

- MP4

- FLV

I hope this helps.

Salvadore

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [July 28, 2015, 8:29am UTC](https://community.wowza.com/t/need-of-prefix-mp4/45348/3 "2015-07-28T08:29:08Z")

</div>

Hi,

I’ve made a correction to the post above, removing the second “mp4:” from the URL as that’s not required.

Was:

```auto
rtmp://[wowza-ip-address]:1935/vod/_definst_/mp4:subfolder/mp4:sample.mp4

```

Should be:

```auto
rtmp://[wowza-ip-address]:1935/vod/_definst_/mp4:subfolder/sample.mp4

```

Regards,

Jason

---

<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:** [July 27, 2015, 7:45am UTC](https://community.wowza.com/t/need-of-prefix-mp4/45348/4 "2015-07-27T07:45:19Z")

</div>

Additionally, in order to play an FLV in Wowza 4.x, you will nee to use the flv: prefix. Unless you set the default back to FLV:

```auto
rtmp://[wowza-ip-address]:1935/vod/flv:sample.flv

```

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:** [July 28, 2015, 6:46am UTC](https://community.wowza.com/t/need-of-prefix-mp4/45348/5 "2015-07-28T06:46:19Z")

</div>

Anton, you only need to use the prefix once in this case. Your example URL would be correct.

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Anton\_Tremetzberger](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Anton\_Tremetzberger](https://community.wowza.com/u/Anton_Tremetzberger)\
**Post date:** [July 28, 2015, 9:22am UTC](https://community.wowza.com/t/need-of-prefix-mp4/45348/6 "2015-07-28T09:22:33Z")

</div>

Dear Salvadore,

thank you for your prompt and detailed answer.

best regards, Anton

---

<div class="post-metadata">

**Author:** ![Anton\_Tremetzberger](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Anton\_Tremetzberger](https://community.wowza.com/u/Anton_Tremetzberger)\
**Post date:** [July 28, 2015, 12:57pm UTC](https://community.wowza.com/t/need-of-prefix-mp4/45348/7 "2015-07-28T12:57:09Z")

</div>

Dear Jason,

thank you for this information. Just one question: if I have a subsubfolder, do I also need just one prefix “:mp4”? Eg:

```auto
rtmp://[wowza-ip-address]:1935/vod/_definst_/mp4:subfolder/subsubfolder/sample.mp4

```

thanks,

best regards, Anton
