Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Streaming works ONCE.

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
DJ Charlie



Joined: 16 Nov 2010
Posts: 17

PostPosted: Wed Jan 18, 2012 3:20 pm    Post subject: Streaming works ONCE. Reply with quote

Hi all. I'm testing icecast video streaming, but I've run into a problem.

Long story short: It works great, ONCE per client, but then fails on subsequent reconnects, until I restart the icecast server.

If I point my browser at the server's ip address (http://xxx.xxx.xxx.xxx:8000/stream) the first time after starting the server, it works perfectly. But, if I close that tab and then reopen it, nothing. Just the "Connecting to..." in the status bar.

BUT, I can access the admin pages normally, multiple times.

I've tested it on 2 different servers, and 4 different client computers, same result every time. Access and error logs show nothing out of the ordinary.

Just in case it helps, here's my icecast2.xml file:

Code:

<icecast>
    <limits>
        <clients>5</clients>
        <sources>2</sources>
        <threadpool>5</threadpool>
        <queue-size>524288</queue-size>
        <client-timeout>60</client-timeout>
        <header-timeout>30</header-timeout>
        <source-timeout>30</source-timeout>
        <!-- If enabled, this will provide a burst of data when a client
             first connects, thereby significantly reducing the startup
             time for listeners that do substantial buffering. However,
             it also significantly increases latency between the source
             client and listening client.  For low-latency setups, you
             might want to disable this. -->
        <burst-on-connect>0</burst-on-connect>
        <!-- same as burst-on-connect, but this allows for being more
             specific on how much to burst. Most people won't need to
             change from the default 64k. Applies to all mountpoints  -->
        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <!-- Sources log in with username 'source' -->
        <source-password>sourcepass</source-password>
        <!-- Relays log in username 'relay' -->
        <relay-password>relaypass</relay-password>

        <!-- Admin logs in with the username given below -->
        <admin-user>admin</admin-user>
        <admin-password>adminpass</admin-password>
    </authentication>

    <!-- set the mountpoint for a shoutcast source to use, the default if not
         specified is /stream but you can change it here if an alternative is
         wanted or an extension is required
    <shoutcast-mount>/live.nsv</shoutcast-mount>
    -->

    <!-- Uncomment this if you want directory listings -->
    <!--
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
     -->

    <!-- This is the hostname other people will use to connect to your server.
    It affects mainly the urls generated by Icecast for playlists and yp
    listings. -->
    <hostname>localhost</hostname>

    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8000</port>
        <!-- <bind-address>127.0.0.1</bind-address> -->
        <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
    </listen-socket>
    <!--
    <listen-socket>
        <port>8001</port>
    </listen-socket>
    -->

    <!--<master-server>127.0.0.1</master-server>-->
    <!--<master-server-port>8001</master-server-port>-->
    <!--<master-update-interval>120</master-update-interval>-->
    <!--<master-password>hackme</master-password>-->

    <!-- setting this makes all relays on-demand unless overridden, this is
         useful for master relays which do not have <relay> definitions here.
         The default is 0 -->
    <!--<relays-on-demand>1</relays-on-demand>-->

    <!--
    <relay>
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local-mount>/different.ogg</local-mount>
        <on-demand>0</on-demand>

        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
    </relay>
    -->

    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords
    <mount>
        <mount-name>/example-complex.ogg</mount-name>

        <username>othersource</username>
        <password>hackmemore</password>

        <max-listeners>1</max-listeners>
        <dump-file>/tmp/dump-example1.ogg</dump-file>
        <burst-size>65536</burst-size>
        <fallback-mount>/example2.ogg</fallback-mount>
        <fallback-override>1</fallback-override>
        <fallback-when-full>1</fallback-when-full>
        <intro>/example_intro.ogg</intro>
        <hidden>1</hidden>
        <no-yp>1</no-yp>
        <authentication type="htpasswd">
                <option name="filename" value="myauth"/>
                <option name="allow_duplicate_users" value="0"/>
        </authentication>
        <on-connect>/home/icecast/bin/stream-start</on-connect>
        <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
    </mount>

    <mount>
        <mount-name>/auth_example.ogg</mount-name>
        <authentication type="url">
            <option name="mount_add"       value="http://myauthserver.net/notify_mount.php"/>
            <option name="mount_remove"    value="http://myauthserver.net/notify_mount.php"/>
            <option name="listener_add"    value="http://myauthserver.net/notify_listener.php"/>
            <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
        </authentication>
    </mount>

    -->

    <fileserve>1</fileserve>

    <paths>
      <!-- basedir is only used if chroot is enabled -->
        <basedir>/usr/share/icecast2</basedir>

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
        <logdir>/var/log/icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->

        <!-- Aliases: treat requests for 'source' path as being for 'dest' path
             May be made specific to a port or bound address using the "port"
             and "bind-address" attributes.
          -->
        <!--
        <alias source="/foo" dest="/bar"/>
          -->
        <!-- Aliases: can also be used for simple redirections as well,
             this example will redirect all requests for http://server:port/ to
             the status page
          -->
        <alias source="/" dest="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <!-- <playlistlog>playlist.log</playlistlog> -->
         <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
         <logsize>10000</logsize> <!-- Max size of a logfile -->
        <!-- If logarchive is enabled (1), then when logsize is reached
             the logfile will be moved to [error|access|playlist].log.DATESTAMP,
             otherwise it will be moved to [error|access|playlist].log.old.
             Default is non-archive mode (i.e. overwrite)
        -->
        <!-- <logarchive>1</logarchive> -->
    </logging>

    <security>
        <chroot>0</chroot>
        <!--
        <changeowner>
            <user>nobody</user>
            <group>nogroup</group>
        </changeowner>
        -->
    </security>
