Results 1 to 10 of 10

Thread: Cannot play sample.mp4 on Safari

  1. #1
    Join Date
    Jul 2013
    Posts
    6

    Exclamation 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 http://www.wowza.com/forums/content....on-demand-file
    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:sam.../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

  2. #2
    Join Date
    Jul 2013
    Posts
    15

    Default

    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


  3. #3
    Join Date
    Jul 2013
    Posts
    6

    Default

    Hi Budhiraja,

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

  4. #4
    Join Date
    May 2013
    Posts
    680

    Default

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

  5. #5
    Join Date
    Jul 2013
    Posts
    6

    Default

    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:s.../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:s.../playlist.m3u8 http://192.16 8.100.22:1935/vod/mp4:sample.mp4/playlist.m3u8 - http://192.168.100.22:1935/vod/mp4:s.../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:s.../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:s.../playlist.m3u8 http://192.168.100.22 :1935/vod/mp4:sample.mp4/playlist.m3u8 - http://192.168.100.22:1935/vod/mp4:s.../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:s.../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:s.../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:s...4/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:s.../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.

  6. #6
    Join Date
    Jul 2013
    Posts
    6

    Default

    Hi,

    For this problem I have found a trick on this post
    http://www.wowza.com/forums/showthre...y-using-Safari

    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?

  7. #7

    Default

    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

  8. #8
    Join Date
    Jul 2013
    Posts
    6

    Default

    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:s.../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?

  9. #9
    Join Date
    Jun 2011
    Posts
    1,037

    Default

    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

  10. #10
    Join Date
    Jul 2013
    Posts
    6

    Default

    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!

Similar Threads

  1. VLC not playing VOD except for sample.mp4
    By mcperson2k in forum Video On Demand Streaming Discussion
    Replies: 10
    Last Post: 02-04-2014, 02:30 PM
  2. How Do I Play VOD Videos In Safari With JWlayer 5
    By mj9999 in forum Video On Demand Streaming Discussion
    Replies: 4
    Last Post: 07-16-2013, 10:39 AM
  3. Replies: 5
    Last Post: 04-09-2012, 07:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •