Page 1 of 1

[hint] lower the transcoder process priority

Posted: Sun Feb 27, 2005 12:03 am
by Superlexx
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 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 -';
and in stream.php to passthru:

Code: Select all

@passthru('nice --adjustment=19 ' . $cmd);

Posted: Sun Feb 27, 2005 10:07 pm
by wbartels
Here I found a stand alone version of nice.exe