</icecast>
[/code]
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jan 18, 2012 6:31 pm    Post subject: Reply with quote

You could check the error log to see if some limit is being logged, my guess would be the very low <clients> setting is being reached

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DJ Charlie



Joined: 16 Nov 2010
Posts: 17

PostPosted: Wed Jan 18, 2012 6:36 pm    Post subject: Reply with quote

That's just it, the error log shows NOTHING literally. It's almost like the connection is being refused.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jan 18, 2012 6:48 pm    Post subject: Reply with quote

level is at 3 so you must be seeing something in the log, at least for the successful attempt. You can increase to 4 but you should at least see the version number.

Check that the logs are where you expect

lsof -np `pidof icecast`

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DJ Charlie



Joined: 16 Nov 2010
Posts: 17

PostPosted: Wed Jan 18, 2012 6:50 pm    Post subject: Reply with quote

The logs are there, and show the first connection as successful, but after that, nothing at all shows up. I tried increasing the log level to 4, but it provides no helpful information.
Back to top
View user's profile Send private message
DJ Charlie



Joined: 16 Nov 2010
Posts: 17

PostPosted: Wed Jan 18, 2012 7:05 pm    Post subject: Reply with quote

A minor breakthrough: If I close and reopen my browser, it works fine.

Update: That works in Firefox. Chrome gives me nothing but a page with the player on it, but no video or sound.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jan 18, 2012 8:27 pm    Post subject: Reply with quote

I'm not sure what page you are referring to. If the web pages get to your browser then the connectivity is working as it should and the logs should show as much, you'll get 200 responses listed in access log and filename lookups shown in the error log.

Anything streaming on /stream will have regular update of stats showing in error.log at level 4 so you need to confirm this. You also need to confirm the version you are running. Obviously vague descriptions don't really help identify the issue.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DJ Charlie



Joined: 16 Nov 2010
Posts: 17

PostPosted: Wed Jan 18, 2012 9:06 pm    Post subject: Reply with quote

karlH wrote:
Obviously vague descriptions don't really help identify the issue.


