07-22-2020, 10:50 AM
(This post was last modified: 07-22-2020, 10:51 AM by TheOldPresbyope.
Edit Reason: redundant signature line
)
@DRONE7
You'll have to edit /var/www/inc/playerlib.php.
Here's a snippet of function UpdMpdConf
I inserted a new Input Cache stanza so that this snippet reads
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?
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?