Results 1 to 7 of 7

Thread: Playlist with MPEG-TS as source

  1. #1

    Default Playlist with MPEG-TS as source

    I am making a scheduled play list using two sources.
    1) MPEG-TS input
    2) Local file

    Above sources alternate at specified hours.

    Following the tutorial, I got the system working as expected.

    However, this method requires two procedures.

    1. For the MPEG-TS, create a Stream file listening to the UDP port. (Name it '' for now)

    2. Edit 'streamschedule.smil' so that video source points to '' at desired hour.

    Instead of this, I would like to write directly inside 'streamschedule.smil' which UDP port to listen to for the incoming MPEG-TS and use that as video source.
    Is this possible?

  2. #2
    Join Date
    Jun 2012



    The streamschedule.smil file needs to have a reference to a file or a stream that is already available/published on your Wowza server.
    In order to have Wowza connect/listen to a certain UDP port, you will need to configure the .stream file with the correct IP and port information and then publish the stream to your Wowza server.
    After these conditions are satisfied, you will be able to have your scheduled stream working.

    Just as a remark, some player do not support a sudden change in video codec and/or video image size. Having this in mind, you will need to make sure that your local file and the incoming MPEG-TS stream, have the same encoding parameters.

    Last edited by zoran_u; 08-06-2014 at 07:55 AM.

  3. #3


    Dear Zoran,

    Thank you.
    I will keep the current settings then.

    I would appreciate one more help
    The files provided to call the reload method from a web browser 'ModuleScheduleClient' works fine.
    However, by default the module seems to accept calls from any remote host.
    Does StreamPublisher module provide a way to limit which hosts to listen to?

    Thank you.

  4. #4
    Join Date
    Jun 2011


    It does not have that capability. You would need to extend the module Stream Publisher to do that.
    The Schedule Stream Publisher is part of the Wowza Module Collection.
    The Module Collection download package includes source code that you can use to see how the modules are implemented and to extend the modules for your own use.


  5. #5


    Hi Daren,

    Thank you.
    I modified '',
    At the top of 'loadSchedule' method, added the following to reject remote calls."StreamPublisher: Relaod requested by: " + client.getIp());
    if (!client.getIp().equals("")) {"StreamPublisher: Rejecting remote request.");
    }"StreamPublisher: Reloading schedule file.");

    It seems to be working as expected on the surface.
    However, to be honest I am not so familiar with the Wowza API, nor Flash programming.
    Could the above code (how it leaves the method) potentially leave any server threads or Flash clients waiting for a response hanging?

  6. #6


    The original method does send a response back to the flash client so it would possibly be left hanging and waiting for a response.

    Assuming that the attempt to reload the schedule is malicious, it would probably be better to close the connection instead.

    The following will do that.
    	public void loadSchedule(IClient client, RequestFunction function, AMFDataList params)
    		{"StreamPublisher: Relaod requested by: " + client.getIp());
    			if (!client.getIp().equals(""))
    				client.setShutdownClient(true);"StreamPublisher: Rejecting remote request.");	
    				sendResult(client, params, loadSchedule());
    		catch (Exception e)
    			sendResult(client, params, e.getMessage());

  7. #7


    Hi Roger,

    That is great.
    I will be using your suggested code.
    Thank you.

Similar Threads

  1. How Wowza handles MPEG-TS source, RTMP playout
    By DavidS in forum Live Streaming and Encoders
    Replies: 3
    Last Post: 07-24-2014, 08:36 AM
  2. Playlist stream source spec
    By Atmapuri in forum Wowza Streaming Server Java API
    Replies: 5
    Last Post: 07-21-2014, 01:06 PM
  3. Problem with Using Wowza to Publish MPEG-TS IP Stream Source
    By mootaz in forum Live Streaming and Encoders
    Replies: 1
    Last Post: 04-16-2014, 03:29 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