A question about cores and application utilizing them
Hello
I want to invest in an intel i7 system down the road because my intel i3 feels slow when encoding videos with ffmpeg. Depending on the chip and other factors on the i7, I could end up with either 4,6 or 8 cores. If I manage to get an i7 with 6 or 8 cores, is ffmpeg capable of using them all, or is ffmpeg compiled to use a maximum of 4. I asked this because I heard many application don't take advantage of the extra cores. I know some of you might have a system with six or eight cores. If you had use ffmpeg or hanbrake to encode your videos, did any of these two programs utilized the 6 or 8 cores. Thanks |
Hi
As far as I know there are no limitations for ffmpeg. You might be mixing "real" cores with "virtual" ones? In any case I have 4-cores CPUs since a few years, all with hyperthreading enabled therefore showing 8 vCPUs in the OS, and I don't remember ffmpeg not using any of the 8 vCPUs (and they all were used up to at least 80-90 when I was re-encoding videos). No clue about Handbrake, but I would tend to think that it behaves the same way, just because I cannot think about a reason why it should not. Pls. keep in mind that by having more CPUs you will increase as well the RAM usage => ideally you should have at least 1GB RAM for each CPU you have. Cheers! |
Quote:
|
Quote:
I was hoping if you or anyone with six or more cores can do a one minute encoding speed test and compare. Code:
ffmpeg -i inputfile.xxx -threads 4 -t 60 outoutfile.xxx Quote:
Thanks TobiSGD |
I have one of the better core i7's that simply rocks. The core i7 is pretty impressive. I'd suspect that ffmpeg can use all the cores but I have never tested it. I was using an old dual quad core xeon server for ripping and it was about 10 minutes on a dvd. I suspect most of that was the usb optical drive causing it to be slow. I do remember looking at top and they were all being used on the 8x.
Soon you can get a 74 core if you have the money. |
So, I looked at ffmpeg's documentation and found that if threading can be used is depending on which codec you intend to use. A short test showed that encoding in H.264 can be multi-threaded, while encoding using libxvid does not react to the thread option.
|
Quote:
:) Sort of on topic, I though the raspberry PI 2 was the fastest single board computer. I discovered the odroid-xu4 which is smaller in size has 8 cores, 2GB RAM, 2 USB 3.0 ports, 1 USB 2.0 port and 1 Gigabit ethernet. It's amazing how fast single board technology is getting. But I don't think the odroid-xu4 can match the same performance as an i7 w/8 cores. |
Quote:
To put it in perspective, the entire Odroid costs a fraction of a core i7 CPU. It would be unfair to compare them. |
The odroid-xu4 features a Samsung Exynos 5 CPU, which has a big.little configuration (4 Cortex-A7 and 4 Cortex-A15 cores), so it is not really an 8-core CPU, since you can't use all 8 cores concurrently. Also, these CPUs are in a different class than desktop CPUs and can't compete performance-wise with Intel's CPUs (which is fine, as they have a different purpose).
|
Quote:
|
All times are GMT -5. The time now is 08:52 PM. |