Error log, first attempt after a fresh start if the icecast2 server:
Code:
[2012-01-18  15:59:17] INFO main/main Icecast 2.3.2 server started
[2012-01-18  15:59:17] DBUG yp/yp_recheck_config Updating YP configuration
[2012-01-18  15:59:17] INFO yp/yp_update_thread YP update thread started
[2012-01-18  15:59:17] INFO connection/get_ssl_certificate No SSL capability
[2012-01-18  15:59:18] DBUG slave/_slave_thread checking master stream list
[2012-01-18  15:59:51] INFO connection/_handle_source_request Source logging in at mountpoint "/stream"
[2012-01-18  15:59:51] DBUG connection/connection_complete_source sources count is 0
[2012-01-18  15:59:51] DBUG source/source_apply_mount Applying mount information for "/stream"
[2012-01-18  15:59:51] DBUG source/source_update_settings public set to 0
[2012-01-18  15:59:51] DBUG source/source_update_settings max listeners to -1
[2012-01-18  15:59:51] DBUG source/source_update_settings queue size to 524288
[2012-01-18  15:59:51] DBUG source/source_update_settings burst size to 65535
[2012-01-18  15:59:51] DBUG source/source_update_settings source timeout to 30
[2012-01-18  15:59:51] DBUG source/source_update_settings fallback_when_full to 0
[2012-01-18  15:59:51] DBUG connection/connection_complete_source source is ready to start
[2012-01-18  15:59:51] DBUG fserve/fserve_add_client_callback Adding client to file serving engine
[2012-01-18  15:59:51] DBUG stats/modify_node_event update node clients (1)
[2012-01-18  15:59:51] DBUG stats/modify_node_event update node connections (1)
[2012-01-18  15:59:51] DBUG stats/modify_node_event update node sources (1)
[2012-01-18  15:59:51] DBUG stats/process_source_event new source stat /stream
[2012-01-18  15:59:51] DBUG stats/process_source_event new node listenurl (http://localhost:9001/stream)
[2012-01-18  15:59:51] DBUG stats/process_source_event new node listener_peak (0)
[2012-01-18  15:59:51] DBUG stats/process_source_event new node public (0)
[2012-01-18  15:59:51] DBUG stats/process_source_event new node server_name (KJSR.net Test Stream)
[2012-01-18  15:59:51] DBUG stats/process_source_event new node server_description (This is a stream description)
[2012-01-18  15:59:51] DBUG stats/process_source_event new node server_url (http://tv.kjsr.net)
[2012-01-18  15:59:51] DBUG stats/process_source_event new node genre (Video)
[2012-01-18  15:59:51] DBUG stats/process_source_event new node server_type (application/ogg)
[2012-01-18  15:59:51] DBUG stats/process_source_event new node max_listeners (unlimited)
[2012-01-18  15:59:52] DBUG source/source_init Source creation complete
[2012-01-18  15:59:52] DBUG stats/process_source_event new node source_ip (127.0.0.1)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node user_agent (libshout/2.2.2)
[2012-01-18  15:59:52] DBUG stats/modify_node_event update node source_client_connections (1)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node listeners (0)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node bitrate (200)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node channels (2)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node samplerate (44100)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node audio_info (bitrate=200;channels=2;samplerate=44100)
[2012-01-18  15:59:52] DBUG stats/modify_node_event update node listenurl (http://localhost:9001/stream)
[2012-01-18  15:59:52] DBUG stats/modify_node_event update node source_total_connections (1)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node slow_listeners (0)
[2012-01-18  15:59:52] DBUG stats/modify_node_event update node listeners (0)
[2012-01-18  15:59:52] DBUG stats/modify_node_event update node listener_peak (0)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node stream_start (Wed, 18 Jan 2012 15:59:52 -0500)
[2012-01-18  15:59:52] INFO source/source_main listener count on /stream now 0
[2012-01-18  15:59:52] DBUG stats/process_source_event new node total_bytes_read (0)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node total_bytes_sent (0)
[2012-01-18  15:59:52] DBUG stats/modify_node_event update node listeners (0)
[2012-01-18  15:59:52] DBUG format-vorbis/initial_vorbis_page checking for vorbis codec
[2012-01-18  15:59:52] DBUG format-theora/initial_theora_page checking for theora codec
[2012-01-18  15:59:52] DBUG format-midi/initial_midi_page checking for MIDI codec
[2012-01-18  15:59:52] DBUG format-flac/initial_flac_page checking for FLAC codec
[2012-01-18  15:59:52] DBUG format-speex/initial_speex_page checking for speex codec
[2012-01-18  15:59:52] DBUG format-kate/initial_kate_page checking for kate codec
[2012-01-18  15:59:52] DBUG format-skeleton/initial_skeleton_page checking for skeleton codec
[2012-01-18  15:59:52] INFO format-skeleton/initial_skeleton_page seen initial skeleton header
[2012-01-18  15:59:52] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2012-01-18  15:59:52] DBUG format-vorbis/initial_vorbis_page checking for vorbis codec
[2012-01-18  15:59:52] DBUG format-theora/initial_theora_page checking for theora codec
[2012-01-18  15:59:52] INFO format-theora/initial_theora_page seen initial theora header
[2012-01-18  15:59:52] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2012-01-18  15:59:52] DBUG format-vorbis/initial_vorbis_page checking for vorbis codec
[2012-01-18  15:59:52] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2012-01-18  15:59:52] DBUG format-ogg/format_ogg_attach_header attaching header page
[2012-01-18  15:59:52] DBUG format-ogg/format_ogg_attach_header attaching header page
[2012-01-18  15:59:52] DBUG stats/process_source_event new node video_bitrate (0)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node video_quality (25)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node frame_size (192 x 128)
[2012-01-18  15:59:52] DBUG stats/process_source_event new node frame_rate (29.97)
[2012-01-18  15:59:52] DBUG format-vorbis/process_vorbis_page processing incoming header packet (1)
[2012-01-18  15:59:52] DBUG format-vorbis/process_vorbis_page processing incoming header packet (2)
[2012-01-18  15:59:52] DBUG format-vorbis/process_vorbis_page we have the header packets now
[2012-01-18  15:59:52] DBUG format-ogg/format_ogg_attach_header attaching BOS page
[2012-01-18  15:59:52] DBUG format-ogg/format_ogg_attach_header attaching header page
[2012-01-18  15:59:52] DBUG format-ogg/format_ogg_attach_header attaching header page
[2012-01-18  15:59:53] DBUG stats/process_source_event new node audio_samplerate (48000)
[2012-01-18  15:59:53] DBUG stats/process_source_event new node audio_channels (2)
[2012-01-18  15:59:53] DBUG stats/process_source_event new node audio_bitrate (64000)
[2012-01-18  15:59:53] DBUG stats/process_source_event new node ice-bitrate (64)
[2012-01-18  15:59:53] DBUG stats/process_source_event new node subtype (Vorbis/Theora/Skeleton)
[2012-01-18  15:59:57] DBUG stats/modify_node_event update node total_bytes_read (38347)
[2012-01-18  15:59:57] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2012-01-18  16:00:02] DBUG stats/modify_node_event update node total_bytes_read (122760)
[2012-01-18  16:00:02] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2012-01-18  16:00:05] DBUG stats/modify_node_event update node clients (2)
[2012-01-18  16:00:05] DBUG stats/modify_node_event update node connections (2)
[2012-01-18  16:00:05] DBUG auth/add_listener_to_source max on /stream is -1 (cur 0)
[2012-01-18  16:00:05] DBUG auth/add_listener_to_source Added client to /stream
[2012-01-18  16:00:05] DBUG auth/add_authenticated_listener client authenticated, passed to source
[2012-01-18  16:00:05] DBUG source/source_main Client added
[2012-01-18  16:00:05] INFO source/source_main listener count on /stream now 1
[2012-01-18  16:00:06] DBUG stats/modify_node_event update node client_connections (1)
[2012-01-18  16:00:06] DBUG stats/modify_node_event update node clients (3)
[2012-01-18  16:00:06] DBUG stats/modify_node_event update node connections (3)
[2012-01-18  16:00:06] DBUG stats/modify_node_event update node clients (2)
[2012-01-18  16:00:06] DBUG stats/modify_node_event update node listener_peak (1)
[2012-01-18  16:00:06] DBUG stats/modify_node_event update node listeners (1)
[2012-01-18  16:00:06] DBUG format/format_check_http_buffer processing pending client headers
[2012-01-18  16:00:06] DBUG stats/modify_node_event update node listeners (1)
[2012-01-18  16:00:06] DBUG stats/modify_node_event update node listener_connections (1)
[2012-01-18  16:00:07] DBUG stats/modify_node_event update node total_bytes_read (174445)
[2012-01-18  16:00:07] DBUG stats/modify_node_event update node total_bytes_sent (47778)
[2012-01-18  16:00:08] DBUG stats/modify_node_event update node clients (3)
[2012-01-18  16:00:08] DBUG stats/modify_node_event update node connections (4)
[2012-01-18  16:00:08] DBUG stats/modify_node_event update node clients (4)
[2012-01-18  16:00:08] DBUG stats/modify_node_event update node connections (5)
[2012-01-18  16:00:08] INFO fserve/fserve_client_create checking for file /favicon.ico (/usr/share/icecast2/web/favicon.ico)
[2012-01-18  16:00:08] WARN fserve/fserve_client_create req for file "/usr/share/icecast2/web/favicon.ico" No such file or directory
[2012-01-18  16:00:08] DBUG fserve/fserve_add_client Adding client to file serving engine
[2012-01-18  16:00:08] DBUG stats/modify_node_event update node client_connections (2)
[2012-01-18  16:00:08] DBUG stats/modify_node_event update node clients (3)
[2012-01-18  16:00:09] DBUG stats/modify_node_event update node clients (2)
[2012-01-18  16:00:09] DBUG stats/modify_node_event update node clients (3)
[2012-01-18  16:00:09] DBUG stats/modify_node_event update node connections (6)
[2012-01-18  16:00:09] INFO fserve/fserve_client_create checking for file /favicon.ico (/usr/share/icecast2/web/favicon.ico)
[2012-01-18  16:00:09] WARN fserve/fserve_client_create req for file "/usr/share/icecast2/web/favicon.ico" No such file or directory
[2012-01-18  16:00:09] DBUG fserve/fserve_add_client Adding client to file serving engine
[2012-01-18  16:00:09] DBUG stats/modify_node_event update node client_connections (3)
[2012-01-18  16:00:09] DBUG stats/modify_node_event update node clients (2)
[2012-01-18  16:00:12] DBUG stats/modify_node_event update node total_bytes_read (212687)
[2012-01-18  16:00:12] DBUG stats/modify_node_event update node total_bytes_sent (117084)
[2012-01-18  16:00:16] DBUG client/client_send_bytes Client connection died
[2012-01-18  16:00:16] DBUG source/source_main Client removed
[2012-01-18  16:00:16] INFO source/source_main listener count on /stream now 0
[2012-01-18  16:00:16] DBUG stats/modify_node_event update node clients (1)
[2012-01-18  16:00:16] DBUG stats/modify_node_event update node listeners (0)
[2012-01-18  16:00:16] DBUG stats/modify_node_event update node listeners (0)
[2012-01-18  16:00:17] DBUG stats/modify_node_event update node total_bytes_read (269038)
[2012-01-18  16:00:17] DBUG stats/modify_node_event update node total_bytes_sent (164686)
[2012-01-18  16:00:22] DBUG stats/modify_node_event update node total_bytes_read (324317)
[2012-01-18  16:00:22] DBUG stats/modify_node_event update node total_bytes_sent (164686)
[2012-01-18  16:00:27] INFO source/get_next_buffer End of Stream /stream
[2012-01-18  16:00:27] INFO source/source_shutdown Source "/stream" exiting
[2012-01-18  16:00:27] DBUG source/source_clear_source clearing source "/stream"
[2012-01-18  16:00:27] DBUG format-ogg/format_ogg_free_headers releasing header pages
[2012-01-18  16:00:27] DBUG format-ogg/free_ogg_codecs freeing codecs
[2012-01-18  16:00:27] DBUG format-vorbis/vorbis_codec_free freeing vorbis codec
[2012-01-18  16:00:27] DBUG format-theora/theora_codec_free freeing theora codec
[2012-01-18  16:00:27] DBUG format-skeleton/skeleton_codec_free freeing skeleton codec
[2012-01-18  16:00:27] DBUG source/source_free_source freeing source "/stream"
[2012-01-18  16:00:27] DBUG stats/modify_node_event update node total_bytes_read (384061)
[2012-01-18  16:00:27] DBUG stats/modify_node_event update node total_bytes_sent (164686)
[2012-01-18  16:00:27] DBUG stats/process_source_event delete source node /stream
[2012-01-18  16:00:27] DBUG stats/modify_node_event update node clients (0)
[2012-01-18  16:00:27] DBUG stats/modify_node_event update node sources (0)


