Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

up vote 4 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'.

Try:

$ 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 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

 
discard

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.