
So if you’re in a hurry you might prefer H.264 -) But for 1080p and even 1280p videos H.265 produces better results and smaller files. To give you an impression about encoding speed ( H.264 vs H.265): Using the same parameter just with the different encodings I get around 350-400 frames per second (fps) with H.265 and with H.264 I get around 800 fps. As you can see also Main 10 profile is supported if you want to use that one and of course H.264. VAProfileHEVCMain10 : VAEntrypointEncSliceįor all entries with a value of VAEntrypointEncSlice hardware encoding can be used and I’m using VAProfileHEVCMain (which is HEVC/H.265 Main profile). VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointVLD Vainfo: VA-API version: 1.10 (libva 2.10.0 ) vainfo: Driver version: Mesa Gallium driver 20.3.4 for AMD Radeon RX 5700 XT (NAVI10, DRM 3.40.0, 5.10.14-arch1-1, LLVM 11.0.1 ) vainfo: Supported profile and entrypoints I tried various video settings and compared again.įor the impatient here is what I came up with finally after playing around a while with various FFmpeg parameters:

On the left the original video and on the right the one with the H.265 encoding. So what I did to judge about the video quality was comparing two videos side by side with mpv. That said I’m by no means a video encoding expert and my main focus just was to keep the same “visual” quality when converting from the MPEG-2 streams in H.264 to H.265 and reduce the size of the original recording by about 50%+. Without expecting to much I played around a bit and the outcome was surprisingly good - and with way less power needed! So I knew that my AMD RX 5700XT GPU supports H.265 hardware encoding. This works quite well but uses quite some power. First I used my CPU AMD 3900X for this task. And of course it should be fast and maybe even power efficient.

I was wondering how to shrink these kind of videos without lowering the “visual” quality too much.

This is quite a lot if you want to archive your videos. So for an hour of video it could take easily around 6 GByte on disk. Most public TV channels (via satellite) in Germany that I’m interested in are using MPEG-2 streams with H.264 encoding with a bitrate of about 10000-16000 kb/s.
