Results 1 to 10 of 10

Thread: Stream class example with playlist problem

  1. #1
    Join Date
    Apr 2011
    Posts
    4

    Default Stream class example with playlist problem

    I am having trouble getting the Playlist example working. I believe I have all the proper files configured and in the right places and even set my flash security permissions set to accept the: live .swf , LiveVideoStreaming folder and LiveVideoStreaming/client folders all locally for testing, however I keep getting the error - Failed to play Stream1; stream not found. when I finally attempt to play /examples/LiveVideoStreaming/client/live.html
    locally using rtmp://[wowza-address]/live and Stream1

    Listed below are my directory paths , could any one possibly offer some tips to make this work?


    /usr/local/WowzaMediaServer-2.2.3/lib/
    wms-plugin-collection.jar


    /usr/local/WowzaMediaServer-2.2.3/conf/
    Server.xml is Modified to include -
    <ServerListener>
    <BaseClass>com.wowza.wms.plugin.collection.serverl istener.ServerListenerStreamPublisher</BaseClass>
    </ServerListener>


    /usr/local/WowzaMediaServer-2.2.3/conf/live
    Application.xml is modified to include -
    <StreamType>live</StreamType>


    /usr/local/WowzaMediaServer-2.2.3/content/
    streamschedule.smil


    But when I try to play the test locally using this page -
    /examples/LiveVideoStreaming/client/live.html
    rtmp://[wowza-address]/live
    Stream1

    The Error I get is - Failed to play Stream1; stream not found.

  2. #2

    Default

    All I can suggest is posting the Wowza log file from when you start Wowza this should indicate why the publisher is not starting/errors elsewhere.

    Shamrock

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

    Default

    Did you restart Wowza? The ServerListener runs when Wowza starts. Start in stand-alone (/bin/startup.bat) mode so you can see log output, you should see logging from the schedule server listener.

    Richard

  4. #4
    Join Date
    Apr 2011
    Posts
    4

    Default

    I am running Wowza on a Linux Ubuntu 10.04 LTS server
    I dont seem to have a /bin/startup.bat
    I start the server using putty with /usr/local/WowzaMediaServer/bin
    ./startup.sh

    The console then shows:

    /usr/local/WowzaMediaServer/bin# ./startup.sh
    Configure logging: file:///usr/local/WowzaMediaServer/conf/log4j.properties
    INFO server server-start Wowza Media Server 2 Developer 2.2.3 build26454 -
    INFO server comment - Serial number: XXXXX-XXXXX-XXXXX-XXXXX-BF7NA
    INFO server comment - Maximum connections: 10
    INFO server comment - Hardware Available Processors: 4
    INFO server comment - Hardware Physical Memory: 49MB/1005MB
    INFO server comment - Hardware Swap Space: 255MB/255MB
    INFO server comment - Max File Descriptor Count: 20000
    INFO server comment - Open File Descriptor Count: 40
    INFO server comment - OS Name: Linux
    INFO server comment - OS Version: 2.6.38
    INFO server comment - OS Architecture: i386
    INFO server comment - Java Name: Java HotSpot(TM) Server VM
    INFO server comment - Java Vendor: Sun Microsystems Inc.
    INFO server comment - Java Version: 1.6.0_24
    INFO server comment - Java VM Version: 19.1-b02
    INFO server comment - Java Spec Version: 1.6
    INFO server comment - Java Home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre
    INFO server comment - Java Max Heap Size: 1160MB
    INFO server comment - Java Architecture: 32
    INFO server comment - Java Encoding[file.encoding]: ANSI_X3.4-1968
    INFO server comment - Java Args[0]: -Xmx1200M
    INFO server comment - Java Args[1]: -Djava.net.preferIPv4Stack=true
    INFO server comment - Java Args[2]: -Dcom.sun.management.jmxremote=true
    INFO server comment - Java Args[3]: -Dcom.wowza.wms.AppHome=/usr/local/WowzaMediaServer
    INFO server comment - Java Args[4]: -Dcom.wowza.wms.ConfigURL=
    INFO server comment - Java Args[5]: -Dcom.wowza.wms.ConfigHome=/usr/local/WowzaMediaServer
    INFO server comment - Java GC[0]: Copy
    INFO server comment - Java GC[1]: MarkSweepCompact
    INFO server comment - Server threads[h/t]: 10/10
    INFO server comment - CMDInterface now listening: [any]:8083
    INFO vhost vhost-start _defaultVHost_ -
    INFO server comment - _defaultVHost_ threads[h/t]:120/80 home:/usr/local/WowzaMediaServer
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:1935:4)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)
    INFO vhost comment _defaultVHost_ Bind attempt ([any]:8086:1)
    INFO vhost comment _defaultVHost_ Bind successful ([any]:8086)
    INFO server comment - Wowza Media Server is started!


    Then after I load locally LiveVideoStreaming/client/live.html
    and enter my server IP rtmp://xx.xx.xx.xx/live
    with Name "Stream1"
    I get "Failed to play Stream1 ; stream not found."
    I have my Flash Global Security permissions set to always ask permission for folder LiveVideoStreaming and file live.swf etc.
    The Wowza Server console then lists the following after I attempt to connect

    INFO application app-start _definst_ live/_definst_
    INFO session connect-pending xx.xx.xx.xx -
    INFO session connect xx.xx.xx.xx -
    INFO stream create - -

    Then after I hit the stop button on the Live.html page it lists:

    INFO stream destroy Stream1 -
    INFO session disconnect 34298835 -

  5. #5
    Join Date
    Dec 2007
    Posts
    25,640

    Default

    Show the Server.xml, or take another look at that, because the ServerListener is not starting. Make sure the collection jar is really in the lib folder too.

    Test by stopping and starting again as you have with /bin/startup.sh and shutdown.sh. The StreamPublisher outputs log lines that you will see if it is working. The above lines show that it isn't.

    Richard

  6. #6
    Join Date
    Apr 2011
    Posts
    4

    Default

    I checked and I do have wms-plugin-collection.jar
    located in /usr/local/WowzaMediaServer-2.2.3/lib/
    Perhaps I also need to set permissions for it?

    Below is my Server.xml from /usr/local/WowzaMediaServer-2.2.3/conf/
    The only thing I added to it was the extra <ServerListener>


    <Root>
    <Server>
    <CommandInterface>
    <HostPort>
    <IpAddress>*</IpAddress>
    <Port>8083</Port>
    </HostPort>
    </CommandInterface>
    <AdminInterface>
    <!-- Objects exposed through JMX interface: Server, VHost, VHostItem, Application, ApplicationInstance, MediaCaster, Module, Client, MediaStream, SharedObject, Acceptor, IdleWorker -->
    <ObjectList>Server,VHost,VHostItem,Application,App licationInstance,MediaCaster,Module,IdleWorker</ObjectList>
    </AdminInterface>
    <!-- JMXUrl: service:jmx:rmi://localhost:8084/jndi/rmi://localhost:8085/jmxrmi -->
    <JMXRemoteConfiguration>
    <Enable>false</Enable>
    <IpAddress>localhost</IpAddress> <!-- set to localhost or internal ip address if behind NAT -->
    <RMIServerHostName>localhost</RMIServerHostName> <!-- set to external ip address or domain name if behind NAT -->
    <RMIConnectionPort>8084</RMIConnectionPort>
    <RMIRegistryPort>8085</RMIRegistryPort>
    <Authenticate>true</Authenticate>
    <PasswordFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.password</PasswordFile>
    <AccessFile>${com.wowza.wms.ConfigHome}/conf/jmxremote.access</AccessFile>
    <SSLSecure>false</SSLSecure>
    </JMXRemoteConfiguration>
    <UserAgents>Shockwave Flash|CFNetwork|MacNetwork/1.0 (Macintosh)</UserAgents>
    <ServerListeners>
    <!--
    <ServerListener>
    <BaseClass>com.wowza.wms.plugin.loadbalancer.Serve rListenerLoadBalancerListener</BaseClass>
    </ServerListener>
    -->
    <!--
    <ServerListener>
    <BaseClass>com.wowza.wms.plugin.loadbalancer.Serve rListenerLoadBalancerSender</BaseClass>
    </ServerListener>
    -->
    <!--
    <ServerListener>
    <BaseClass>com.wowza.wms.plugin.collection.serverl istener.ServerListenerStreamPublisher</BaseClass>
    </ServerListener>
    -->
    </ServerListeners>
    <VHostListeners>
    <!--
    <VHostListener>
    <BaseClass></BaseClass>
    </VHostListener>
    -->
    </VHostListeners>
    <HandlerThreadPool>
    <PoolSize>10</PoolSize>
    </HandlerThreadPool>
    <TransportThreadPool>
    <PoolSize>10</PoolSize>
    </TransportThreadPool>
    <RTP>
    <DatagramStartingPort>6970</DatagramStartingPort>
    <DatagramPortSharing>false</DatagramPortSharing>
    </RTP>
    <!-- Properties defined here will be added to the IServer.getProperties() collection -->
    <Properties>
    </Properties>
    </Server>
    </Root>

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

    Default

    The ServerListenerStreamPublisher is commented out. Change this:
    Code:
    <!--
    <ServerListener>
    <BaseClass>com.wowza.wms.plugin.collection.serverl istener.ServerListenerStreamPublisher</BaseClass>
    </ServerListener>
    -->
    To this:
    Code:
    <ServerListener>
    <BaseClass>com.wowza.wms.plugin.collection.serverl istener.ServerListenerStreamPublisher</BaseClass>
    </ServerListener>
    Richard

  8. #8
    Join Date
    Apr 2011
    Posts
    4

    Default

    Thanks for the help but unfortunately I still couldn't get it to work.
    I retarted the server but still get Stream1 not found.
    I commented out the server listener though.
    I think I have all the correct directory paths so I am not sure.
    My flash security permissions are also set locally to allow live.swf and the LiveVideoStreaming folder.

    Just to be sure I even added to server.xml -
    <Property>
    <Name>PublishToApplication</Name>
    <Value>Live</Value>
    </Property>


    Excerpts from my Logs when I connect are listed below-

    2011-04-24 04:17:20 UTC app-start application INFO 200 _definst_ live/_definst_ - - - 17.421 - - - - - - - - - - - - - - - - - - - - - - - - -
    2011-04-24 04:17:20 UTC connect-pending session INFO 100 xx.xx.x.xx - _defaultVHost_ live _definst_ 0.315 [any] 1935 rtmp://xx.xx.xx.xx/live xx.xx.x.x rtmp unknown WIN 10,2,152,26 123383278 3326 3073 - - - - - - - - - - - - - rtmp://xx.xx.xx.x/live -
    2011-04-24 04:17:20 UTC connect session INFO 200 xx.x.x.x - _defaultVHost_ live _definst_ 0.319 [any] 1935 rtmp://xx.xx.xx.xx/live xx.x.x.x rtmp unknown WIN 10,2,152,26 123383278 3326 3073 - - - - - - - - - - - - - rtmp://x.x.xx.x/live -
    2011-04-24 04:17:20 UTC create stream INFO 200 - - _defaultVHost_ live _definst_ 0.013 [any] 1935 rtmp://xx.xx.xx.xx/live xx.xx.x.x rtmp unknown WIN 10,2,152,26 123383278 3398 3411 1 0 0 0 - - - - - - rtmp://xx.xx.xx.x/live rtmp://xx.xx.xx.x/live - rtmp://xx.xx.xx.xx/live -
    2011-04-24 04:19:20 UTC destroy stream INFO 200 Stream1 - _defaultVHost_ live _definst_ 120.015 [any] 1935 rtmp://xx.xx.xx.xx/live xx.xx.x.xx3 rtmp unknown WIN 10,2,152,26 123383278 3554 3890 1 - 0 0 Stream1 - - - - - rtmp://xx.xx.xx.xx/live/Stream1 rtmp://xx.xx.xx.x/live/Stream1 - rtmp://xx.xx.x.x/live -
    2011-04-24 04:19:20 UTC disconnect session INFO 200 123383278 - _defaultVHost_ live _definst_ 120.382 [any] 1935 rtmp://xx.xx.xx.xx/live xx.x.x.x rtmp unknown WIN 10,2,152,26
    123383278 3554 3890 - - - - - - - - - - - -

    My Directory File Paths are as followed -

    /usr/local/WowzaMediaServer-2.2.3/lib/
    wms-plugin-collection.jar

    /usr/local/WowzaMediaServer-2.2.3/conf/
    Server.xml is Uncommented/Modified to include -
    <ServerListener>
    <BaseClass>com.wowza.wms.plugin.collection.serve rl istener.ServerListenerStreamPublisher</BaseClass>
    </ServerListener>


    /usr/local/WowzaMediaServer-2.2.3/conf/live
    Application.xml is modified to include -
    <StreamType>live</StreamType>


    /usr/local/WowzaMediaServer-2.2.3/content/
    streamschedule.smil

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

    Default

    Uncommenting the ServerListenter was critical. Do you have this working yet? Otherwise, zip up conf *and* logs folders and send them to support@wowzamedia.com.

    Also send the collection jar and schedule.smil

    Include a link to this thread.

    Richard

  10. #10

    Default

    Quote Originally Posted by rrlanham View Post
    Uncommenting the ServerListenter was critical. Do you have this working yet? Otherwise, zip up conf *and* logs folders and send them to support@wowzamedia.com.

    Also send the collection jar and schedule.smil

    Include a link to this thread.

    Richard
    I have the exact same problem. Was the issue ever figured out? What was the fix?

Posting Permissions

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