04-10-2025, 09:30 PM
(04-10-2025, 07:04 PM)roderickvd Wrote: I just released v0.15.0 with a new command-line option that I think is very interesting to Raspberry Pi users: "--max-ram <MB>".
Quote:--max-ram: Maximum RAM (in MB) to use for storing audio files in memory. If not specified or if a track exceeds this limit, temporary files will be used. Example:
pleezer --max-ram 64 # Store tracks in RAM if under 64MB
As a guide for sizing:
- For 320 kbps MP3: ~15MB for a typical 5-minute track
- For FLAC: ~30-50MB for a typical 5-minute track
Consider allowing at least double these amounts to accommodate both current and preloaded tracks. For example, --max-ram 100 should comfortably handle most MP3 tracks, while --max-ram 200 would handle most FLAC tracks.
Before, tracks were always stored in temporary files. Storing in RAM should greatly improve SD card lifetime.
Nice :-)
Where is the default on-disk location for tracks?