Results 1 to 10 of 10

Thread: Setup origin and edge servers

  1. #1
    Join Date
    Nov 2010
    Posts
    6

    Default Setup origin and edge servers

    I'm new to the forums

    I'm using the evaluation Developer license, and have installed wowza on 2x Centos 5.5 servers.

    When I broadcast RTP from a webcam to one of the servers, it then broadcasts out to VLC, ipad, iphone etc. but just from that server.

    I'm now trying to setup 1 of my servers as the origin (wowza01), and 1 as the edge (wowza02).
    I followed the tutorial for setting this up, but it's not working.

    Here is a condensed version of my Origin - Application.xml
    <StreamType>liverepeater-origin</StreamType>
    <LiveStreamPacketizers>cupertinostreamingpacketize r,smoothstreamingpacketizer,sanjosestreamingpacket izer</LiveStreamPacketizers>
    And here is my condensed Edge - Application.xml
    <StreamType>liverepeater-edge</StreamType>
    <LiveStreamPacketizers>cupertinostreamingpacketize r,smoothstreamingpacketizer,sanjosestreamingpacket izer</LiveStreamPacketizers>
    <Repeater>
    <OriginURL>rtmp://wowza01.apx.local/liveorigin</OriginURL>
    <QueryString></QueryString>
    </Repeater>
    I get the following error in VLC:
    VLC is unable to open the MRL 'rtsp://wowza02:1935/liveedge/myStream.sdp
    Is there some module I need?
    Am I limited to doing this with the Developer Evaluation version?

    Please help

  2. #2

    Default

    Hi and welcome to the forums.

    On the edge servers, you want to set the LiveStreamPacketizers to the repeater variants.

    Also, the stream will not actually start on the edge server until it is requested. The startup takes a couple of seconds to happen so this may be causing vlc to think the stream is not available. You can manually start the stream on the edge by using the StreamManager or StartupStreams.xml

    The limits on the developer version are 10 concurrent connections or 3 minutes on HTTP connections.

  3. #3
    Join Date
    Nov 2010
    Posts
    6

    Default

    Thanks for the response!

    Still no luck though, but I did move forward.

    I changed the LiveStreamPacketizers to the repeater variants on the Edge.

    I then logged into the edge via http and started the "liveedge/_definst_", changed MediaCaster Type to liverepeater and gave it a stream name.

    Publish stream successfully started [liveedge/_definst_]: flv:myStream.sdp
    But in the error log I show this error:

    WARN server comment 2010-11-30 14:38:28 - - - - - 329.179 - - - - - - - - LiveMediaStreamHandler.connect: failure

  4. #4

    Default

    Scott,

    Developer licenses cannot be used in an origin-edge set up or for commercial streaming (please refer to the Wowza EULA). The Developer license is also limited to 10 connections and has a time limit on HTTP streaming.

    Are you doing pre-purchase testing? If that's the case, you can request a 30-day free Evaluation license at http://www.wowzamedia.com/eval.php.

    Alex

  5. #5
    Join Date
    Nov 2010
    Posts
    6

    Default

    Great. I've requested the 30-day evaluation.

    This is a pre-purchase testing that I'm running. I'm hoping to show proof of concept to my boss.

    Thanks,

  6. #6
    Join Date
    Nov 2010
    Posts
    6

    Default

    Ok I have 2 evaluation licenses, but I'm still stuck.

    Scenario:
    Servers
    Wowza01 (Centos 5.5) Origin server (10.0.10.7)
    Wowza02 (Centos 5.5) Edge server (10.0.10.2)

    At 9:50 I enable quicktime broadcaster to stream to my origin server.
    The stream appears to be ok.
    At 9:55 I use the Stream Manager (http://10.0.10.7:8086/streammanager) to start my stream using the "LiveRepeater" option.
    It says it publishes the steam successfully, but I get a "LiveMediaStreamHandler.connect: failure"

    Note, I get this error before attempting to pull the video from the edge server.

    Please see my logs below.
    Any help is greatly appreciated.
    Code:
    #Version: 1.0
    #Start-Date: 2010-12-10 09:50:12 MST
    #Software: Wowza Media Server 2.2.0 build26280
    #Date: 2010-12-10
    #Fields: date   time    tz      x-event x-category      x-severity      x-status        x-ctx   x-comment       x-vhost x-app   x-appinst       x-duration      s-ip    s-port  
    2010-12-10      09:50:12        MST     server-start    server  INFO    200     Wowza 2 Eval edition  15 January 2011 2.2.0 build26280
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Serial number: XXXXX-XXXXX-XXXXX-XXXXX-YWAFK
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Maximum connections: Unlimited
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Hardware Available Processors: 4
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Hardware Physical Memory: 1837MB/2026MB
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Hardware Swap Space: 4031MB/4031MB
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Max File Descriptor Count: 1024
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Open File Descriptor Count: 41
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       OS Name: Linux
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       OS Version: 2.6.18-194.26.1.el5
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       OS Architecture: i386
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Name: OpenJDK Server VM
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Vendor: Sun Microsystems Inc.
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Version: 1.6.0_17
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java VM Version: 14.0-b16
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Spec Version: 1.6
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Max Heap Size: 1155MB
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Architecture: 32
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Encoding[file.encoding]: UTF-8
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Args[0]: -Xmx1200M
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Args[1]: -Djava.net.preferIPv4Stack=true
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Args[2]: -Dcom.sun.management.jmxremote=true
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Args[3]: -Dcom.wowza.wms.AppHome=/usr/local/WowzaMediaServer
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Args[4]: -Dcom.wowza.wms.ConfigURL=
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java Args[5]: -Dcom.wowza.wms.ConfigHome=/usr/local/WowzaMediaServer
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java GC[0]: PS Scavenge
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Java GC[1]: PS MarkSweep
    2010-12-10      09:50:12        MST     comment server  INFO    200     -       Server threads[h/t]: 10/10
    2010-12-10      09:50:45        MST     comment server  INFO    200     -       CMDInterface now listening: [any]:8083
    2010-12-10      09:50:45        MST     vhost-start     vhost   INFO    200     _defaultVHost_
    2010-12-10      09:50:46        MST     comment server  INFO    200     -       _defaultVHost_ threads[h/t]:120/80 home:/usr/local/WowzaMediaServer
    2010-12-10      09:50:46        MST     comment vhost   INFO    200     _defaultVHost_  Bind attempt ([any]:1935:4)
    2010-12-10      09:50:46        MST     comment vhost   INFO    200     _defaultVHost_  Bind successful ([any]:1935)
    2010-12-10      09:50:46        MST     comment vhost   INFO    200     _defaultVHost_  Bind attempt ([any]:1936:4)
    2010-12-10      09:50:46        MST     comment vhost   INFO    200     _defaultVHost_  Bind successful ([any]:1936)
    2010-12-10      09:50:46        MST     comment vhost   INFO    200     _defaultVHost_  Bind attempt ([any]:8086:1)
    2010-12-10      09:50:46        MST     comment vhost   INFO    200     _defaultVHost_  Bind successful ([any]:8086)
    2010-12-10      09:50:58        MST     app-start       application     INFO    200     _definst_       liveorigin/_definst_
    2010-12-10      09:50:58        MST     connect rtsp    INFO    200     1421715890      -       _defaultVHost_  liveorigin      _definst_       46.244  10.3.2.22       554     rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   10.3.2.22       rtsp    -       QuickTime/7.6.6 (qtver=7.6.6;cpu=IA32;os=Mac 10.6.4)    1421715890      0       0       -       -       -       -       -       -       -       -       -       -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -
    2010-12-10      09:50:58        MST     create  stream  INFO    200     -       -       _defaultVHost_  liveorigin      _definst_       0.02    10.3.2.22       554     rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   10.3.2.22       rtsp    -       QuickTime/7.6.6 (qtver=7.6.6;cpu=IA32;os=Mac 10.6.4)    1421715890      0       0       1       0       0       0       myStream.sdp    -       -       -       -       -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -
    2010-12-10      09:50:58        MST     announce        rtsp    INFO    200     1421715890      -       _defaultVHost_  liveorigin      _definst_       0.225   10.3.2.22       554     rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   10.3.2.22       rtsp    -       QuickTime/7.6.6 (qtver=7.6.6;cpu=IA32;os=Mac 10.6.4)    1421715890      0       0       -       -       -       -       myStream.sdp    -       -       -       -       -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -
    2010-12-10      09:50:58        MST     publish stream  INFO    200     myStream.sdp    -       _defaultVHost_  liveorigin      _definst_       0.115   10.3.2.22       554     rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   10.3.2.22       rtsp    -       QuickTime/7.6.6 (qtver=7.6.6;cpu=IA32;os=Mac 10.6.4)    1421715890      0       0       1       0       0       0       myStream.sdp    -       -       -       -       -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -
    2010-12-10      09:50:58        MST     comment server  INFO    200     -       RTPUDPTransport.bind[liveorigin/_definst_]: 0.0.0.0/0.0.0.0:6970
    2010-12-10      09:50:58        MST     comment server  INFO    200     -       RTPUDPTransport.bind[liveorigin/_definst_]: 0.0.0.0/0.0.0.0:6971
    2010-12-10      09:50:58        MST     comment server  INFO    200     -       RTPUDPTransport.bind[liveorigin/_definst_]: 0.0.0.0/0.0.0.0:6972
    2010-12-10      09:50:58        MST     comment server  INFO    200     -       RTPUDPTransport.bind[liveorigin/_definst_]: 0.0.0.0/0.0.0.0:6973
    2010-12-10      09:50:58        MST     publish rtsp    INFO    200     1421715890      -       _defaultVHost_  liveorigin      _definst_       0.354   10.3.2.22       554     rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   10.3.2.22       rtsp    -       QuickTime/7.6.6 (qtver=7.6.6;cpu=IA32;os=Mac 10.6.4)    1421715890      0       0       -       -       -       -       myStream.sdp    -       -       -       -       -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   rtsp://10.0.10.7:1935/liveorigin/myStream.sdp   -       rtsp://10.0.10.7:1935/liveorigin/myStream.sdp
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       UDPTransport.firstPacket: 0.0.0.0/0.0.0.0:6970
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       UDPTransport.firstPacket: 0.0.0.0/0.0.0.0:6972
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       RTCPHandler.sendFirstRTCPRR[44790983,6971,/10.3.2.22:6971]
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       RTCPHandler.sendFirstRTCPRR[44807790,6973,/10.3.2.22:6973]
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       UDPTransport.firstPacket: 0.0.0.0/0.0.0.0:6973
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       UDPTransport.firstPacket: 0.0.0.0/0.0.0.0:6971
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerSanJose.init[liveorigin/_definst_/myStream.sdp]: chunkDurationTarget: 10000
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerSanJose.init[liveorigin/_definst_/myStream.sdp]: chunkDurationTolerance: 500
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerSanJose.init[liveorigin/_definst_/myStream.sdp]: playlistChunkCount:4
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: sanjosestreamingpacketizer:myStream.sdp
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerSanJose.handlePacket: Video codec: H264
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerSanJose.handlePacket: Audio codec: AAC
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerCupertino.init[liveorigin/_definst_/myStream.sdp]: chunkDurationTarget: 10000
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerCupertino.init[liveorigin/_definst_/myStream.sdp]: chunkDurationTolerance: 500
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerCupertino.init[liveorigin/_definst_/myStream.sdp]: audioGroupCount: 3
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerCupertino.init[liveorigin/_definst_/myStream.sdp]: playlistChunkCount:3
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: cupertinostreamingpacketizer:myStream.sdp
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       CupertinoPacketHandler.startStream[liveorigin/_definst_/myStream.sdp]
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerCupertino.handlePacket[liveorigin/_definst_/myStream.sdp]: Video codec:H264 isCompatible:true
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerCupertino.handlePacket[liveorigin/_definst_/myStream.sdp]: Audio codec:AAC isCompatible:true
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: smoothstreamingpacketizer:myStream.sdp
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerSmoothStreaming.startStream[liveorigin/_definst_/myStream.sdp]
    2010-12-10      09:50:59        MST     comment server  WARN    200     -       LiveStreamPacketizerCupertino.handlePacket[liveorigin/_definst_/myStream.sdp][avc1.77.30]: H.264 Video encoding settings are beyond iPhone/iPod touch recommendations (Baseline/3.0): {H264CodecConfigInfo: profile: "Main", level: 3.0, frameSize: 640x480, displaySize: 640x480}
    2010-12-10      09:50:59        MST     comment server  INFO    200     -       LiveStreamPacketizerCupertino.handlePacket[liveorigin/_definst_/myStream.sdp][mp4a.40.2]: AAC Audio info: {AACFrame: size: 0, rate: 8000, channels: 1, samples: 1024, errorBitsAbsent: true, profileObjectType: "LC"}
    2010-12-10      09:51:06        MST     comment server  INFO    200     -       LiveStreamPacketizerSmoothStreaming.flushPendingAudio: Bitrate[liveorigin/_definst_/myStream.sdp]: 7884
    2010-12-10      09:51:07        MST     comment server  INFO    200     -       LiveStreamPacketizerSmoothStreaming.handlePacket[liveorigin/_definst_/myStream.sdp]: Fragment durations: [1.9,1.9,1.9]
    2010-12-10      09:51:07        MST     comment server  INFO    200     -       LiveStreamPacketizerSmoothStreaming.flushPendingVideo: Bitrate[liveorigin/_definst_/myStream.sdp]: 855335
    2010-12-10      09:51:09        MST     comment server  INFO    200     -       LiveStreamPacketizerSanJose.endChunkTS[liveorigin/_definst_/myStream.sdp]: Add chunk: id:1 a/v/k:79/241/4 duration:10015
    2010-12-10      09:55:13        MST     create  stream  INFO    200     -       -       -       -       -       0.0     
    2010-12-10      09:55:13        MST     comment server  WARN    200     -       LiveMediaStreamHandler.connect: failure
    2010-12-10      09:55:13        MST     comment server  INFO    200     -       HTTPStreamManager.onHTTPRequest: Publish stream successfully started [liveorigin/_definst_]: flv:myStream.sdp
    2010-12-10      09:55:25        MST     comment server  INFO    200     -       MediaStreamMap.removeLiveStreamPacketizer[liveorigin/_definst_/myStream.sdp]: Destroy live stream packetizer: smoothstreamingpacketizer
    2010-12-10      09:55:25        MST     comment server  INFO    200     -       MediaStreamMap.removeLiveStreamPacketizer[liveorigin/_definst_/myStream.sdp]: Destroy live stream packetizer: cupertinostreamingpacketizer
    2010-12-10      09:55:25        MST     comment server  INFO    200     -       MediaStreamMap.removeLiveStreamPacketizer[liveorigin/_definst_/myStream.sdp]: Destroy live stream packetizer: sanjosestreamingpacketizer
    Code:
    #Start-Date: 2010-12-10 09:50:12 MST
    #Software: Wowza Media Server 2.2.0 build26280
    #Date: 2010-12-10
    #Fields: x-severity     x-category      x-event date    time    c-client-id     c-ip    c-port  cs-bytes        sc-bytes        x-duration      x-sname x-stream-id     x-spos  sc-stream-bytes cs-stream-bytes x-file-size     x-file-length   x-ctx   x-comment
    WARN    server  comment 2010-12-10      09:50:59        -       -       -       -       -       47.75   -       -       -       -       -       -       -       -       LiveStreamPacketizerCupertino.handlePacket[liveorigin/_definst_/myStream.sdp][avc1.77.30]: H.264 Video encoding settings are beyond iPhone/iPod touch recommendations (Baseline/3.0): {H264CodecConfigInfo: profile: "Main", level: 3.0, frameSize: 640x480, displaySize: 640x480}
    WARN    server  comment 2010-12-10      09:55:13        -       -       -       -       -       301.3   -       -       -       -       -       -       -       -       LiveMediaStreamHandler.connect: failure
    Last edited by SCarter; 12-10-2010 at 09:19 AM.

  7. #7
    Join Date
    Dec 2007
    Posts
    25,635

    Default

    Scott,

    Are you following this guide?:
    http://www.wowzamedia.com/forums/content.php?105

    I don't think you need StreamManager to start the stream.

    I noticed that you are using cupertinostreamingpacketizer, but the QTB is not able to do h.264 Baseline profile video. It can only do Main profile. So that will be a problem with many or all IPhones. (It should work on IPad)

    Profile aside, you should be able to use StreamType "liverepeater-origin" on the origin application, and "liverepeater-edge" on the Edge application, then publish a stream to the origin without starting starting the stream manager. Then play the stream on the edge. Test with the Wowza LiveStreamingVideo example player:

    Server: rtmp://[wowza-edge-address]:1935/liveedge
    Stream: rtmp://[wowza-origin-address]:1935/liveorigin/myStream.sdp

    Or more specifically:

    Server: rtmp://10.0.10.2:1935/liveedge
    Stream: rtmp://10.0.10.7:1935/liveorigin/myStream.sdp

    If you create a text file on the edge with a .stream extension in the content folder:
    /content/origin.stream

    And make the contents "rtmp://10.0.10.7:1935/liveorigin/myStream.sdp", then you can play:

    Server: rtmp://10.0.10.2:1935/liveedge
    Stream: origin.stream

    Also, the first thing to do really, is be sure to test the stream on the origin directly:

    Server: rtmp://10.0.10.7:1935/liveorigin
    Stream: myStream.sdp

    Also, make sure this works in a browser on the edge:
    http://10.0.10.7:1935

    You should see Wowza version and build. If not, you have connectivity problem between these two servers, a firewall perhaps.

    btw, did you know that you can test this on one server? Edge and origin are application configuration, so you can both on one server... for testing.

    Richard

  8. #8
    Join Date
    Nov 2010
    Posts
    6

    Default

    You're my hero

    My problem was I was trying to view it in VLC.
    After using the Wowza LiveStreamingVideo example player everything is working great on both origin and edge server!

    Thanks!

  9. #9
    Join Date
    Dec 2007
    Posts
    25,635

    Default

    You're welcome, and thanks.

    To view in VLC, if you have created the /content/origin.stream file on the Edge application's content folder, and also changed the Edge Application.xml /RTP /Authentication /PlayMethod from "digest" to "none", then you can play in VLC with this URL:

    Code:
    rtsp://[wowza-address]:1935/liveedge/origin.stream
    Richard

  10. #10

    Default

    Yes .. VLC can't play RTMP from Wowza .. U need to use RTSP .. Its problem in Wowza 2.* ..
    On Wowza 1.7 that works , and VLC play RTMP stream from Wowza without problem .. Same problem is in XBMC ..

Posting Permissions

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