# Cannot play sample.mp4 on Safari

**URL:** <https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792>\
**Category:** Wowza Streaming Engine\
**Created:** [July 17, 2013, 5:12pm UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792 "2013-07-17T17:12:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Le\_Eric](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Le\_Eric](https://community.wowza.com/u/Le_Eric)\
**Post date:** [July 17, 2013, 5:12pm UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/1 "2013-07-17T17:12:26Z")

</div>

Hi everybody,

I’m a newbie to Wowza.

I have just setup Wowza on my test server and tried to test those examples available with Wowza.

Everything worked fine except video on demand for iOS&Mac.

I have followed the instruction here [https://www.wowza.com/docs/how-to-set-up-video-on-demand-streaming](https://www.wowza.com/docs/how-to-set-up-video-on-demand-streaming)

In the instruction: To play on an iOS device

On an iOS device, enter the following URL in Safari:

[http://myserver.com:1935/vod/mp4:sample.mp4/playlist.m3u8](http://myserver.com:1935/vod/mp4:sample.mp4/playlist.m3u8)

But safari couldn’t play the sample.mp4 video even on Mac or iPhone.

I thought the sample.mp4 ins’t in right video codec H.264 and audio codec AAC or mp3. So I have used the Flash Media Live Encoder to push a steam

on my server and record it as mp4 format.

In the Flash Encoder I chose stream’s format:H.264 and audio:mp3 (Wowza requires it to encode to mp4), then stream to server. Everything worked fine, the stream recorded as stream1.mp4, I can use QuickTime to view it. But again couldn’t play it on Safari of iPhone.

I have also reviewed the error log but no error recorded.

Please help me!

Sorry for my bad English

---

<div class="post-metadata">

**Author:** ![Gulshan\_Budhiraja](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@Gulshan\_Budhiraja](https://community.wowza.com/u/Gulshan_Budhiraja)\
**Post date:** [July 17, 2013, 3:28pm UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/2 "2013-07-17T15:28:19Z")

</div>

hi Shadowman

Just use the IP Address of the server instead of using the domain name (serverIP:1935/vod/mp4:sample.mp4/playlist.m3u8), hope u will get it done

🙂

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [July 18, 2013, 8:20pm UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/3 "2013-07-18T20:20:42Z")

</div>

Hi,

Please email a zip of [install-dir]/conf and logs directories to support@wowza.com so we can help diagnose this issue further.

Mention this forum post link in the email for reference.

Best regards,

Daren

---

<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 18, 2013, 6:12am UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/4 "2013-07-18T06:12:34Z")

</div>

Shadowman13,

it may be that you need to add an mp4: prefix, without a prefix Wowza defaults to playing a .flv.

So try your stream name like:

```auto
mp4:myStream.mp4

```

Salvadore

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [July 17, 2013, 6:39am UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/5 "2013-07-17T06:39:53Z")

</div>

When you try playing back via iOS, do you see the request hitting your Wowza server?

---

<div class="post-metadata">

**Author:** ![Le\_Eric](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Le\_Eric](https://community.wowza.com/u/Le_Eric)\
**Post date:** [July 17, 2013, 6:36pm UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/6 "2013-07-17T18:36:38Z")

</div>

Hi Budhiraja,

I’ve tried that already, actually I used serverIP all the time.

---

<div class="post-metadata">

**Author:** ![Le\_Eric](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Le\_Eric](https://community.wowza.com/u/Le_Eric)\
**Post date:** [July 17, 2013, 8:25pm UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/7 "2013-07-17T20:25:11Z")

</div>

Hi,

Here the access log

2013-07-17 15:40:24 ICT connect cupertino INFO 200 240399563 - _defaultVHost_ v od _definst_ 55.365 192.168.100.22 1935 [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) 19 2.168.100.4 http (cupertino) - Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_8\_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1 240399563 0 0 - 0 - - sample.mp4 - - - - - [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) [http://192.16](http://192.16) 8.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8 - [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) -

2013-07-17 15:40:24 ICT create stream INFO 200 sample.mp4 - _defaultVHost_ vod \_ definst\_ 0.003 192.168.100.22 1935 [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) 192.168.10 0.4 http (cupertino) - Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_8\_4) AppleWebKit/536.30.1 (KHTML, like Ge cko) Version/6.0.5 Safari/536.30.1 240399563 0 0 2 0 0 0 sample.mp4 - - - - - [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) [http://192.168.100.22](http://192.168.100.22) :1935/vod/mp4:sample.mp4/playlist.m3u8 - [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) -

2013-07-17 15:40:24 ICT comment server INFO 200 - MediaReaderH264Cupertino.indexFile[vod/_d efinst_/sample.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:48000, samplesPerF rame:1024, objectType:LC} - - - 55.386 - - - - - - - - - - - - - - - - - - - - - - -

2013-07-17 15:40:24 ICT comment server INFO 200 - MediaReaderH264Cupertino.indexFile[vod/_d efinst_/sample.mp4][avc1.66.30]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:3.0, frameSi ze:424x240, displaySize:424x240, frameRate:24.000000} - - - 55.388 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-07-17 15:40:58 ICT destroy stream INFO 200 sample.mp4 - _defaultVHost_ vod \_ definst\_ 34.532 192.168.100.22 1935 [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) 192.168.10 0.4 http (cupertino) - Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_8\_4) AppleWebKit/536.30.1 (KHTML, like Ge cko) Version/6.0.5 Safari/536.30.1 240399563 0 344 2 0 0 0 sample.mp4 - sample.mp4 mp4 39115156 596.458 [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) http: [//192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](https://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) - [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist) .m3u8 -

2013-07-17 15:40:58 ICT disconnect cupertino INFO 200 240399563 - _defaultV Host_ vod _definst_ 89.898 192.168.100.22 1935 [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u) 8 192.168.100.4 http (cupertino) - Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_8\_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1 240399563 0 344 - 0 - - samp le.mp4 - sample.mp4 mp4 39115156 596.458 [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlis](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlis) t.m3u8 [http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8) - [http://192.168.100.22:1935/vod/mp4:sam](http://192.168.100.22:1935/vod/mp4:sam) ple.mp4/playlist.m3u8

I think the request had hit to my Wowza server.

There is nothing on error log.

---

<div class="post-metadata">

**Author:** ![Le\_Eric](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Le\_Eric](https://community.wowza.com/u/Le_Eric)\
**Post date:** [July 18, 2013, 11:27am UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/8 "2013-07-18T11:27:47Z")

</div>

Hi,

For this problem I have found a trick on this post

> [@Cannot stream "extremists.mp4" from content directory using Safari](http://community.wowza.com/t/-/36667):
>
> I have followed the VoD tutorial and can play the sample.mp4 but there is also a file “extremist.mp4” in the content directory(which came with the download but it does not work with this file I am test HLS and using safari I am using URL http://[wowza-address]:1935/vod/mp4:extremists.mp4/ What am I missing? Thanks

by creating HTML page with video tag and I were able to view the video with Safari. But this is not what I want!

How can I configure Wowza server for iOS&MAC user can watch the video directly with their browser or apps?

My colleagues have developed an application on iOS that allows user to push live stream, and watch videos recorded. But when they use this app to watch

the sample.mp4 video on my Wowza server, the app couldn’t play the video and returned error:

**Chunk with zero-length**

And on the server I saw this in the error log:

WARN server comment 2013-07-16 12:03:15 - - - - - 150.463 - - - - - - - - MediaReaderFLV.open: Metadata appears to be bad: sample.mp4

WARN server comment 2013-07-16 12:03:59 - - - - - 195.049 - - - - - - - sample open: java.io.FileNotFoundException: /usr/local/WowzaMediaServer/content/sample.flv (No such file or directory)

Why “sample.flv”? when the app required sample.mp4?

---

<div class="post-metadata">

**Author:** ![Le\_Eric](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Le\_Eric](https://community.wowza.com/u/Le_Eric)\
**Post date:** [July 19, 2013, 9:36am UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/9 "2013-07-19T09:36:36Z")

</div>

Hi salvadore,

Thank you, but on my log you see I have tried many ways like:

+[http://192.168.100.22:1935/vod/mp4:sample.mp4](http://192.168.100.22:1935/vod/mp4:sample.mp4)

+[http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8](http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8)

+[http://192.168.100.22:1935/vod/sample.mp4](http://192.168.100.22:1935/vod/sample.mp4)

…

But none of them works.

**And the app we use on Iphone has been tested successfully with flash media server,red5 and other demo server on Internet.It uses RTMP protocol for both pushing stream and getting stream from server**

So I don’t know why it couldn’t work with Wowza.

It kept warning :

**MediaReaderFLV.open: Metadata appears to be bad: sample.mp4**

**sample open: java.io.FileNotFoundException: /usr/local/WowzaMediaServer/content/sample.flv (No such file or directory)**

Can somebody help me with that warning? Do I have to configure anything on when streaming from wowza to iOS device?

---

<div class="post-metadata">

**Author:** ![Le\_Eric](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Le\_Eric](https://community.wowza.com/u/Le_Eric)\
**Post date:** [July 19, 2013, 3:09pm UTC](https://community.wowza.com/t/cannot-play-sample-mp4-on-safari/40792/10 "2013-07-19T15:09:41Z")

</div>

Hi daren\_j,

I have send an email with subject “Cannot play sample.mp4 on Safari” same as the tittle of this thread and included zip of conf and logs directories to support@wowza.com.

Please reply back to my email eric@futureworkz.com or right on this thread.

Hope receive reply to you soon! Thank you!
