[hint] lower the transcoder process priority
Posted: Sun Feb 27, 2005 12:03 am
Here on WinXP+IIS while the transcoding process is running (ogg vorbis streaming) other programs are reacting slow. To reduce the priority of the process, use "nice". Since windows doesn't have this command, you'll have to install CygWin first.
Then in config.inc.php add nice to the encoder command:
and in stream.php to passthru:
Then in config.inc.php add nice to the encoder command:
Code: Select all
$cfg['stream_encode'] = 'nice --adjustment=19 D:\bin\codec\oggenc.exe --quiet --raw --raw-bits=%bits_per_sample --raw-chan=%channels --raw-rate=%sample_rate --title=%title --artist=%artist --quality 0 -';
Code: Select all
@passthru('nice --adjustment=19 ' . $cmd);