(07-22-2020, 10:50 AM)TheOldPresbyope Wrote: @DRONE7Yes...odder than an odd thing. if you know your Blackadder...
You'll have to edit /var/www/inc/playerlib.php.
Here's a snippet of function UpdMpdConf
Code:// Input <<< this is line 1674 more or less
$data .= "max_connections \"128\"\n";
$data .= "\n";
$data .= "decoder {\n";
$data .= "plugin \"ffmpeg\"\n";
$data .= "enabled \"yes\"\n";
$data .= "}\n\n";
$data .= "input {\n";
$data .= "plugin \"curl\"\n";
$data .= "}\n\n";
// Resampler
$data .= "resampler {\n";
$data .= "plugin \"soxr\"\n";
$data .= "quality \"" . $samplerate_converter . "\"\n";
$data .= "threads \"" . $sox_multithreading . "\"\n";
$data .= "}\n\n";
I inserted a new Input Cache stanza so that this snippet reads
Code:// Input
$data .= "max_connections \"128\"\n";
$data .= "\n";
$data .= "decoder {\n";
$data .= "plugin \"ffmpeg\"\n";
$data .= "enabled \"yes\"\n";
$data .= "}\n\n";
$data .= "input {\n";
$data .= "plugin \"curl\"\n";
$data .= "}\n\n";
// Input Cache
$data .= "input_cache {\n";
$data .= "size \"1 GB\"\n";
$data .= "}\n\n";
// Resampler
$data .= "resampler {\n";
$data .= "plugin \"soxr\"\n";
$data .= "quality \"" . $samplerate_converter . "\"\n";
$data .= "threads \"" . $sox_multithreading . "\"\n";
$data .= "}\n\n";
I stuck them there out of a perverse sense of style but I suppose they could have preceded the decoder and input stanzas.
Regards,
Kent
PS - I'm unsure what the max cache value should be for 512MB RPis. Memory usage in normal operation suggests there's at least 128MB free but maybe less than 200 MB. Anyone have any thoughts?
Reboots and reloads of updates seem to play havoc with the settings.
Sometimes it is clean and with wonderful diction...next it's heavily bass thumping....

https://www.prestomusic.com/classical/pr...world-wags
Bob
----------
bob
bob