Log in

View Full Version : x264 encoding slow


r0d
4th September 2011, 12:50
Hi all,

I'm using x264.exe under an i7 975 Extreme Edition with 6Go RAM (OS : Windows 7 x64 SP1), and i obtain only around 35 Fps for the 1st pass, and 9 fps for the 2nd.

Here my command line :

"x264.exe" --level 4.1 --pass 1 --bitrate 5173 --stats stat --thread-input --threads auto --deblock 0:0 --bframes 3 --b-bias 0 --scenecut 40 --ref 5 --rc-lookahead 40 --no-mbtree --aq-mode 1 --aq-strength 1.0 --merange 16 --subme 2 --partitions all --trellis 0 --psy-rd 0:0 --no-mixed-refs --output NUL 720p.avs

"x264.exe" --level 4.1 --pass 2 --bitrate 5173 --stats stat --thread-input --threads auto --deblock 0:0 --bframes 3 --b-bias 0 --scenecut 40 --ref 5 --rc-lookahead 40 --no-mbtree --aq-mode 1 --aq-strength 1.0 --merange 16 --me umh --subme 8 --partitions all --trellis 1 --psy-rd 1.0:0 --output moviefinal.mkv 720p.avs

Here my avs script :

DirectShowSource("movie.mkv", fps=25.000, audio=false, convertfps=true).AssumeFPS(25,1)
#deinterlace
crop( 0, 20, 0, -22)

Spline36Resize(1280,688) # Spline36 (Neutral)
#denoise

Futhermore, x264.exe process took only 22% of cpu usage.

Any ideas ?

Selur
4th September 2011, 17:39
using ffmpegsource instead of directshowsource might speed up the process a bit

7ekno
5th September 2011, 10:50
Decode bottleneck, get a cheap VP5 Nvidia card and use DGDecNV .. VP5 engines decode over 100FPS ...

Tek

nibus
5th September 2011, 11:34
this is what you want:

http://neuron2.net/dgdecnv/dgdecnv.html

Blue_MiSfit
5th September 2011, 23:15
Your decode (or avisynth) is bottlenecking x264. Which directshow decoder are you using? DGDecNV is a good idea, but may not be the be-all end-all solution.

Also, try swapping spline36resize for bicubicresize. AviSynth often bottlenecks things since it's inherently single threaded.

Finally, use the presets!!

Derek

r0d
6th September 2011, 06:18
Your decode (or avisynth) is bottlenecking x264. Which directshow decoder are you using? DGDecNV is a good idea, but may not be the be-all end-all solution.

Also, try swapping spline36resize for bicubicresize. AviSynth often bottlenecks things since it's inherently single threaded.

Finally, use the presets!!

Derek

I use Haali Media Splitter + Ffdshow (libavcodec) to decode. What do you mean by "use the presets" ?

Blue_MiSfit
6th September 2011, 07:42
x264.exe input.avs --tune film --preset medium --output out.mkv

Derek