View Full Version : Very high CPU temp when encoding with x264
eXtremeDevil
23rd September 2018, 15:58
Hi, sorry if this is the wrong section but since I think this is a x264 error I'm posting here.
I have always used DGAVCDecNV (DGIndexNV) for indexing my avc recordings for later encoding. For the encoding, I use MeGUI and a custom setting in x264 command line options:
--opencl --opencl-device 1
I have been working like that for some time now. As far a I know, I'm using my Nvidia card to do all the work.
I had to format my Windows recently, and today, when I started a new encoding, I found my CPU temp going to 100 Cº.
It looks like the CPU is doing the job rather than the GPU, right?
I tried to run the job with x264 CLI but it gave me an error about an Avisynth plugin not found, why is that?
Thanks in advance.
sneaker_ger
23rd September 2018, 16:17
x264 encoding is mostly done on the CPU even with open-cl enabled. If your CPU temp reaches 100°C it would point to inadequate cooling.
I tried to run the job with x264 CLI but it gave me an error about an Avisynth plugin not found, why is that?
1. The plugin is missing from your system
2. You have only 32 bit/64 bit version of the plugin installed but your software is opening AviSynth 64 bit/32 bit.
3. The plugin is missing a dependency
In the future post all logs/error messages/scripts as well as the hardware info.
eXtremeDevil
23rd September 2018, 16:25
OK, I'll try those fixes, but what about the temperature?
EDIT
CLI works now, thanks for that! But CPU temp still goes up with that method...
sneaker_ger
23rd September 2018, 16:31
Fix your cooling/hardware. It's not an x264 problem.
eXtremeDevil
23rd September 2018, 16:36
No, what I mean is, if idle my CPU is on 40-50º, but when enconding it goes up to 100º. It is weird, even more if I'm using my GPU not my CPU to encode, right?
Maybe an OpenCL device issue? I tried 1 and 2 and the results were the same...
sneaker_ger
23rd September 2018, 16:43
Like I said: even with opencl enabled most of the work x264 does is done on the CPU. Only a small part is handed to the GPU. So it is totally normal for CPU temperature to increase. If your CPU hits 100°C it means your cooling isn't working as it should. It could be inadequately designed (cheap laptop), the heat paste not applied correctly, the fan is broken/not attached, too much dust, or you have too much overclocking.
Maybe an OpenCL device issue? I tried 1 and 2 and the results were the same...
You still haven't posted any logs at all. No one here could tell if OpenCL is working in the first place. Either way your CPU shouldn't hit 100°C.
eXtremeDevil
23rd September 2018, 16:49
I will clean my cooler and post back, thanks.
eXtremeDevil
23rd September 2018, 20:16
As I suspected, the cooler was almost clean. The thermic paste was dry, though. I changed it and cleaned the cooler anyway. Now the temp is 80~ when encoding. Is it normal? I just started, it may go up to 100 again... also, the temp here in my city is 35 right now.
Are those normal values? May the temp lecture be wrong?
sneaker_ger
23rd September 2018, 20:27
35°C ambient temp is certainly high. Depending on your hardware - which you still haven't told us anything about - 80°C might be perfectly normal.
eXtremeDevil
23rd September 2018, 20:29
I have an i7 4790K and a MSI Gaming 3 Z97 motherboard. Also, Nvidia GTX 970. Cores are swinging from 79 to 88 now...
EDIT
Looks like it is oscillating between 80 and 90 for a while now.
sneaker_ger
23rd September 2018, 20:55
I'd say it's still a barely acceptable temp. Not good but also not alarming. Maybe the heat paste still isn't applied optimally or it's of low quality? Are you using the stock cooler? How hot does it get if you use x265?
eXtremeDevil
23rd September 2018, 22:04
Funny, if I add '--threads 4' to the cli command, the temp is 15º~ lower. My CPU has 4 threads right? or is it 8? In any case, the time of the encode is the same.
EDIT
Never mind, I do have 8 threads, and with 4 the time is a bit more.
sneaker_ger
23rd September 2018, 22:09
i7-4790K has 4 physical cores + 4 virtual ones (hyperthreading). x264 can be up to 20% faster with hyperthreading. If you get exactly the same fps with --threads 4 (instead of default [sum of physical+virtual cores] * 1.5) you may be bottlenecked somehow. Compare CPU utilization in task manager in addition to fps difference. (Again: you haven't really posted anything about the source, script or settings.)
Indeed, without using hyperthreading/with less threads the temps should be lower. So that's expected.
eXtremeDevil
23rd September 2018, 22:16
Settings:
--preset veryslow --crf 18.5 --deblock -1:0 --keyint 25 --min-keyint 13 --ref 9 --no-dct-decimate --no-fast-pskip --opencl --opencl-device 1
Script:
DGSource("G:\SNL\43x07.dgi", crop_t=0,crop_b=0,crop_l=4,crop_r=4,resize_w=1280,resize_h=720,deinterlace=1)
Source:
Video
ID : 101 (0x65)
Menu ID : 4034 (0xFC2)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : 27
Duration : 41 min 46 s
Bit rate : 5 947 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Separated fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.115
Stream size : 1.74 GiB (92%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Blue_MiSfit
28th September 2018, 05:48
x264 will push your CPU for sure. It's not the software's fault - x264 is widely used across the broadcast / streaming industry for H.264 encoding on many tens of thousands of servers all over the world.
Sounds like your cooler is not up to the task. However, Intel CPUs can take the heat. My i7-7700k gets HOT when encoding, even with a small all-in-one watercooler at stock speeds. It doesn't throttle until near 100c.
What cooler are you using?
eXtremeDevil
29th September 2018, 22:56
Raijintek Themis CPU Cooler (Product number: 0P105255)
https://www.raijintek.com/en/products_detail.php?ProductID=3
Blue_MiSfit
29th September 2018, 23:04
Looks a bit sketchy to me, no mention of thermal dissipation capabilities on the spec sheet...
Maybe your fan isn't moving enough air
Maybe ambient air temperature is high
Maybe the fins are dirty
Maybe there's not enough airflow in the rest of your case
There could be any number of issues.
Either way, x264 is definitely not the problem.
eXtremeDevil
30th September 2018, 11:33
OK, thanks!
AMED
30th September 2018, 20:31
Maybe have a quick look at your CPU fan profile in your BIOS. You may need to set the desired CPU temp lower so the fan speeds up a little earlier.
eXtremeDevil
1st October 2018, 07:40
I'll try that, thanks!
Forteen88
2nd October 2018, 08:46
I have an i7 4790KLook at reviews of that CPU, and compare what ambient temp they have.
ShogoXT
2nd October 2018, 12:25
Yeah that is to be expected. I had to stop using x264 on OBS because of the heat. At least for the summer. Mine being a Ryzen 1700 @3.8.
I even changed cases and changed all my system fans.
What a lot of people don't realize is you can have a decently reviewed cooler but not realize it has a tdp limit. You can have mega fans on it, but if the heatsink can't pull from the CPU quick enough, then it will begin to throttle. Your cooler has 3 8mm heatpipes. 8mm is nice but only 3 so I'm not sure how effective it is. I have a scythe Mugen 5 at the moment,but I wish i had the fuma instead.
Look for reviews of CPU coolers that have 150+ watt test benches.
eXtremeDevil
3rd October 2018, 07:55
OK, thanks for all the info guys. I'll look further in cooler infos :)
Groucho2004
3rd October 2018, 15:20
Raijintek Themis CPU Cooler (Product number: 0P105255)
https://www.raijintek.com/en/products_detail.php?ProductID=3
Here (https://www.techpowerup.com/reviews/Raijintek/Themis/6.html) are test results from TechPowerUp for your cooler. The CPU they used for testing is the slower (and cooler) i7-4770K. Ambient temp is about 23 degrees Celsius.
The AIDA64 FPU test approximately reflects the power that x264 draws (yes, I checked that with my i5-2500K :)). Taking into account your more powerful CPU and extreme ambient temperature it's not hard to see how you reach 80 - 90 degrees Celsius.
If you want your CPU to last long you should go for water cooling, BeQuiet Dark Rock Pro 3/4, Noctua NH-D15 or similar.
eXtremeDevil
4th October 2018, 08:52
Thanks for the tip and the clarification, probably for my next computer I'll buy water cooling :)
sneaker_ger
4th October 2018, 15:27
Hey, it's working, isn't it? Just don't look at the temperature. ;)
Emulgator
5th October 2018, 08:45
And finally, the thermal compound used can make a big difference.
After 2..3 years all my systems (2 towers, 6 laptops over time) began to suffer from hardened stock thermal compound, throttling setting in sooner and sooner. Besides the necessary heatsink fin cleaning I removed that mostly white stuff (Dell had silverish stuff) and tried conductonaut on 3 systems (Indium/Gallium liquid)
-> Expensive, awesome, coolest ever, but cannot be used with aluminium heatsinks, destroys them by making an alloy.
After some months I found by accident (CPU upgrade) that conductonaut even made cold alloy with the sink-side copper heatspreader, the remnants behaving chippish and leaving scars... I had to scratch/grind/polish that off.
Back to Kryonaut, (seems to be very fine silver in a sticky grease), sacrificing some 2..3°C, happy camper now.
The main encoding laptop now runs x264 on a i7-4960X slightly OC @ 3,8Ghz, 6 cores give +86..+91°C, no throttling.
eXtremeDevil
9th October 2018, 11:06
I think my thermal compound is high quality (can't remember the brand now), and I also use special liquid to clear the surface before its application.
Emulgator
9th October 2018, 12:41
First close to +100°C, after cleaning and compound changing now +80°C:
As sneaker_ger said, I would call your results to be expected and normal then, all is well.
eXtremeDevil
9th October 2018, 13:36
:thanks:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.