Results 1 to 5 of 5

Thread: Initial Streaming Problem - Using JLongtail and Adobe Media Encoder

  1. #1
    Join Date
    Dec 2012
    Posts
    2

    Unhappy Initial Streaming Problem - Using JLongtail and Adobe Media Encoder

    I have a website up at :
    http://www.agcak.org/SocialMedia/

    I cannot seem to get the stream to work. When I start Adobe Live Encoder it works :

    Fri Dec 07 2012 21:58:43 : Primary - Network Command: onFCPublish
    Fri Dec 07 2012 21:58:43 : Primary - Stream[stream.flv] Status: Success
    Fri Dec 07 2012 21:58:43 : Primary - Stream[stream.flv] Status: NetStream.Publish.Start
    Fri Dec 07 2012 21:58:43 : Session Started
    Fri Dec 07 2012 21:58:43 : Video Encoding Started
    Fri Dec 07 2012 21:58:43 : Audio Encoding Started
    But when I click on it in my jwplayer (5.4.1530) player it does not work. I get the error message

    Stream Not Found: stream.flv
    Here is what it says in Terminal :

    INFO stream create - -
    INFO stream destroy stream -
    INFO session disconnect 795737736 -
    Here are my website settings :

    <div id="player" style="position:relative; top:257px; left:319px; width:640px;">AGC Video</div>

    <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">
    var so = new SWFObject('player.swf','mpl','600','425','9');
    so.addParam('allowscriptaccess','always');
    so.addParam('allowfullscreen','true');
    so.addParam('flashvars','fullscreen=true&bufferlength=2&streamer=rtmp://192.155.83.80/agc&file=stream.flv');
    so.write('player');
    </script>
    I have created an application and I created a Application.xml file for that application in my conf directory. Here are the settings:

    <Root>
    <Application>
    <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></LiveStreamPacketizers>
    <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    <Properties>
    </Properties>
    </Streams>
    <Transcoder>
    <!-- To turn on transcoder set to: transcoder -->
    <LiveStreamTranscoder></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, -->
    <!-- either define the general Application/Repeater/OriginURL below to point back to the origin -->
    <!-- or define this one (which affects only DVR origin-edge). e.g. http://localhost/dvrorigin -->
    <Repeater>
    <ChunkOriginURL></ChunkOriginURL>
    </Repeater>

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

    <TimedText>
    <!-- VOD caption providers (separate with commas): vodcaptionproviderttml, vodcaptionprovidermp4_3gpp -->
    <VODTimedTextProviders>vodcaptionprovidermp4_3gpp</VODTimedTextProviders>

    <!-- Properties for TimedText -->
    <Properties>
    </Properties>
    </TimedText>

    <!-- 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>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>
    <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>
    I'm pretty lost. Before I created the Application.xml file it was using the default and would play a clip that was recorded to the server from my live stream but it would stop after that clip. Now I can't get it to play anything. Any help is greatly appreciated!
    Last edited by Prezwoodz; 12-08-2012 at 12:35 AM.

  2. #2

    Default

    rtmp://192.155.83.80/agc&file=stream.flv'

    Needs to be:
    rtmp://192.155.83.80/live&file=stream.flv'

    in order to stream live

    VOD is usually "simplevideostreaming" by default, unless you changed that Application to a different name.

    Let me know if that helps.

    - K -

  3. #3
    Join Date
    Dec 2012
    Posts
    2

    Default

    Quote Originally Posted by coskel22 View Post
    rtmp://192.155.83.80/agc&file=stream.flv'

    Needs to be:
    rtmp://192.155.83.80/live&file=stream.flv'

    in order to stream live

    VOD is usually "simplevideostreaming" by default, unless you changed that Application to a different name.

    Let me know if that helps.

    - K -
    I had changed the application to agc. I got it to work. It turns out that it just didn't want a .flv file. Not sure why but as soon as I changed it to an mp4 file everything worked perfectly. Except the streaming onto an ipad which worked one day and has yet to work since. Doh.

  4. #4

    Default

    Quote Originally Posted by Prezwoodz View Post
    I had changed the application to agc. I got it to work. It turns out that it just didn't want a .flv file. Not sure why but as soon as I changed it to an mp4 file everything worked perfectly. Except the streaming onto an ipad which worked one day and has yet to work since. Doh.
    Normally when publishing to Wowza you do not need to use a file extension. You shouldn't need to use an extension in the player for live streams either.

    If your encoder is set for h.264 video from your camera then you should be able to playback on the ipad. Make sure you have the Streams/LiveStreamPacketizers, cupertinostreamingpacketizer set in your Application.xml. It is not set in your example above.

    If you want to ensure that everything is using the right stream codecs, you can prefix the stream name in the encoder and player with mp4:. eg. mp4:stream rather than using a file name extension.

    Roger.

  5. #5

    Default

    What Roger says is correct. I have used mp4:stream and it worked on iPad.

Similar Threads

  1. Streaming from Adobe flash media encoder to wowza media server to encode in HLS
    By adityam in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 09-17-2013, 08:25 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
  •