Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Wowza 3.0.3 + JW Player 5.9 MP4 Streaming

  1. #1
    Join Date
    May 2012
    Posts
    12

    Default Wowza 3.0.3 + JW Player 5.9 MP4 Streaming

    Hi All,

    I've come across several bits and pieces of instruction but none seem to make sense to a noob like me so I've decided to start my own thread.

    I've got root access to my server and have installed Wowza Media Server 3 Monthly Edition 3.0.3 build882 on my server.
    I know the "live" application is working because I'm able to run WireCast and do live streams successfully.

    However, now I need to be able to schedule pre-recorded MP4 videos for streaming. This is giving me a lot of problems.

    On my site, www.itv.sg, I'm using JW Player as my media player. Currently the server is playing a select xml playlist of videos randomly. This is not what I want. I need to create a TV Channel.

    I've already configured a new Wowza application, "prerecord" and linked it to a public_html folder "mv"
    I also already have in place a PHP uploading mechanism that allows me to upload video files and playlists into this same folder.
    My JW player already reads the active playlist location from a mySQL database and uses it as its "file" attribute.

    This is what I need now:

    1. I need to be able to stream "live" my playlist
    2. I'll need to be able to change this playlist on the fly without having to restart the Wowza Server

    How do I configure my server to do this. And what kind of playlist do I now require to do this?


    Where do I go from here?

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Take a look at this scheduler example:

    http://www.wowza.com/forums/content....t-in-smil-file

    Richard

  3. #3
    Join Date
    May 2012
    Posts
    12

    Default

    Thanks Richard,

    Please bear with me here.

    As per instructions on the page,

    I've downloaded, unzipped and moved wms-plugin-collection.jar into the WowzaMediaServer's lib folder and restarted the Wowza Server.
    Before restarting, I've also made the following changes:

    Added Server Listener:
    <ServerListener>
    <BaseClass>com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher</BaseClass>
    </ServerListener>

    Added Property:
    <Property>
    <Name>PublishToApplication</Name>
    <Value>prerecord</Value>
    </Property>

    1. Will this affect my live application which every now and then I will still need to use when using Wirecast? Can I still use it without any complication?

    2. At this point, I also understand that I will need to restart the Wowza Server everytime i upload a new SMIL playlist. This is not ideal. I would like to simply upload a new playlist via PHP and expect the server to read that new playlist. The PHP i know how to use. How do I get Wowza to read the updated playlists without restarting the Server?

    3. My SMIL file is now in the "mv" folder which has been configured to be the <StorageDir> of the "prerecord" Application. How do I configure JW Player to read Stream1 of this particular playlist.

    4. Do I need to specify the start and length values? I would like the list of MP4 videos to be streaming according to the TV schedule.

    Thank you.

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    This will create streams in the "prerecord" application, as configured.

    This is server listener which runs at server start. There are many approaches, and a HTTPProvider that your PHP process loads is one way.

    Basic API:
    http://www.wowza.com/forums/content....-Class-Example

    Real-time controller:
    http://www.wowza.com/forums/content....eam-controller

    Another approach to switching:
    http://www.wowza.com/forums/content....tching-example

    Right put the .smil in the content location, StorageDir

    You can set start and length as in the example provided

    Richard

  5. #5
    Join Date
    May 2012
    Posts
    12

    Default

    Richard,

    I'm still getting a Stream not found: Stream1 error at www.itv.sg/player-test.html.

    My streamschedule.smil file is in the /mv folder which has been defined as the StorageDir of the "prerecord" application.

    How can I check if my "prerecord" application has been set up correctly?
    Do I need to create an instance of the application for it to work correctly?

    Kumar

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Kumar,

    It is very very helpful to run Wowza in stand-alone (/bin/startup.bat) mode so that you can see log output in the console.

    If that doesn't help, restart Wowza so the ServerListener runs, then try to playback the stream.

    Then zip up conf and logs folders and send them to support@wowza.com

    Include a link to this thread.

    Richard

  7. #7
    Join Date
    May 2012
    Posts
    12

    Default

    I'm starting to think if my configurations are all correct. I'm having some problems using some of the debugging tools because I'm not very adept with the CentOS server I'm using.

    I installed the Wowza Media server in the root directory
    It's configured in /usr/local/WowzaMediaServer

    My html folders are located at /home/itv/public_html/

    The mp4 files and streamschedule.smil are found in the public_html/mv/

    I've configured the <StorageDir> of my "prerecord" Application to /home/itv/public_html/mv

    In addition, I've made the above mentioned changes to the Server.Xml file.


    Wirecast is able to stream to the prerecord application without any issue.

    Am I doing it correctly?

  8. #8
    Join Date
    May 2012
    Posts
    12

    Default

    Hi Richard,

    This is the output I'm getting from the standalone:

    INFO server comment - CMDInterface now listening: [any]:8083
    INFO vhost vhost-start _defaultVHost_ -
    INFO server comment - _defaultVHost_ threads[h/t]:120/80 home:/usr/local/WowzaMediaServer
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:1935:4)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:554:4)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:554)
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:8086:1)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:8086)
    INFO server comment - ServerListenerStreamPublisher Started.
    INFO application app-start _definst_ prerecord/_definst_
    INFO server comment - ServerListenerStreamPublisher: Streame name is 'Stream1'
    INFO stream create - -
    INFO stream publish Stream1 -
    INFO server comment - scheduled playlist: Stream1 on stream: Stream1 for:Fri Dec 11 16:00:00 SGT 2009
    INFO server comment - ServerListenerStreamPublisher Scheduled: Stream1 for: 2009-12-11 16:00:00
    INFO server comment - Wowza Media Server is started!
    INFO server comment - ServerListenerStreamPublisher Scheduled stream is now live: Stream1
    INFO server comment - Stream.switch[prerecord/_definst_/Stream1]: index: 0 name:mp4:SSeowEpisode 25_qtp.mp4 start:-2 length:60
    INFO server comment - ServerListenerStreamPublisher PlayList Item Start: mp4:SSeowEpisode 25_qtp.mp4
    INFO session connect-pending 116.15.210.142 -
    INFO session connect 116.15.210.142 -
    INFO stream create - -
    INFO server comment - Stream.switch[prerecord/_definst_/Stream1]: index: 0 name:mp4:SSeowEpisode 25_qtp.mp4 start:-2 length:60
    INFO server comment - ServerListenerStreamPublisher PlayList Item Start: mp4:SSeowEpisode 25_qtp.mp4
    INFO server comment - Stream.switch[prerecord/_definst_/Stream1]: index: 0 name:mp4:SSeowEpisode 25_qtp.mp4 start:-2 length:60
    INFO server comment - ServerListenerStreamPublisher PlayList Item Start: mp4:SSeowEpisode 25_qtp.mp4
    INFO server comment - Stream.switch[prerecord/_definst_/Stream1]: index: 0 name:mp4:SSeowEpisode 25_qtp.mp4 start:-2 length:60
    INFO server comment - ServerListenerStreamPublisher PlayList Item Start: mp4:SSeowEpisode 25_qtp.mp4

    However in the test page from which its supposed to play, I see nothing but a constant loading:

    www.itv.sg/player-test.html


    Any ideas?

  9. #9
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    The mp4 files and streamschedule.smil are found in the public_html/mv/
    This above wrong. is The mp4 files and .smil file should be where you have set the application's StorageDir: /home/itv/public_html/mv

    Richard

  10. #10
    Join Date
    May 2012
    Posts
    12

    Default

    Yes Richard, they are in the same locations. I've confirmed from the output above that the prerecord application is correctly configured. Now the issue is the playback. As in the above output, I see that the stream is starting and the playlist item is loaded.

    However, all I see is loading but the video never actually plays.

Page 1 of 2 12 LastLast

Similar Threads

  1. how to play .flv files instead of .mp4 files in wowza from flash player
    By malarprathap in forum Video On Demand Streaming Discussion
    Replies: 1
    Last Post: 08-07-2012, 04:56 AM
  2. Replies: 3
    Last Post: 03-24-2012, 12:15 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
  •