• How to use Visionary Solutions AVN420 encoder with Wowza Media Server (MPEG-TS)

    Step-by-step instructions for using Visionary Solutions (VSI) H.264 hardware encoder (AVN420) with Wowza media server via MPEG-TS.

    Test Setup
    Wowza media server -
    AVN420 Encoder -
    Flash Media Player V10
    Test PC -
    A/V source - DVD Player

    AVN420 Configuration
    System Configuration/Firmware
    Root File System = RFS4XX_037
    Linux Kernel = LK4XX_015
    U-Boot Loader = UB4XX_01C
    Configuration Partition = CFG4XX_037

    Stream Mode = Transport Stream
    Stream Destination = (address of the Wowza media server)
    Stream Boot Delay = 0
    Stream Kicker = 0
    Stream TTL = 8
    Auxiliary Stream Synch = Synch Both
    AUX1 Destination =
    AUX2 Destination =

    Video Input:
    Source = Composite
    Format = NTSC

    Audio Input:
    Source = Unbalanced

    AV Mode = Audio and Video
    GOP Size = 120
    Picture Coding = Frame
    Scene Change Detection = Insert I Frame
    Video Bitrate = 600 Kbps
    Video Size = 320x240
    Audio Bitrate = 64 Kbps
    Audio Format = AAC

    1. Configure the AVN420 for Transport Stream streaming (see above)
    2. Download Videolan VLC media player to a PC for test purposes
    3. Configure AVN420 Stream Destination IP address to match the PC with VLC player and use port 20000 (ie:
    4. Start the AVN420 stream
    5. On VLC player select Media/Open Network, set protocol to UDP, address to that of the PC (ie:, port to 20000
    6. Click Play and the stream should play

    After this is working, then you are ready to move on to the Wowza setup.

    Wowza Configuration
    1. Start with a clean install of Wowza Media Server (Latest Production Build) and apply the Latest Update.
    2. Create a new Wowza Media Server application for streaming (may already exist if examples installed).
      1. Create the folder [install-dir]/applications/rtplive.
      2. Create the folder [install-dir]/conf/rtplive.
      3. Copy the [install-dir]/conf/Application.xml file to [install-dir]/conf/rtplive.
      4. Edit the newly copied Application.xml and make the following changes:
        • Change Streams/StreamType to rtp-live.
        • Add the following properties to the Streams/Properties container (there are several <Properties> containers, be sure to add to the correct container):
    3. Start Wowza Media Server.
    4. Configure the encoder to send the stream to the Wowza Media Server IP address and a given port number of your choosing. (Note: this number is used below as the [port] part of the stream name when you play the stream.) It is probably best to choose a port number greater than 10000 so as to not conflict with regular RTSP/RTP streaming. If the Wowza Media Server is behind a router that uses NAT (network address translation), send it to the router's external IP address and be sure to map the UDP port to the correct internal IP address. Be sure that the time-to-live value on the encoder is high enough so that the stream can reach the Wowza Media Server. (time-to-live explained).

    Wowza Playback
    1. Double-click:
      [install-dir]/examples/LiveVideoStreaming/FlashRTMPPlayer/player.html (Wowza Media Server 3.5)
      [install-dir]/examples/LiveVideoStreaming/client/live.html (Wowza Media Server 3.1.2 and earlier)
    2. Set Server to rtmp://[wowza-ip-address]/live (where [wowza-ip-address] is the IP address of the Wowza Media Server).
    3. Set Stream to udp://[wowza-ip-address]:[port] (where [port] is the UDP port to which you sent the MPEG-TS stream).
    4. Example:
      Server: rtmp://
      Stream: udp://
    5. Click Connect or Play.

    Confidence Dumps
    After starting the Wowza media server, you should see the following status:
    Configure logging: file:///C:/Program Files/Wowza Media Systems/Wowza Media Server Pro 1.7.2/conf/log4j.properties
    INFO server server-start Wowza Pro MPEG-TS Eval ends 31 Oct 2009 1.7.2 build1219
    6 -
    INFO server comment - Serial number: XXXXX-XXXXX-XXXXX-XXXXX-6WCF3
    INFO server comment - Maximum connections: Unlimited
    INFO server comment - Hardware Available Processors: 1
    INFO server comment - Hardware Physical Memory: 699MB/1023MB
    INFO server comment - Hardware Swap Space: 2168MB/2462MB
    INFO server comment - Max File Descriptor Count: Unlimited
    INFO server comment - OS Name: Windows XP
    INFO server comment - OS Version: 5.1
    INFO server comment - OS Architecture: x86
    INFO server comment - OS CPU: pentium_pro+mmx pentium_pro pentium+mmx pentium i4
    86 i386 i86
    INFO server comment - Java Name: Java HotSpot(TM) Client VM
    INFO server comment - Java Vendor: Sun Microsystems Inc.
    INFO server comment - Java Version: 1.5.0_16
    INFO server comment - Java VM Version: 1.5.0_16-b02
    INFO server comment - Java Spec Version: 1.5
    INFO server comment - Java Home: C:\Program Files\Java\jre1.5.0_16
    INFO server comment - Java Max Heap Size: 762MB
    INFO server comment - Java Architecture: 32
    INFO server comment - CMDInterface now listening: [any]:8083
    INFO server comment - vhost home directory: C:\Program Files\Wowza Media Systems\Wowza Media Server Pro 1.7.2
    INFO vhost vhost-start _defaultVHost_ -
    INFO vhost comment _defaultVHost_ RTMP/RTMPT bind attempt ([any]:1935)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)

    After hitting the Play Stream Button
    INFO application app-start _definst_ live/_definst_
    INFO session connect-pending -
    INFO session connect -
    INFO stream create - -
    INFO server comment - MediaStreamMediaCasterPlay: startPlay
    INFO server comment - RTPMediaCaster.create
    INFO server comment - RTPMediaCaster.init
    INFO server comment - RTPMediaCaster.Reconnector: start
    INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: URI:
    INFO stream create - -
    INFO stream create - -
    INFO stream publish udp:// -
    INFO server comment - RTPMediaCaster.Reconnector: stop
    INFO server comment - UDPTransport.bind: /
    INFO server comment - UDPTransport.firstPacket: /
    INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: videoPID: 0x45
    INFO server comment - RTPDePacketizerMPEGTS.handleRTPPacket: audioPID: 0x44
    INFO stream play udp:// -

    If you're having problems or want to discuss this article, post in our forum.