2

I am playing pictures and short HD videos (~40MB) from the SD card (not network), 24 hours a day with OpenELEC installed on Raspberry Pi. Everything was fine until the second day. Now when trying to play video it keeps alerting this: "Cache filled before reaching required amount."

I've already had set Cache settings, reading here, and I thought it would be fine. What can I do now?

This is my advancedsettings.xml in Raspberry Pi B+,

<advancedsettings>
  <network>
    <buffermode>1</buffermode> <!--Buffer all filesystems, both internet and local-->
    <cachemembuffersize>25971520</cachemembuffersize> <!-- 25MB -->
    <readbufferfactor>2.0</readbufferfactor>
  </network>
</advancedsettings>
  • Did you read this note regarding cachebuffersize and the Raspberry Pi Value: 0 - we can use the local disk memory (typically your hard drive), which will not put any limit on the size (outside of the size of your drive). This also allows devices with low RAM, such as the Raspberry Pi, to cache more than they normally would due to the small amount of RAM they have. The cache is deleted from the local disk whenever playback is stopped. How much free memory do you have the note also mentions that you will need 3x the amount set for buffersize - so 75MB – Steve Robillard Mar 13 '15 at 20:22
  • Ok, I guess I read it but it says it will cause wear-and-tear on the SD card. I will try that value. But I need to optimize this, because they are always the same 5 videos and images rotating. It shouldn't be a problem! The RAM is divided at half between GPU and CPU – whitenoisedb Mar 13 '15 at 20:34
  • 1
    why not move the media to a removable drive even if it is a cheap flash drive or SD card instead of a more expensive and larger ext hard drive. Don't forget the old adage you can't optimize what doesn't work. – Steve Robillard Mar 13 '15 at 20:37
  • "adage"?, the sd card is new. 8gb class 10 sandisk. – whitenoisedb Mar 13 '15 at 20:45
  • adage = an old saying (usually imparting a bit of truth) or aphorism. My point was you need to worry about getting it working before you worry about optimizations. You can probably optimize cache usage by using the external drive as the cache directory as well. – Steve Robillard Mar 13 '15 at 20:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.