Hello,
I'm just trying out divx and xvid codecs which both result in really good compression, but also with major problems in encoding speed.
For example divx uses only half of my computers cores, taking approximately 6 hours to convert a video of the length of 52 minutes. The xvid codecs uses even more time for the same video but it utilizes just a single core of my cpu.
So the main question here is: Shouldn't there be better multicore support, at least for xvid? Or did I set up anything wrong?
Greetings,
Ravior
+ Reply to Thread
Results 1 to 8 of 8
-
-
a. there hasn't been much development in ages (small changes happen from time to time)
b. it's not easy to convert non-multithreaded code to multithreaded. It's not simply a rewrite, but often new algorithms have to be developed and tested to keep the loss from using a multithreaded approach to a minimum.
So yes, Xvid&Co do not scale so well in regards to multithreading (depending on the settings) and this will probably not change unless some folks who are really into it decide that they want to spend at least half a years worth of their free time to develop new algorithms. Problem is nowadays MPEG-4 ASP isn't that interesting, most folks and companies will rather look at MPEG-4 AVC or HEVC.
-> you probably didn't set up anything wrong -
If I use Xvid4PSP to encode with Xvid, it gives me good performance on my 6 core AMD CPU. I could probably do your encode in an hour, maybe 2. Maybe what you're using to encode with is not set up in an optimal way.
Last edited by jman98; 11th Aug 2013 at 06:43. Reason: clarity
-
Xvid and Divx are poorly multithreaded. What you're seeing is normal.
Last edited by jagabo; 11th Aug 2013 at 07:06.
-
No doubt Divx/Xvid aren't well multithreaded but Xvid should use more than one core. Any filtering you might apply while encoding can also be a bottleneck.
Which encoding GUI do you use? Could an encoder GUI restrict encoding to a single thread? It might pay to look for an appropriate setting in your program's preferences.
My workaround/solution to the problem when I used to encode with Xvid regularly was simply to run two encodes simultaneously whenever possible. Each encode will still take around the same amount of time, but you can effectively encode more video in the same amount of time. Most of my Xvid encoding was done using AutoGK and as a general rule it'd use all four cores of my CPU, but total CPU usage would probably average around 50% to 70%. AutoGK can't actually run 2 encoding jobs simultaneously but it is possible to run two instances of AutoGK at the same time and have each running single encodes.
If you're using an encoder GUI which won't run more than one encode simultaneously, maybe try using a different one. Or try a different encoder GUI to see if CPU usage changes as a result. -
-
@jagabo: I don't think that recent versions of Xvid are worse regarding multithreading, only the newer options are.
-
As computers get faster and have more cores, the encoding time for divx/xvid will continue to improve. Xvid and Divx are not as efficient as H264 in using 100% of all multicore cpu's, but depending on what type of device you are encoding for, it is still worth using.
Similar Threads
-
My DivX DVD Player can't play my avi DivX/xvid video
By Baldrick in forum DVD & Blu-ray PlayersReplies: 32Last Post: 6th Mar 2015, 09:11 -
Attn: HC Encoder Experts/Optimized Settings?
By Canon GL-2 Guy in forum Newbie / General discussionsReplies: 0Last Post: 7th Nov 2011, 21:11 -
is it possible to use GPU/multithreading on .avs?
By anthell in forum RestorationReplies: 6Last Post: 8th May 2010, 17:47 -
SSE optimized firefox build(s)
By deadrats in forum ComputerReplies: 12Last Post: 2nd Mar 2010, 19:55 -
GPU Optimized Video Converter
By Soopafresh in forum Video ConversionReplies: 5Last Post: 2nd Sep 2008, 22:28