Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
11th May 2011, 17:18 | #1 | Link |
Registered User
Join Date: Nov 2008
Posts: 101
|
Low CPU usage of 1st pass x264 encoding
Hi,
I noticed the 1st pass of a 2 pass encode in x264 uses only about 25% of my CPU. Is this normal? I have an i7 920 and would like to know if there is anything I can do to utilize the whole CPU (like in the 2nd pass) so that the 1st pass doesn't take as long. |
11th May 2011, 17:35 | #2 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
If you want more CPU usage, use slower settings.
The encoder can only run as fast as it can get frames. And the encoder can only run as fast as its slowest part (which is often the frame-type decision).
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
11th May 2011, 18:21 | #3 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,391
|
Code:
x264 --preset slowest --pass 1 --slow-firstpass --stats "stats.stats"
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
12th May 2011, 01:31 | #5 | Link |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
That's not entirely true. My PC can feed frames to x264 much faster than the first pass of x264 consumes them. My i7-2600k doesn't even use close to use 100% CPU (more like 30%). I'm using --very slow and --b-adapt 2.
I realize the first pass runs faster and has less math to do because it's simplifying things so there aren't tasks to keep 4 cores w/ HT busy. This is in no way a complaint, but simply an observation that the speed at which frames can be fed to x264 is not the sole determiner of the speed of x264 when CPU usage is less than 100%. |
12th May 2011, 01:58 | #9 | Link |
Registered User
Join Date: Nov 2008
Posts: 101
|
Still, I'd prefer to do just one 1st pass at a time but get it done 3-4 times faster but it appears that the bottleneck lies in the 1st passes lack of multithreading which there isn't anything we can really do about from the looks of it.
|
12th May 2011, 08:58 | #10 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
No, that is entirely true. Your PC is limited by my second sentence.
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
|
|