Cannot play sample.mp4 on Safari

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

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

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

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

:slight_smile:

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

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:

mp4:myStream.mp4

Salvadore

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

Hi Budhiraja,

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

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 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.16 8.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 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: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 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 -

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 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 t.m3u8 http://192.168.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8 - 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.

Hi,

For this problem I have found a trick on this post

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?

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/playlist.m3u8

+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?

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!