Results 1 to 2 of 2

Thread: Live Re-Streaming streams from UDP Encorder

  1. #1
    Join Date
    Aug 2012
    Posts
    1

    Default Live Re-Streaming streams from UDP Encorder

    Hi,
    I'm having problems to getting this to work.
    I have a setup of a UDP Encorder streaming live to Wowza server. I can see the view the live stream when i stream directly to my PC. But when i stream to the Wowza server icant see anything using the Live Video Streaming.html file. The access logs and my Application file in conf/live/Application.xml are as below. Wll appreciate if someone can point me to where im getting this wrong.:

    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>live</StreamType>
    <StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
    <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater, dvrstreamingpacketizer, dvrstreamingrepeater -->
    <LiveStreamPacketizers>cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer </LiveStreamPacketizers>
    <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    <Properties>
    <Property>
    <Name>sortPackets</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>sortBufferSize</Name>
    <Value>500</Value>
    <Type>Integer</Type>
    </Property>

    </Properties>
    </Streams>
    <Transcoder>
    <!-- To turn on transcoder set to: transcoder -->
    <LiveStreamTranscoder>transcoder</LiveStreamTranscoder>
    <!-- [templatename].xml or ${SourceStreamName}.xml -->
    <Templates>${SourceStreamName}.xml,transrate.xml</Templates>
    <ProfileDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles</ProfileDir>
    <TemplateDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/templates</TemplateDir>
    <Properties>
    </Properties>
    </Transcoder>

    <DVR>
    <!-- As a single server or as an origin, use dvrstreamingpacketizer in LiveStreamPacketizers above -->
    <!-- Or, in an origin-edge configuration, edges use dvrstreamingrepeater in LiveStreamPacketizers above -->
    <!-- As an origin, also add dvrchunkstreaming to HTTPStreamers below -->

    <!-- To turn on DVR recording set Recorders to dvrrecorder. This works with dvrstreamingpacketizer -->
    <Recorders></Recorders>

    <!-- As a single server or as an origin, set the Store to dvrfilestorage-->
    <!-- edges should have this empty -->
    <Store></Store>

    <!-- Window Duration is length of live DVR window in seconds. 0 means the window is never trimmed. -->
    <WindowDuration>0</WindowDuration>

    <!-- Storage Directory is top level location where dvr is stored. e.g. c:/temp/dvr -->
    <StorageDir>${com.wowza.wms.context.VHostConfigHome}/dvr</StorageDir>

    <!-- valid ArchiveStrategy values are append, version, delete -->
    <ArchiveStrategy>append</ArchiveStrategy>

    <!-- If this is a dvrstreamingrepeater, define ChunkOriginURL to point back to origin -->
    <!-- And define Application/Repeater/OriginURL to point back to the origin -->
    <Repeater>
    <ChunkOriginURL></ChunkOriginURL>
    </Repeater>

    <!-- Properties for DVR -->
    <Properties>
    </Properties>
    </DVR>

    <!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming, dvrchunkstreaming -->
    <HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming</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>none</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>192.168.0.13</RTSPConnectionIpAddress>
    <RTSPOriginIpAddress>192.168.0.13</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>
    <RTP>
    <RTSP>
    <!-- udp, interleave -->
    <RTPTransportMode>interleave</RTPTransportMode>
    </RTSP>
    </RTP>
    <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
    <Properties>
    </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>


    Access logs when i try to view:

    2012-08-06 00:18:01 BST comment server INFO 200 - RTPMediaCaster.Reconnector[423493831:li ve/_definst_:mpegts.stream]: start: 29 - - - 94178.415 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:01 BST comment server INFO 200 - RTPSessionDescriptionDataProviderBasic. getStreamInfo[live/_definst_]: URI: udp://192.168.0.13:48001 - - - 94178.516 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:01 BST comment server INFO 200 - sortPackets[60]: sortBufferSize:500 - - - 94178.517 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:01 BST create stream INFO 200 - - _defaultVHost_ live _defins t_ 0.0 - 80 null 127.0.0.1 rtsp - known 1988093932 0 0 60 0 0 0 mpegts.stream - - - - - null null - null -
    2012-08-06 00:18:01 BST comment server INFO 200 - RTPUDPTransport.bind[live/_definst_]: / 192.168.0.13:48001 _defaultVHost_ live _definst_ 94178.518 - 80 null 127.0.0.1 r tsp - known 1988093932 0 0 - - - - - - - - - - - - - null -
    2012-08-06 00:18:01 BST publish stream INFO 200 mpegts.stream - _defaultVHost_ live _ definst_ 0.001 - 80 null 127.0.0.1 rtsp - known 1988093932 0 0 6 0 0 0 0 mpegts.stream - - - - - null null - null -
    2012-08-06 00:18:01 BST comment server INFO 200 - RTPMediaCaster.Reconnector[423493831:li ve/_definst_:mpegts.stream]: done: 29 - - - 94178.518 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:01 BST comment server INFO 200 - UDPTransport.firstPacket: bind:/192.168 .0.13:48001 msg:/192.168.0.13:56022 - - - 94178.525 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:05 BST comment server INFO 200 - MediaStreamMediaCasterPlay: close - - - 94182.354 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:05 BST destroy stream INFO 200 mpegts.stream - _defaultVHost_ live _ definst_ 278.83 [any] 1935 rtmp://192.168.0.13/live 192.168.0.9 rtmp unknown WIN 11,1,102,55 1729651410 3592 7037 1 - 0 0 mpegts.stream - - - - - r tmp://192.168.0.13/live/mpegts.stream rtmp://192.168.0.13/live/mpegts.stream - rtmp://192.168.0.13/live -
    2012-08-06 00:18:05 BST disconnect session INFO 200 1729651410 - _defaultVHost_l ive _definst_ 278.953 [any] 1935 rtmp://192.168.0.13/live 192.168.0.9 rtmp unknown WIN 11, 1,102,55 1729651410 3592 7037 - - - - - - - - - - - - - rtmp://192.168.0.13/live -
    2012-08-06 00:18:13 BST comment server INFO 200 - RTPMediaCaster.streamTimeout[423493831: live/_definst_:mpegts.stream]: timeout:12000 diff:12004 reason:101 - - - 94190.92 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:13 BST comment server INFO 200 - RTPMediaCaster.resetConnection[42349383 1:live/_definst_:mpegts.stream]: - - - 94190.92 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:13 BST comment server INFO 200 - RTPMediaCaster.closeRTPSession[42349383 1:live/_definst_:mpegts.stream] - - - 94190.92 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:13 BST comment server INFO 200 - RTPUDPTransport.unbind[live/_definst_]: /192.168.0.13:48001 sent:0 recv:4088 - - - 94190.922 - - - - - - - - - - - - - - - - - - - - - - - - -
    2012-08-06 00:18:13 BST unpublish stream INFO 200 mpegts.stream - _defaultVHost_l ive _definst_ 12.405 - 80 null 127.0.0.1 rtsp - known 1988093932 5379808 0 60 0 5379808 0 mpegts.stream - - - - - null null - n ull -
    2012-08-06 00:18:13 BST destroy stream INFO 200 mpegts.stream - _defaultVHost_ live _ definst_ 12.406 - 80 null 127.0.0.1 rtsp - known 1988093932 5379808 0 6 0 0 5379808 0 mpegts.stream - - - - - null null - null -


    On the html Page i use the following:

    Server: rtmp://192.168.0.13/live
    Stream: mpegts.stream.

    Thanks

  2. #2

    Default

    What happens if you change the mpegts.stream file to say, "udp://0.0.0.0:48001" assuming that you're pushing the UDP packets to that port.

    Then open VLC and try the address: rtsp://192.168.0.13/live/mpegts.stream

    Also want to verify that your UDP payload is h.264 encoded. If you still don't see video, shut down the mediacaster in Wowza so that you're not pulling the packets at all. Open VLC and go to the following address: udp/ts://@:48001 and you should see video. If not, you may not be pushing the data to that system, or it may not be a valid payload.

    Thanks,

    Benjamin

    Thanks,

    Benjamin

Similar Threads

  1. Re-streaming UDP source to YouTube Live
    By Artstar in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 01-23-2014, 03:23 AM
  2. UDP Unicast ---> (UDP Multicast, RTSP Live Streaming)
    By konukko in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 12-07-2013, 12:51 AM
  3. encode live streaming to WOWZA by UDP
    By hehe37 in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 05-03-2013, 02:01 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
  •