Hello all,
I'm using Staxrip X264 encoder, No matter what, it only uses 25~30% of CPU usage. Normally, it takes about 15 mins or more.
Is there anyway to force it to use full CPU speed? to speed up the encoding?
+ Reply to Thread
Results 1 to 10 of 10
-
-
The x264 encoder uses as much CPU as possible; but there may be reasons why it has to wait for the video to be delivered from AviSynth. There are several possible reasons for bottlenecks. Without knowing your script we can't tell you if it possibly uses a slow video filter running in only one thread, which could possibly be accelerated by multi-threading, or if even some hardware component may be the slowest part in the chain (e.g. processing uncompressed video mostly needs to wait for the harddisk).
-
Thanks you for your reply,
Sorry for being rookie, it seems this script is long, and I couldn't just filter what's important for my case since I'm not sure what they are:
Code:[Source] Automatic = # can be configured at: Tools > Settings > Source Filters AviSource = AviSource("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4", Audio = False) DGSource = DGSource("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4") DGSourceIM = DGSourceIM("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4") DirectShowSource = DirectShowSource("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4", audio = False) DSS2 = DSS2("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4") FFVideoSource = FFVideoSource("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4", colorspace = "YV12", \ cachefile = "C:\Users\xxx\Desktop\MyFolder\Series.E03_temp\Series.E03.ffindex") LSMASHVideoSource = LSMASHVideoSource("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4", format = "YUV420P8") LWLibavVideoSource = LWLibavVideoSource("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4", format = "YUV420P8") Manual = # shows the filter selection dialog MPEG2Source = MPEG2Source("C:\Users\xxx\Desktop\MyFolder\Series.E03.mp4") [Misc] AssumeFPS Source File = AssumeFPS(29.970) AssumeFPS... = AssumeFPS($select:msg:Select a frame rate;24000/1001|24000, 1001;24;25;30000/1001|30000, 1001;30;50;60000/1001|60000, 1001;60$) aWarpSharp2 = aWarpSharp2(thresh = 128, blur = 2, type = 0, depth = 16, chroma = 4) checkmate = checkmate() Clense = Clense() f3kdb = f3kdb() FineSharp = FineSharp(mode=1, sstr=2, cstr=0.8, xstr=0.19, lstr=1.49, pstr=1.272, ldmp=2.1) FrameRateConverter = FrameRateConverter() LSFmod = LSFmod(strength = 100) MSharpen = MSharpen(threshold = 10, strength = 100, highq = true, mask = false) Prefetch(4) = Prefetch(4) TComb = TComb(mode = 0, fthreshL = 255, othreshL = 255) Tweak = Tweak(hue = 0, sat = 1, bright = 0, cont = 1, coring = true) UnDot = UnDot() [Field] EEDI2 = EEDI2() FieldDeinterlace = FieldDeinterlace() IVTC = Telecide(guide = 1) Decimate() nnedi3 = nnedi3(field = 1) QTGMC... = QTGMC(Preset = "$select:msg:Select a preset.;Draft;Ultra Fast;Super Fast;Very Fast;Faster;Fast;Medium;Slow;Slower;Very Slow;Placebo$") SangNom2 = SangNom2() SelectEven = SelectEven() SelectOdd = SelectOdd() TDeint = TDeint() vinverse2 = vinverse2() yadifmod2 = yadifmod2() [Resize] Hardware Encoder = # hardware encoder resizes Resize MT... = $select:BicubicResizeMT;BilinearResizeMT;BlackmanResizeMT;GaussResizeMT;Lanczos4ResizeMT;LanczosResizeMT;PointResizeMT;SincResizeMT;Spline16ResizeMT;Spline36ResizeMT;Spline64ResizeMT$(1280, 720, prefetch = 4) Resize... = $select:BicubicResize;BilinearResize;BlackmanResize;GaussResize;Lanczos4Resize;LanczosResize;PointResize;SincResize;Spline16Resize;Spline36Resize;Spline64Resize$(1280, 720) [Crop] Crop = Crop(0, 0, -0, -0) Hardware Encoder = # hardware encoder crops [Noise] FFT3DFilter = FFT3DFilter() FluxSmoothST = FluxSmoothST(temporal_threshold = 8, spatial_threshold = 8) FluxSmoothT = FluxSmoothT(temporal_threshold = 8) KNLMeansCL | Spatio-Temporal Light = KNLMeansCL(D = 1, A = 1, h = 2) KNLMeansCL | Spatio-Temporal Medium = KNLMeansCL(D = 1, A = 1, h = 4) KNLMeansCL | Spatio-Temporal Strong = KNLMeansCL(D = 1, A = 1, h = 8) mClean = mClean() RemoveGrain = RemoveGrain() SMDegrain = SMDegrain(tr = 2, thSAD = 250, contrasharp = false, refinemotion = true, lsb = false)
-
You can process 2 or more movies at same time. Or stop using single thread application to process video data feed to x264/5.
-
So sorry for my ignorance. Could you please enlighten me on how to get AviSynth script from Staxrip GUI?
I got the following info from the log file:
Code:--------------------------- AviSynth Script --------------------------- LoadPlugin("C:\Users\XXX\Music\StaxRip-x64-1.7.0.0-stable\Apps\Plugins\avs\L- SMASH-Works\LSMASHSource.dll") LoadPlugin("C:\Users\XXX\Music\StaxRip-x64-1.7.0.0-stable\Apps\Plugins\both \VSFilterMod\VSFilterMod.dll") LSMASHVideoSource("C:\Users\XXX\Links\D0 Folder\New folder\26\Series.E03.mp4", format = "YUV420P8") TextSubMod("C:\Users\XXX\Links\D0 Folder\New folder (3)\TVN_fw_isa.ass") -------------------------- Script Properties -------------------------- Source Frame Count : 107555 Source Frame Rate : 25.000000 Source Duration : 01:11:42.2000000 Target Frame Count : 107555 Target Frame Rate : 25.000000 Target Duration : 01:11:42.2000000 -------------- Video encoding using x264 0.150.2851 8-Bit -------------- C:\Users\XXX\Music\StaxRip-x64-1.7.0.0-stable\Apps\x264\x264.exe --bitrate 2276 --preset veryfast --output "C:\Users\XXX\Links\D0 Folder\New folder \26\Series.E03_temp\Series.E03 [Asia2tv.com] HD_out.h264" "C:\Users\XXX\Links \D0 Folder\New folder\26\Series.E03_temp\Series.E03 [Asia2tv.com] HD.avs" avs [info]: 1280x720p 0:0 @ 25/1 fps (cfr) x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 x264 [info]: profile High, level 3.1 x264 [info]: frame I:731 Avg QP:13.42 size: 71472 x264 [info]: frame P:45698 Avg QP:16.58 size: 18663 x264 [info]: frame B:61126 Avg QP:18.22 size: 5306 x264 [info]: consecutive B-frames: 18.8% 11.2% 15.0% 55.0% x264 [info]: mb I I16..4: 18.4% 20.7% 60.8% x264 [info]: mb P I16..4: 10.0% 7.2% 2.1% P16..4: 37.0% 16.7% 9.2% 0.0% 0.0% skip:17.9% x264 [info]: mb B I16..4: 1.8% 0.9% 0.1% B16..8: 23.1% 7.2% 0.7% direct:12.1% skip:54.1% L0:48.6% L1:41.6% BI: 9.8% x264 [info]: final ratefactor: 18.07 x264 [info]: 8x8 transform intra:35.5% inter:21.6% x264 [info]: coded y,uvDC,uvAC intra: 40.7% 68.9% 29.3% inter: 10.3% 28.4% 0.7% x264 [info]: i16 v,h,dc,p: 52% 25% 19% 4% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 28% 26% 1% 1% 2% 2% 2% 2% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 26% 17% 4% 5% 4% 4% 4% 3% x264 [info]: i8c dc,h,v,p: 55% 19% 22% 4% x264 [info]: Weighted P-Frames: Y:0.7% UV:0.3% x264 [info]: kb/s:2286.23 encoded 107555 frames, 112.70 fps, 2286.23 kb/s Start: 08:20:53 م End: 08:36:48 م Duration: 00:15:55
Code:Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L3.1 Format settings : CABAC / 1 Ref Frames Format, CABAC : Yes Format, RefFrames : 1 frame Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1 h 11 min Bit rate : 2 997 kb/s Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.130 Stream size : 1.51 GiB (95%) Writing library : x264 core 129 Encoded date : UTC 2017-06-21 21:48:58 Tagged date : UTC 2017-06-21 21:48:58
-
Your limitation is Avisynth - there is Multi-Thread Avisynth version but you must be prepared for many problems and limitations.
Similar Threads
-
Not full cpu usage on My pc
By mromagno in forum Software PlayingReplies: 5Last Post: 31st Jan 2018, 10:16 -
CPU, RAM or DVD speed
By hcanning in forum DVD RippingReplies: 9Last Post: 25th Oct 2017, 18:15 -
Getting some speed out of a 6 core FX CPU?
By bizzybody in forum Video ConversionReplies: 14Last Post: 24th Jan 2017, 22:04 -
Batch script for forcing subtitles on MKV files.
By hemstock in forum SubtitleReplies: 2Last Post: 9th Oct 2015, 15:40 -
Motherboard/CPU/RAM upgrade to 8 core AMD CPU
By redwudz in forum ComputerReplies: 26Last Post: 14th Dec 2013, 17:46