View Full Version : How to speed-up x264 2-pass encode?
ben45
12th August 2016, 08:21
Hello
How can i speed-up this x264 setting without (or minimum) quality loss? (megui)
program --level 4.1 --pass 2 --bitrate 940--stats ".stats" --threads 16 --deblock -1:-1 --keyint 240 --ref 5 --qpmin 10 --qpmax 51 --vbv-bufsize 25000 --vbv-maxrate 20000 --me umh --direct auto --trellis 2 --psy-rd 1.0:0.15 --output "output" "input"
Atak_Snajpera
12th August 2016, 09:58
reduce ref from 5 to 3
ben45
12th August 2016, 10:01
reduce ref from 5 to 3
This will not reduce quality?
ben45
12th August 2016, 10:06
Will using Temporal direct reduce quality?
Atak_Snajpera
12th August 2016, 10:15
everything reduces quality. Question is will you notice this small drop in picture quality?
ben45
12th August 2016, 10:35
everything reduces quality. Question is will you notice this small drop in picture quality?
Small like subme=7 and subme=9 difference?
Atak_Snajpera
12th August 2016, 10:54
yes.
if you want additional speed up you can also replace umh with hex.
benwaggoner
16th August 2016, 19:52
Hello
How can i speed-up this x264 setting without (or minimum) quality loss? (megui)
program --level 4.1 --pass 2 --bitrate 940--stats ".stats" --threads 16 --deblock -1:-1 --keyint 240 --ref 5 --qpmin 10 --qpmax 51 --vbv-bufsize 25000 --vbv-maxrate 20000 --me umh --direct auto --trellis 2 --psy-rd 1.0:0.15 --output "output" "input"
What hardware are you running on? Unless you have a lot of cores, 16 threads may be overkill, and the overhead of thread sync can cause it's own performance loss.
Going to level 4.0 with lower bufsize and maxrate will also reduce the peak bitrate, speeding up CABAC significantly. Are you doing 1080p? Seems unlikely with a 940 bitrate. I recommend using the lowest Level that supports your frame size and frame rate.
kuchikirukia
26th August 2016, 01:24
Going to level 4.0 with lower bufsize and maxrate will also reduce the peak bitrate, speeding up CABAC significantly. Are you doing 1080p? Seems unlikely with a 940 bitrate. I recommend using the lowest Level that supports your frame size and frame rate.
?
Unlimited/Autoguess (came out level 4): encoded 2696 frames, 8.71 fps, 4537.37 kb/s
Level 4: encoded 2696 frames, 8.68 fps, 4570.03 kb/s
Level 4 10k/10k vbv: encoded 2696 frames, 8.69 fps, 4570.03 kb/s
If you were to set it down further into bitrate starvation mode, I don't see how anyone would consider that an acceptable speed/quality tradeoff.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.