Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found out that listening to radio in terminal using "mplayer url" is much better than any software around, but after a while, terminal prints out a message saying low on cache.

How can I increase the cache in the terminal? Is it possible to free the used cache periodically while listening to the radio?

share|improve this question
up vote 6 down vote accepted

You can set mplayer's cache with -cache argument on command line as well as specifying the initial cache fill before playback with '-cache-min'.


$ mplayer -cache 8192 -cache-min 80 <url>

p.s. 8192 should be enough, however, you can increase that number according to your needs. Note that the initial cache fill without the '-cache-min' option is only 20%.

share|improve this answer
My edit adds in the -cache-min option and brief explanatory note... – andrew.46 May 21 '14 at 22:11

To listen Internet-Radio from a terminal I would recommend pyradio

As far as I know it uses mplayer and vlc in the background but has a really nice command-line interface.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.