PDA

View Full Version : Xvid encoding on a Intel Core Duo...


travisbell
10th December 2006, 18:53
Hey guys, just curious.

While the encoding performance on my Mac Book (running Boot Camp) is quite impressive, encoding Xvid never reaches even close to 100% across both cores... it's more like 30% on each core averaging out around 60% total.

Is there a version of Xvid that can utilize both cores properly?

Thanks!

JoeShrubbery
10th December 2006, 23:45
I believe the 1.2 series alpha builds introduce some SMP code. Try Koepi's latest unstable build.

http://www.koepi.org/xvid.shtml

travisbell
11th December 2006, 00:46
Hmmm.... looks like I get about the same... 65% (ish) average CPU utilization. Unless you need to do something different than just install it...

Thanks for the link, it just looks like XviD doesn't quite support the dual cores properly. Hopefully it will soon!

Thanks man,

Blue_MiSfit
11th December 2006, 00:57
It's probably not XviD that is your limiting factor, but AviSynth. Try MT AviSynth http://forum.doom9.org/showthread.php?t=94996

Make sure you set the number of threads in XviD to 2 or 3.

travisbell
11th December 2006, 04:13
It's probably not XviD that is your limiting factor, but AviSynth. Try MT AviSynth http://forum.doom9.org/showthread.php?t=94996

Make sure you set the number of threads in XviD to 2 or 3.

Seems interesting, how would one integrate that with AutoGK? I'm a bit confused.

Thanks!

Blue_MiSfit
12th December 2006, 08:42
Hmm... It might be difficult, seeing how AutoGK generates AviSynth scripts behind the scenes. Hmm...

Well I don't use AutoGK, so I'm not entirely sure :D - one of the advantages of doing things manually or with MeGUI to be sure.

I would definitely check to make sure you are using 2-3 threads for XviD. There should be a setting for this in the XviD configuration somewhere - again AutoGK might handle all this for you. I'm not a real authority, but if it doesn't I would suggest trying a program that gives you a little more control if you want to get the best possible speed.

~MiSfit

celtic_druid
12th December 2006, 14:53
AutoGK should ship with one of my Xvid builds which means a newer 1.2 build than Koepi's. Latest build features some new SSE3 ASM though so it should I guess be even faster.

Assuming that AutoGK doesn't set threads, then it should use whatever setting is already set in the registry.

travisbell
12th December 2006, 16:19
I saw maybe a 5% performance jump after installing the latest XviD 1.2 binary. CPU utilization still only peaks around 65% for the whole system. On a note about XviD threads, when using AutoMKV, I saw the command line entries for XviD and it was set to 2 threads, and still only used maybe 70% total CPU.

x264 on the other hand, running 2 threads, I get full 99%...

celtic_druid
12th December 2006, 16:27
I get around 97% of both cores with Xvid on my X2. Remember though it is about trying to maximise encoding speed, not CPU usage.

len0x
13th December 2006, 20:41
Assuming that AutoGK doesn't set threads, then it should use whatever setting is already set in the registry.

AutoGK actually does detect number of cores and sets threads accordingly.

P.S. I have utilization over 95% on both cores with core duo CPU...

Lenny_Nero
13th December 2006, 21:53
You might find that it is the hard drives or some other factor limiting it. I have an old (skt A) AMD 2 GHz box I use for encoding and I have controller cards so I always encode from and to different controllers/Hdds with the OS and AGK (whatever running program) on yet another controller so no data has to wait for the other to finish and it is fast compared to other peoples I see >30~35 fps.

The worst case is with one hard drive and doing everything to and from that with the OS on it as well, even 2 Hdds on the same controller (if PATA) will have the same effect.

travisbell
13th December 2006, 22:53
I am encoding 720p video from a 1080i source... we're talking 8fps on a 2Ghz Core Duo... with of course, CPU maxed out around 65%.... it just seems like there is so much more CPU... we could bump that up to 10-11fps...

Thanks guys!