[hint] lower the transcoder process priority

General discussion about netjukebox
Post Reply
Superlexx
User
Posts: 45
Joined: Thu Feb 10, 2005 8:51 pm

[hint] lower the transcoder process priority

Post 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 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 -';
and in stream.php to passthru:

Code: Select all

@passthru('nice --adjustment=19 ' . $cmd);
User avatar
wbartels
netjukebox developer
Posts: 850
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

Here I found a stand alone version of nice.exe
http://members.ozemail.com.au/~markhurd/SomeProgs.html
Post Reply