Log in

View Full Version : how can I run it low?


niv
14th March 2005, 18:05
Hay ,
I was wondering if I can ask your help on this:
I want the following command to run in low priority from a batch file:

avs2yuv L:\Regulars\60_MIN.AVI.post.avs - | g:mencoder - -nosound - -o NUL: -ovc x264 -x264encopts pass=1:bitrate=491 -passlogfile L:\Regulars\60_MIN.AVI.x264yuv.stat

The command converts a film then pipes it to mencoder which encodes it.

when I run that command the pc freezes a bit because it consumes lots of cpu flops.
It runs in Normal priority.
As suggested I thought of echo ing it to a batch file then:

start "This_time_run_mencoder_in_low" /low <batch_file>

when I tried to echo the command to a file , I got an error and mencoder was loaded.
> echo avs2yuv L:\Regulars\60_MIN.AVI.post.avs - | g:mencoder - -nosound - -o NUL: -ovc x264 -x264encopts pass=1:bitrate=491 -passlogfile L:\Regulars\60_MIN.AVI.x264yuv.stat > batch.bat

I think its because of the pipe.

Help?

Niv

Sharktooth
14th March 2005, 18:12
change the priority after launching the batch file using the windows task manager.

niv
14th March 2005, 18:18
mencoder runs after each capture from the TV.
I want to lower th priority, so if I capture another show during mencoder run, I won't lose frames.

Doom9
14th March 2005, 20:54
start /low batchfile.bat

if it doesn't work, check the megui thread, it contains more info on running batchfiles at low priority.