PDA

View Full Version : HELP: x264 only using 50% CPU on a quad core with megui/ avisynth script


St Devious
22nd May 2008, 16:31
My System :

Intel Q9450 2.66 Ghz
GIGABYTE EX-38 DS4 mobo
Geil 4GB RAM
Vista Ultimate x64

Megui updated to latest version.
Avisynth 2.5.7 installed.

Avisynth Script :

DGDecode_mpeg2source("D:\HDV Capture\Bday.d2v",cpu=4,info=3)
ColorMatrix(hints=true,interlaced=true)
Load_Stdcall_Plugin("C:\Program Files (x86)\megui\tools\yadif\yadif.dll")
Yadif(order=1)
#crop
Lanczos4Resize(1280,720) # Lanczos4 (Sharp)
Undot() # Minimal Noise

__film = last
__t0 = __film.trim(16333, 35232)
__t0


Here's what i did :
Captured Video from HDV camera.
Saved Project with DGIndex .
Made avisynth script with Megui avisynth script creator by selecting the .d2v file made by DGIndex.
Selected the HQ-Slowest Profile in x264 config.

Problem: WHen i start the encoding , only 50% CPU is used . I checked the affinity with task manager, all cores were enabled .
I did the same encoding with AVIDemux and it used 100% CPU.

Dark Shikari
22nd May 2008, 16:32
That's because you're bottlenecked by your input script.

Most likely, the input script is using one entire core and x264 is using one entire core, and x264 can't go any faster because the input script is singlethreaded.

burfadel
22nd May 2008, 16:46
Try a different deinterlacing filter. Yadif can be quite slow with HD material.

St Devious
22nd May 2008, 16:47
That's because you're bottlenecked by your input script.

Most likely, the input script is using one entire core and x264 is using one entire core, and x264 can't go any faster because the input script is singlethreaded.

so plz tell me the solution . what should i do to utilize 100% CPU ?

@burfadel slow is fine as long as it uses 100% CPU , which is not happening .

audyovydeo
22nd May 2008, 17:05
so plz tell me the solution . what should i do to utilize 100% CPU ?

@burfadel slow is fine as long as it uses 100% CPU , which is not happening .

TDeint 1.1 and NNEDI are multithreaded. That's the big main difference with yadif.

cheers
a/v

Atak_Snajpera
22nd May 2008, 18:10
Install Multithreaded avisynth and then add SetMTmode(2,0) at the very begining of your script.

LoRd_MuldeR
22nd May 2008, 22:22
so plz tell me the solution . what should i do to utilize 100% CPU ?

@burfadel slow is fine as long as it uses 100% CPU , which is not happening .

x264 can use all 4 cores at 100%, but only if the input isn't the bottleneck!

Using "slow" single-threaded filters can become a bottleneck easily. Then the decoder has to wait for the input all the time.
So either use multi-threaded filters or use "fast" filters in order to let x264 use it's multi-threading capabilities...