adiknoth / 4deckradio

Multi-deck media playback for radio stations
MIT License
5 stars 2 forks source link

Increase buffer size #15

Open JanMiddelkoop opened 11 years ago

JanMiddelkoop commented 11 years ago

When playing webstreams there are sometimes small hiccups in the playout. I believe this is due to very small buffer sizes in gstreamer. Perhaps the buffer size could be increased somewhat by default (or set from command line) to better accommodate 4deckradio on ADSL connections.

adiknoth commented 11 years ago

I'm not sure input buffering is to blame here. Please run the following pipe on a couple of webstreams:

gst-launch uridecodebin uri=http://streamserver.max.fm:80/srb ! audioresample ! audioconvert ! jackaudiosink

This is what happens internally. If you get repeated "buffering" messages after startup, then it's really input buffering. You can add "download=true" or "buffer-size=1048576" before the uri, but this doesn't change a thing over here.

Only if I use really small buffers like 4k, I get repeated buffering messages after startup, but still no hiccups.