View Full Version : having problem with xvid_encraw


ovi_ili
3rd July 2008, 13:48
I am encoding an avi uncompressed raw. I a am using xvind_encraw.exe (built at 10:22:53 on Aug 31 2007) in command line or with MeGUI on windows xp/sp2. I am experiencing problems with the encoding time. With the same options i get different fps. Sometimes i get an average of 25 or 46 fps. I get this problem both in command line or in MeGUI. Someone could help me with this bog?
I need a constant encoding time or at least very similar with the same options. I am encoding in one pass - CBR 2000.

talen9
3rd July 2008, 14:23
Are you comparing the speed of two different encodes of the same source, or of different sources?

If the latter ... well, two sources which differ in resolution and (more importantly) in comprimibility will also be encoded at different speeds ... especially if in the "encoding" time you're also implicitly including (AviSynth) / (VDub filters) elaboration times ....

ovi_ili
3rd July 2008, 14:34
Are you comparing the speed of two different encodes of the same source, or of different sources?

If the latter ... well, two sources which differ in resolution and (more importantly) in comprimibility will also be encoded at different speeds ... especially if in the "encoding" time you're also implicitly including (AviSynth) / (VDub filters) elaboration times ....


I am comapring two encodes of the same source. For exemple with Megui first test : megui1.avi(the output) encoded in 46.35 fps ; second test : megui11.avi(output) encoded in 27.14 fsp ; third one : megui111.avi encoded in 25 fps ; fourth one : megui1111.avi 25 fps ; the sixth one : megui111111.avi 54.29 fps. The same source and the same options for all tests. All the outputs have the same zise and same quality (analised with msu tool). Just the encoding time is different.

ovi_ili
3rd July 2008, 14:53
i think i know why. I watched my cpu usage and when i get a high fps like 46 it uses about 54% of the cpu. When i get like 27 fps it uses less 27 % or so. I can't explain the difference. And in megui i have set the default priority to high.

Sharktooth
3rd July 2008, 16:03
try to rise the number of xvid threads (if you have a multicore CPU) and remember to disable the "automatically set the number of threads" in options.

ovi_ili
3rd July 2008, 16:14
try to rise the number of xvid threads (if you have a multicore CPU) and remember to disable the "automatically set the number of threads" in options.

I have a p4 640 3.2GHz. It is a hyperthreading so not really a dual core. I set the treads manually at 2. It works better. 5 tests of 6 it uses 50-60 % of cpu (but sometimes it uses only about 30% so the fps drops)

Sharktooth
3rd July 2008, 19:29
dunno. it's a weird behaviour. it may depend also on your avisynth script.

sysKin
8th July 2008, 13:12
If your CPU usage drops below single-full-core (50% in your case) then this is because entire encoding chain waits for something else.

Can it be that your hard disk can't read raw data fast enough (for example when hdd is also doing something else).