Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Using 2 or more servers to broadcast same Live stream

  1. #1

    Default Using 2 or more servers to broadcast same Live stream

    Hi,

    I am trying to use 2 (in the future more than 2) servers to stream same URL from Flash Media Encoder(FME)

    due to bandwidth cap i can only upload 1 link from Home (FME) to 1 Wowza(A) server. I have a second server (B) installed with wowza server.

    How do i get a rebroadcasting link from server A to B.


    I am use to work with server 2003 and windows media service. I appreciate it so much if you can explain it in details.

    Thank you

  2. #2

    Default

    More info :
    OS : server 2003
    CPU: core 4
    Mem : 8 GB
    Server IPs are different and 2 different locations,
    wowza ver : 2.1.1

  3. #3
    Join Date
    Dec 2007
    Posts
    25,641

    Default

    You can use the Livestream Repeater (Origin/Edge Configuration). See the User manual for how to set that up. An FMIS will work as the origin.

    Separately, you also need a load balancing system to distribute connections. Wowza provides one that you can use in this package:
    http://www.wowzamedia.com/forums/showthread.php?t=4637

    Note that the load balancer supports a livestreami repeater system, but these are separate systems, which get confused frequently.

    Richard

  4. #4

    Default

    Will following post works,
    http://www.wowzamedia.com/forums/sho...light=restream
    Since i want to get a stream from my 1st server(A) and put it on Server (B),
    witch the use rtmp://server (B)IP/live/myStream

    I dont need load balance infomation yet as long as i can use 2 servers to stream.

    Info :

    when i put link om my website, i put both links ( no need for CDN or Cloud)
    Link 01 : rtmp://server (A)IP/live/myStream
    Link 02 : rtmp://server (B)IP/live/myStream
    If link 01 buffers Users will use Link 02


    My Wowza Media Server 2.1.1\applications\akamai\Application.xml

    <Root>
    <Application>
    <!-- Uncomment to set application level timeout values
    <ApplicationTimeout>60000</ApplicationTimeout>
    <PingTimeout>12000</PingTimeout>
    <ValidationFrequency>8000</ValidationFrequency>
    <MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
    <MaximumSetBufferTime>60000</MaximumSetBufferTime>
    <MaximumStorageDirDepth>25</MaximumStorageDirDepth>
    -->
    <Connections>
    <AutoAccept>true</AutoAccept>
    <AllowDomains></AllowDomains>
    </Connections>
    <!--
    StorageDir path variables

    ${com.wowza.wms.AppHome} - Application home directory
    ${com.wowza.wms.ConfigHome} - Configuration home directory
    ${com.wowza.wms.context.VHost} - Virtual host name
    ${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
    ${com.wowza.wms.context.Application} - Application name
    ${com.wowza.wms.context.ApplicationInstance} - Application instance name

    -->
    <Streams>
    <StreamType>default</StreamType>
    <StorageDir>${com.wowza.wms.context.VHostConfigHom e}/content</StorageDir>
    <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater -->
    <LiveStreamPacketizers></LiveStreamPacketizers>
    <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    <Properties>liverepeater-edge
    </Properties>
    </Streams>
    <!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming -->
    <HTTPStreamers>cupertinostreaming,smoothstreamin g</HTTPStreamers>
    <SharedObjects>
    <StorageDir></StorageDir>
    </SharedObjects>
    <Client>
    <IdleFrequency>-1</IdleFrequency>
    <Access>
    <StreamReadAccess>*</StreamReadAccess>
    <StreamWriteAccess>*</StreamWriteAccess>
    <StreamAudioSampleAccess></StreamAudioSampleAccess>
    <StreamVideoSampleAccess></StreamVideoSampleAccess>
    <SharedObjectReadAccess>*</SharedObjectReadAccess>
    <SharedObjectWriteAccess>*</SharedObjectWriteAccess>
    </Access>
    </Client>
    <RTP>
    <!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
    <Authentication>
    <PublishMethod>digest</PublishMethod>
    <PlayMethod>digest</PlayMethod>
    </Authentication>
    <!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
    <AVSyncMethod>senderreport</AVSyncMethod>
    <MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
    <IdleFrequency>75</IdleFrequency>
    <RTSPSessionTimeout>90000</RTSPSessionTimeout>
    <RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>
    <RTSPBindIpAddress></RTSPBindIpAddress>
    <RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>
    <RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>
    <IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>
    <!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->
    <Properties>
    </Properties>
    </RTP>
    <MediaCaster>
    <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
    <Properties>
    <Name>callFCSubscribe</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Properties>
    </MediaCaster>
    <MediaReader>
    <!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
    <Properties>
    </Properties>
    </MediaReader>
    <MediaWriter>
    <!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->
    <Properties>
    </Properties>
    </MediaWriter>
    <LiveStreamPacketizer>
    <!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
    <Properties>
    </Properties>
    </LiveStreamPacketizer>
    <HTTPStreamer>
    <!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
    <Properties>
    </Properties>
    </HTTPStreamer>
    <Repeater>
    <OriginURL></OriginURL>
    <QueryString><![CDATA[]]></QueryString>
    </Repeater>
    <Modules>
    <Module>
    <Name>base</Name>
    <Description>Base</Description>
    <Class>com.wowza.wms.module.ModuleCore</Class>
    </Module>
    <Module>
    <Name>properties</Name>
    <Description>Properties</Description>
    <Class>com.wowza.wms.module.ModuleProperties</Class>
    </Module>
    <Module>
    <Name>logging</Name>
    <Description>Client Logging</Description>
    <Class>com.wowza.wms.module.ModuleClientLogging</Class>
    </Module>
    <Module>
    <Name>flvplayback</Name>
    <Description>FLVPlayback</Description>
    <Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
    </Module>
    </Modules>
    <!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
    <Properties>
    </Properties>
    </Application>
    </Root>



    Wowza Media Server 2.1.1\applications\akamai\sharedobjects doesnt have files only _definst_ folder
    Wowza Media Server 2.1.1\applications\akamai\sharedobjects\_definst_ doesnt have any files



    Then On Wowza Media Server 2.1.1\content i created a windows TEXT file and rename it to "akamai.stream"
    Then paste "rtmp://server (A)IP/live/myStream" into the file.

    but with i run Wowza server and play the stream
    Server: rtmp://[wowza-address]/akamai
    Stream: akamai.stream

    on

    [install-dir]/examples/LiveVideoStreaming/client/live.html

    I dont get any error message

    Please help me out

  5. #5

    Default

    Actually on WMS server i get
    Warn Server comment - MediaReaderFLU.open: Metadata appears to be bad: akamai.stream

  6. #6
    Join Date
    Dec 2007
    Posts
    25,641

    Default

    Yes, those approximate instructions will work, but you did not follow step 3a, and some of the other steps might not be necessary.

    The basic steps to restream from FMIS are:

    Make a Wowza edge application with StreamType "liverepeater-edge"

    Create a text file with a .stream extension in the /content folder containing the rtmp url of the FMIS server + stream name.

    Test with LiveVideoStreaming example:

    Server: rtmp://[wowza-address]:1935/edge
    Stream: fmis.stream

    Richard

  7. #7

    Default

    I followed It, as you can see i put it on stream properties <Properties>liverepeater-edge
    </Properties>

    <Streams>
    <StreamType>default</StreamType>
    <StorageDir>${com.wowza.wms.context.VHostConfigH om e}/content</StorageDir>
    <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater -->
    <LiveStreamPacketizers></LiveStreamPacketizers>
    <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    <Properties>liverepeater-edge
    </Properties>



    ALSO does the other server have to be FMIS, can it just be wowza server, coz the out put RTMP link is the same.

  8. #8
    Join Date
    Dec 2007
    Posts
    25,641

    Default

    No, this is the StreamType:

    Code:
    <StreamType>default</StreamType>
    Change it to:

    Code:
    <StreamType>liverepeater-edge</StreamType>
    Richard

  9. #9

    Default Using multiple servers

    Hi,

    I have the exact problem, I did everything same as stated on the post

    http://www.wowzamedia.com/forums/sho...light=restream

    Instead of akamai stream i use a stream from FMIS ( I didn't edit any files on FMIS)

    Do i have to configer any other file on wowza server in order for it to be a edge server. or just steps on above URL enough to restream.

    I get the exact error msg on WMS and asherly getting.

    one more thing : on akami URL rtmp://cp12345.live.edgefcs.net/live/myStream@2440

    there is @ but my URL only have

    rtmp://[server IP]/live/myStream

    no @####

    Could that be a problem since Error msg "Warn Server comment - MediaReaderFLU.open: Metadata appears to be bad: akamai.stream " talking about a metadata appear to be bad.




    Followed exact word to word, folder name akamai and file name akamai.stream
    Code:
       1. Create application folder [install-dir]/applications/akamai
       2. Create configuration folder [install-dir]/conf/akamai and copy [install-dir]/conf/Application.xml into this new folder
       3. Edit the newly copied Application.xml file and make the following changes (some of these settings may already be present):
             1. Set the Streams/StreamType property to: liverepeater-edge
             2. Add the following property to the MediaCaster/Properties container (be sure to get the correct <Properties> container):
                Code:
    
                <Property>
                	<Name>callFCSubscribe</Name>
                	<Value>true</Value>
                	<Type>Boolean</Type>
                </Property>
    
       4. Using a text editor create the file [install-dir]/content/akamai.stream set the contents of this file to the full RTMP URL to Akamai stream (for example: rtmp://cp12345.live.edgefcs.net/live/myStream@2440)
       5. Start Wowza Media Server 2
       6. To play using Adobe Flash player:
    
          Double-click [install-dir]/examples/LiveVideoStreaming/client/live.html, enter the information below and click the Play button.
          Code:
    
          Server: rtmp://[wowza-address]/akamai
          Stream: akamai.stream

  10. #10

    Default

    Any Fiexes

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

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