Dedicated GPU over CPU graphics for transcoding

I currently have a Plex server running on a Synology NAS, I use the DVR functionality to record over-the-air TV shows and it works very well although the resulting files are pretty large and in TS format.

I currently use a seperate PC running FFMPEG to convert them to smaller file sizes and while I know this is part of my problem I transode them using X265 to reduce their size. The PC I use has a Core i5 processor and no separate graphics card.

Would the transcode be quicker with a graphics card?

I have an old Nvidia GT520 (I think) with 1Gb of memory, if I was to use that would it help?

I won’t be spending significant money on a graphics card, I don’t have any need for it for any reason apart from this, so , is there something half decent, even second hand off Ebay that would make a significant impact on my transcode times?

I expect that I will have to tweak my FFMPEG command to take advantage of a dedicated GPU.

Thanks

Depending on the generation of this Core i5, it may already be able to transcode in hardware to H.265. You just need to enable this ability.

Then you won’t need an external GPU and an external GPU won’t be faster.

As I understand it, without getting too much into the details, a ā€˜better’ CPU or GPU would perform better and for graphic processing a GPU would be better than a CPU.

I accept that a Core I5 has a GPU but the Intel UHD Graphics 630 is at best middle of the road, a bit of a jack of all trades.

Is that not right?

It isn’t. This is about the QuickSync part of the GPU. It has not much to do with the abilities of the GPU in general. It is a specialized circuitry – solely for decoding and encoding video. Of course there also has been technical evolution in this part, so knowing to which generation your CPU belongs bears some importance.

Thank you very much, my knowledge is scant and I obviously had it all wrong.

The CPU is an i5-10400 so not too shabby but it does take roughly an hour to transcode a 1-2Gb file - I can record them quicker than I can transcode them!

The i5-10400 is from the Comet Lake generation. That should be decent enough to encode H.265 in hardware.

Which operating system are you using on that PC?

In any way: in order to get the Quicksync part of the CPU operational you need to

  • enable the integrated GPU in the BIOS
  • install the latest official Intel device drivers for the GPU
  • you may have to plug in a monitor instead of running the machine headless. (But there are ā€œdummy-plugsā€ which electrically simulate a monitor.)

If you run pure ffmpeg, I cannot help you how to enable the hardware transcoding. I only know that this should be possible (somehow).

It is using Windows 11 Home, it is a standard desktop with - with monitor.

I’ll look into the BIOS and drivers and I’ll have a tinker with FFMPEG.

Thank you for your help

If this is windows, you can try first with Handbrake before trying ffmpeg.
If you have fulfilled the prerequisites from above, you should see the marked encoders as options in the GUI:

(the ā€œNvidia NVencā€ options are there because the screenshot is from my machine, which has also an additional nVidia GPU)

I see those options in Handbrake and I’m running a 2Gb .TS file through it now, i does say 19 minutes remaining so we will see how large it is.

I’m sure I can find some good size/quality tweaks.

Thanks again

Something worth noting here…

QSV is still a little lacking in quality in comparison to software CPU encoding.

I have tested this many times over a range of different Gen products, and am still finding this to be true on my Core i7-11800H.

You will notice that the QSV Encode is a little softer, with slightly reduced detail on the face…

Original 24.9 Mbps x264 BluRay version:

CPU Encoded 2.25 Mbps 10Bit x265:

QSV Encoded 2.25 Mbps 10Bit x265:

However I do believe QSV is the way forwards for Plex hardware transcoding :+1:

I don’t think my over-the-air DVR is anywhere near the quality of a Bluray - but it is perfectly acceptable to me.

I was thinking recently about video quality. I vaguely remember Neill Armstrong landing on the moon, I remember seeing a man walking on the moon, I don’t remember watching a grainy picture on a maybe 16 or 18 inch screen. The quality of the picture didn’t diminish the event. Things have moved on now and I wouldn’t be so tolerant.

Did you get the images mixed up? The QSV one looks much closer to the source than CPU.

No, they’re in the correct order. Not sure what display you are looking at them on, but the 2 areas that show the differences the most, are his forehead, and the bricks on the wall to the right of his head…

Original: Noticeable film grain in the bricks…

CPU Encoded: Film grain still there, but very slightly softer…

QSV Encoded: Forehead has less detail, and the bricks are now significantly softer… No film grain…


I would agree that how much you notice will entirely depend on the bitrate chosen and the quality of the original source content, but the differences are indeed noticeable, and even more so on my 65" 4K Sony XH95 TV.

1 Like

Ah yes never mind me, I saw the same differences so I must have thought the images were in a different order.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.