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 

Constantly buffering!

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



Joined: 16 Nov 2010
Posts: 17

PostPosted: Sat Feb 04, 2012 6:16 pm    Post subject: Constantly buffering! Reply with quote

Okay, so I've rented a server, got everything set up, and it's just not working right. About every 10-12 seconds, the stream freezes and buffers for 5-10 seconds.

Here's a link to the stream: http://159.253.143.4:8372/live

And here's my ezstream configuration:

Code:
<ezstream>
    <url>http://159.253.143.4:8372/live</url>
    <sourcepassword>xxxxxxxxxx</sourcepassword>
    <format>THEORA</format>
    <filename>playlist.m3u</filename>
    <stream_once>0</stream_once>

    <svrinfoname>Digital Drive-In (http://www.digitaldrivein.net)</svrinfoname>
    <svrinfourl>http://www.digitaldrivein.net</svrinfourl>
    <svrinfogenre>Video</svrinfogenre>
    <svrinfodescription>Digital Drive-In</svrinfodescription>
    <svrinfobitrate>16</svrinfobitrate>
    <svrinfochannels>1</svrinfochannels>
    <svrinfosamplerate>22050</svrinfosamplerate>
</ezstream>


The server is 128k stream quality, but if I set ezstream that high, the buffering still happens, but I only get 5 seconds of playback.

ANY ideas on how to fix this?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Feb 04, 2012 7:00 pm    Post subject: Reply with quote

You need to specify more information than that. I've just tried the link and I get a 404 response so I cannot test for the actual bitrate and content.

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: Sun Feb 05, 2012 1:45 am    Post subject: Reply with quote

Ok, it's running again (finally).

As for what else I can give you, the host I'm using doesn't give direct access to the icecast2.xml file. What do you need and I'll try to get it.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 05, 2012 2:56 am    Post subject: Reply with quote

I was only able to get a small fragment to check with and since then there is no more data coming down. The vorbis part looks to be around 64k/stereo/44100 not 128k or 32k so you should check what you intend there. The video settings were midway so may be you are maxing your available connection bandwidth? What are you expecting to be streamed?

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: Sun Feb 05, 2012 4:33 am    Post subject: Reply with quote

Well, since it's still testing it should be an ancient cartoon video. It's in Ogg Theora format. I've got ezstream set to 32k video and 24k audio, mono, so bandwidth shouldn't be a problem.

Could ezstream be ignoring my settings and streaming at a higher rate?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 05, 2012 2:41 pm    Post subject: Reply with quote

yes, unless you have specifically configured a re-encoding to occur then it won't be changing the source.

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: Sun Feb 05, 2012 4:00 pm    Post subject: Reply with quote

So even though I set the ezstream.xml to send at 32k, it doesn't send at 32k?

How can I fix this then?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 05, 2012 4:54 pm    Post subject: Reply with quote

svrinfobitrate is an informational field not a switch to enable re-encoding. For that you'll need to hook in something like ffmpeg. I believe there is a transcoding example provided.

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: Sun Feb 05, 2012 7:06 pm    Post subject: Reply with quote

Ok, so I added this:

Code:

<reencode>
   <enable>1</enable>
      <encdec>
         <format>THEORA</format>
            <match>.ogv</match>
               <decode>ffmpeg2theora -V 16 -A 16 -a 0 -v 0 --title "@M@" -o - "@T@"</decode>
      </encdec>
</reencode>


Now it buffers even WORSE than before!

I have it up and running if you want to take a look.[/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: Sun Feb 05, 2012 9:24 pm    Post subject: Reply with quote

try to convert the file locally first to see if it's the sort of setting/bitrate you are expecting. You may want to resample to less than 44.1khz for example or use 1 channel not 2 (look at the ffmpeg2theora docs for the options like -c and -H maybe use the -x -y -F options for the image

not sure what happens if you specify a quality and a bitrate in ffmpeg2theora, may need to experiment with one or the other. You are starting to go along the right lines now, just make sure that the on-the-fly re-encoding is not maxing out the system.

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: Tue Feb 07, 2012 8:23 pm    Post subject: Reply with quote

No joy. Converted it to 16k audio and video. Still getting HUGE buffering every 10 seconds.

Tried ezstreaming from the server (local to the broadcaster), same result.

I'm leaving it up and running right now if you want to take a look.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Video Streaming 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