• How to publish and play a live stream (MPEG-TS based encoder)

    This tutorial provides the basic steps for using a live encoder that publishes a stream using the MPEG-2 Transport Stream (MPEG-TS) protocol to stream live content to Adobe® Flash® Player, Microsoft® Silverlight® player, Apple® iOS devices, and RTSP/RTP based-players. Instructions are provided for Wowza Streaming Engine™ Manager for Wowza Steaming Engine™ 4.0 and for Wowza Media Server® 3.6.2 and earlier.




    Related Articles


    This section provides the basic steps for setting up an application for live streaming.

    Wowza Streaming Engine Manager configuration

    This section shows you how to set up a live streaming application in Wowza Streaming Engine™ Manager. Users play the live stream to view an event as it happens. Live streams are sent to the streaming engine from an encoder that delivers a stream in the MPEG-2 Transport Stream (MPEG-TS) format. The example uses an application named live, which is included in default installations of Wowza Streaming Engine software 4.0. The procedure is the same if you want to create a new live streaming application.

    1. Start Wowza Streaming Engine Manager.

    2. In Wowza Streaming Engine manager, click Applications at the top of the page.

    3. Configure the live application:

      1. In the contents pane, click live. (This example uses the installed live application. If you want to create a new live streaming application, Click Add, then Live, and then follow the instructions in the UI.)

      2. On the Setup tab, click Edit.

      3. Select the following Playback Types options: MPEG-DASH, Apple HLS, Adobe RTMP, Adobe HDS, and Microsoft Smooth Streaming. Accept the defaults for other settings.

      4. Click Save.

        The following alert will appear after every configuration change. Wait until all changes are complete before you restart.

    4. Configure outgoing (playback) authentication:

      1. In the contents pane, click Outgoing Security.

      2. Click Edit.

      3. Under Client restrictions, select No client restrictions.

      4. Click Save.

    5. Restart the application.

    The application runs whenever Streaming Engine software is running.

    Publishing the stream

    This section provides the basic steps for creating a .stream file to publish your live stream to the Streaming Engine software.

    1. Consult your MPEG-TS encoder documentation to configure an outgoing live stream.

    2. Create .stream file:

      1. In the contents pane, click Stream Files.

      2. Under Virtual Host Stream Files, click + Add Stream File.

      3. In the Add Stream Files dialog, enter a name for the new stream.

      4. Click Add.

      5. On the Basic tab, click Edit.

      6. Enter the URI of the stream.

        For MPEG-TS based encoder, use udp:// If you're receiving a multicast stream, change the part of the URL to the multicast address of the stream.

      7. Click Save.

      8. In the Server contents pane, click Startup Streams.

      9. Under Virtual Host Startup Streams, click + Add Startup Stream.

      10. In the Add to Startup Streams dialog, enter the name of the stream you created in step c.

      11. For Application, enter live.

      12. Select rtp for Mediacaster Type.

      13. In the Server contents pane, click Server Setup.

      14. Restart the server, using the button.

    XML Configuration for Wowza Media Server 3.6.2 and earlier

    Note: If you created your application as described in the previous sections, skip this section. Earlier versions of the server software don’t support Wowza Streaming Engine manager, so you must edit Application.xml in a text editor. If you make changes to Application.xml and you’re using the Streaming Engine software, any supported settings will be displayed in the manager the next time it’s started.
    This section shows you how to configure the live application by editing the Application.xml configuration file in a text editor.
    1. Create application folder [install-dir]/applications/live.

    2. Create configuration folder [install-dir]/conf/live and copy [install-dir]/conf/Application.xml to this new folder.

    3. Edit the newly copied Application.xml file and make the following changes (some of these settings may already be present):

      Note: Right-click HERE to download a pre-configured version of Application.xml.

      1. Set the Streams/StreamType property to:
      2. Set the HTTPStreamers property to:
      3. Set the Streams/LiveStreamPacketizers property to:
        <LiveStreamPacketizers>cupertinostreamingpacketizer, smoothstreamingpacketizer, 
           sanjosestreamingpacketizer, mpegdashstreamingpacketizer, mpegdashstreamingrepeater 
      4. Set the RTP/Authentication/PlayMethod property to:

    4. Using a text editor, edit the [install-dir]/conf/admin.password file and add a user name and password that will be used to start and stop the publishing of the MPEG-TS stream (below is an example of the file with [publisherName] and [password]):
      # Admin password file (format [username][space][password])
      # username password
      [publisherName] [password]

    Publishing the Stream in XML

    1. Consult your MPEG-TS encoder documentation to configure an outgoing live stream. Use port 10000 to publish the stream to the IP address of the server that is running Streaming Engine software.

    2. Create the .stream file.

      1. Use a text editor to create the file [install-dir]/content/mpegts.stream and set the contents of this file to udp:// If you're receiving a multicast stream, change the part of the URL to the multicast address of the stream.
    3. Start the Streaming Engine software.

    4. Use Stream Manager to start the MPEG-TS stream.

      1. Enter the following URL in a web browser:
        URL: http://[wowza-ip-address]:8086/streammanager

      2. In the Security dialog box, enter your admin username and password from above.

      3. In the Stream Manager webpage, click the [start-receiving-stream] link just below the live application folder.

      4. In the Start Receiving Stream dialog box, select the following MediaCaster Type option: rtp

      5. In the Stream Name field, enter mpegts.stream.

      6. Click OK.


    Note: In the following examples, [wowza-ip-address] is the IP address or domain name of the server that is running the Streaming Engine software.
    Playback in Wowza Streaming Engine ManagerIn Wowza Streaming Engine manager, click the Test Players button in the upper-right corner of the live application page. The Test Application window that opens includes test players that are preconfigured to stream the live stream named myStream over various streaming formats.

    Each tab in the Test Application window either hosts a test player that you can use to play the live stream or provides instructions for playing the live stream. For example, to use the Microsoft Smooth Streaming protocol to play myStream, click the Microsoft Smooth tab.
    Enter the information below, and then click Start.

    Stream: http://[wowza-ip-address]:1935/live/mpegts.stream/Manifest

    The test players are also online at www.wowza.com/testplayers.

    Example players

    You can also use example players installed in [install-dir]/examples/ to test your streaming applications. For more information see the following articles:

    Adaptive Bitrate Streaming

    Adaptive bitrate (ABR) live streaming to Adobe® Flash® Player, Apple iOS devices, and Microsoft Silverlight requires that you have an encoder that can generate multiple bitrate streams from the same source with properly aligned key frames. You also must create a Synchronized Multimedia Integration Language (SMIL) file that links the streams together for playback.

    For more information, see How to do adaptive bitrate streaming.



    RTSP/RTP streaming is used to stream to Android™ and BlackBerry® mobile devices. Android mobile devices formerly supported Adobe Flash player, but Android no longer supports Flash. Newer Android devices now support Apple HLS. HLS works best on Android 4.0 devices and above.

    To stream to RTSP/RTP, be sure that UDP ports 0-65535 are open and properly mapped to the server that is running the Streaming Engine software.

    Note: To configure Wowza Streaming Engine software properly for RTSP/RTP streaming, carefully follow the instructions provided in How to troubleshoot RTSP/RTP playback
    Common problems with .stream files

    Many text editors will append a .txt filename extension to the mpegts.stream filename. This will result in an error message similar to the following:

    SDP file missing: c:/program files/wowzamediasystems/wowzamediaserver[version]/content/mpegts.stream

    To fix this, go to the [install-dir]/content folder and remove the .txt filename extension from the file.

    The mpegts.stream file contains the address of the incoming UDP stream that carries the MPEG-TS packets. Most of the time, it's sufficient to set this address to the following:

    URL: udp://[port]

    Where [port] is the port number to which the stream is being published.

    The IP address ( instructs your Streaming Engine software to listen on all local IP addresses for the incoming stream. Sometimes this will not work properly if the computer has multiple network interfaces. If this happens, it's best to specify the internal IP address of the stream. For example, to listen to the local loopback interface, you might specify:

    URL: udp://

    Or you might specify the computer's internal NAT address:

    URL: udp://

    Properties to fix audio and video alignment

    Some MPEG-TS encoders publish audio and video where the media frames aren't aligned on PES packet boundaries. This misalignment will cause the audio and video to not play. Wowza Streaming Engine software can re-align unaligned streams, but it requires that a property be added to [install-dir]/conf/[application]/Application.xml.

    To turn on the code to fix audio alignment, add the following property to the RTP/Properties container in [install-dir]/conf/[application]/Application.xml (be sure to get the correct <Properties> container; there are several in the Application.xml file):
    To turn on the code to fix video alignment, add the following property to the RTP/Properties container in [install-dir]/conf/[application]/Application.xml (be sure to get the correct <Properties> container; there are several in the Application.xml file):
    Note: (Wowza Media Server 3.0.0 or later is required.)

    Property to fix TS packet alignment in UDP packets

    A few MPEG-TS encoders don't align TS packets correctly in UDP packets. When this happens, you'll see lots of the following warning messages in the logs:

    RTPDePacketizerMPEGTS.handleRTPPacket: Out of sync: 0x[nn]

    Add the following property to the RTP/Properties container in [install-dir]/conf/[application]/Application.xml (be sure to get the correct <Properties> container; there are several in the Application.xml file):
    Streaming Engine software only allows a single rtpDePacketizerWrapper value. If you have configured a jitter buffer or packet recorder that uses the same rtpDePacketizerWrapper, they must be removed.

    Property to force output to MPEG-TS (set-top box)

    When streaming out using RTSP/RTP, you can force the output to MPEG-TS, which is required by many set-top boxes. For more information, see How to generate and control MPEG-TS output for set-top boxes.

    Property to change AAC packetization method

    Streaming Engine software can use the mpeg4-generic and mp4a-latm (3gpp) packetization methods to output AAC audio. The default packetization method is mpeg4-generic. To switch to mp4a-latm (3gpp), add the following property to the RTP/Properties container in [install-dir]/[application]/Application.xml (be sure to get the correct <Properties> container; there are several in the Application.xml file):

    Property to import AC-3 elementary streams

    Note: Wowza Media Server 3.5.1 or later is required.
    Streaming Engine software can import AC-3 elementary streams, using Apple HLS (Cupertino) and Microsoft Smooth Streaming to allow Dolby® Digital (AC-3) and Dolby Digital Plus (Enhanced AC-3) audio from MPEG-TS encoders to pass through unaltered for delivery. This lets your customers to experience immersive surround-sound audio when streaming on media devices such as Apple TV®, Xbox 360®, Sony PlayStation® 3 (PS3), hybrid set-top boxes, and smart TVs. To import AC-3 elementary streams, add the following property to the RTP/Properties container in [install-dir]/[application]/Application.xml (be sure to get the correct <Properties> container; there are several in the Application.xml file):

    Updated: For Wowza Streaming Engine 4.0.0 on 02-11-2014

    Comments 35 Comments
    1. bmckim -
      This article forgets to tell you to publish the .smil file as a stream:

      Using either the Stream Manager, [install-dir]/conf/StartupStreams.xml or IApplicationInstance.startMediaCasterStream(...), start the stream using the stream name smil:[smil-file-name]. For example, to start the stream group above use the stream name smil:stream.smil. Once started, you can double check to be sure the stream is started as a group by viewing the streams in the Stream Manager. Stream groups will be listed under each of the individual streams.
    1. rrlanham -
      I don't think it is ever necessary to start a smil file with MediaCaster, just the items in the smil, if they are MediaCaster streams.

    1. lisa_w -
      Added note with required parameters for playback with Microsoft Silverlight (Smooth Streaming). -Lisa
    1. apakabartv -
      I have a couple of questions.

      1) any idea why we have to login to port 8086 in order to start receiving mpegts stream ?

      2) can the above "live" and "rtp-live" stream types coexist at the same time ? I can have the rtp-live stream type above to work, but not the live.
    1. rrlanham -
      If you don't want to login to StreamManager, open /conf/VHost.xml and search for
      , then change the AuthenticationMethod in that HTTProvider to "none", then restart Wowza. However, this is not a good idea for security reasons.

      You can have an application with StreamType "live" and publish (push) streams to that application, then start other MediaCaster (pull) streams with the StreamManager, and they can all co-exists, no problem.

    1. apakabartv -
      Thank you very much.

      Actually what I wanted to ask was how to automatically start receiving live stream (i.e. without having the admin to login and click the "start receiving stream"). Your answer leads me to chapter 5 of Wowza user guide and I got what I want. Edit the StartupStreams.xml file and uncomment the <StartupStream> section for MPEG-TS.

      Cool ...
    1. countz -
      Can you have multiple entries in a .stream file?
    1. rrlanham -
      No, just one

    1. countz -
      I have the below sample URL for iPad users, how do I make it redundant such that it will try more than one .stream file?


      At the moment, if the source specified in test.stream is down, users get a "File not found" message.
    1. rrlanham -
      I can't think of an easy way to do that.

    1. LearnerDev -
      So when transcoding with VLC which profile i should use?
    1. rrlanham -
      If you are streaming to mobile devices, Baseline 3 is recommended.

      More info:

    1. tunglq87 -
      Hi, all!

      I don't understand step 7 above how to.( Configure the MPEG-TS based encoder to send a live stream to the IP address of the server running Wowza Server using port 10000 ). everyone help me...!
    1. rrlanham -
      This article shows how to use StreamManager:


    1. rrlanham -
      Sorry StreamManager is step 8.

      Step 7, configuring your encoder, is specific to whichever encoder you are using, but there should be a way to enter an IP address that you will point the stream at. Make that the IP address of your Wowza server.

    1. tunglq87 -
      Thanks! Richiard !

      I understand! and i used encoder (vlc, wirecast) success. But, when i use encoder on windows. Now, Can i use encoder on Linux (CentOS 5.6 64 bit)? so, how to config them? ( my system is using Wowza media server 2 on CentOS 5.6 64 bit)
    1. rrlanham -
      The only mpegts encoder that I have experience with really is VLC:


    1. apakabartv -

      Any suggestion how I could secure the UDP port from unsolicited (trashing) stream?
      I mean, if Wowza listens to an incoming stream on a public IP, then once someone out there figures out the port number, he/she could send some bogus stream just to interfere with my own stream.

      One way that I have in mind is as follow:

      Put 2 network interface cards on the Wowza server. one is connected to the LAN (private IP), and one is connected to the internet (public IP). Wowza will only listen to incoming stream on the LAN interface.
      Then all of my live stream sources (e.g. IP camera, etc) will need to be on the LAN. This can be achieved by having VPN setup for my remote IP camera in order to get access to the LAN. I know that setting up a VPN access like this could be another big job.

      Is there any other suggestion in this topic ?

      Thanks in advance,
    1. charlie -
      There should be a way to do it using IP tables where you only allow a given IP address or address range to write UDP packets to a given port. I do not know the exact syntax.

    1. cnfcnf -
      Hi there,

      I am very confused. I am trying to transmit a live video from my webcam/tv tuner to my server running Wowza using VLC. I am not trying to transfer a fixed mp4 file.

      Can anyone tell me the VLC settings for this? I believe the Input source in this case should be a capture device. Am I correct about this?

      I am a bit confused on how I should "refer" to the capture device on the commandline. For instance, if I am using a webcam, what is the capture device name? Obviously I would need to specify 2 things: the capture device from where the video is to be taken, and the destination server on which wowza is running.

      Please help!