Access log at that point:
Code:
173.190.1.9 - - [18/Jan/2012:16:00:08 -0500] "GET /favicon.ico HTTP/1.1" 404 106 "-" "Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1" 0
173.190.1.9 - - [18/Jan/2012:16:00:09 -0500] "GET /favicon.ico HTTP/1.1" 404 106 "-" "Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1" 1
173.190.1.9 - - [18/Jan/2012:16:00:16 -0500] "GET /stream HTTP/1.1" 200 164686 "-" "Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1" 11
127.0.0.1 - - [18/Jan/2012:16:00:27 -0500] "SOURCE /stream HTTP/1.0" 200 19 "-" "libshout/2.2.2" 36


Closed the page in my browser, and reopened it. And the logs showed NOTHING. No updates at all. The page isn't reaching the browser. Got a friend of mine to try connecting to it. Same result.

Apparently, the FIRST person to connect to the server can see the stream, but after that, nobody else can. And yes, I increased the number of clients to 100 in the icecast2.xml
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jan 18, 2012 9:45 pm    Post subject: Reply with quote

ok, what we see here is a theora stream. seems to be detected and starts at 15:59:52. First listener connects at 16:00:05, seems to be ok (and from your comments, receives playback no problem). listener disconnects at 16:00:16 then source client stops at 16:00:27.

If you are saying that a second listener connects between 16:00:16 and 16:00:27 then icecast is not seeing it. After 16:00:27 we cannot tell as the log ends there. If the web page requests are working in that time then they would be logged also and would confirm the listener end working. The other test you can do to prove the connection is to do a straight dump to local file eg

curl -o sample.ogv http://....:8000/stream

On possibility may be the key frame handling. As video is generally higher bitrate, you may want to increase the queue size to more than 512k but more specifically, try increasing the burst size to at least 128k or 256k. If may be that key frames are more infrequent and it taking some time to find the next one.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber