How to use quick sync and best encoder settings for Haswell

Share with other users your experience in using MediaCoder.
Post Reply
Posts: 14
Joined: Mon Mar 17, 2014 9:30 am

How to use quick sync and best encoder settings for Haswell

Post by Valagard » Tue Mar 18, 2014 12:22 pm

So I spent the last two weeks trying to figure out why I couldn't get quick sync to work, every time I tried, it would say I "Didn't have a GPU" or when I selected it manually, it would refuse to encode

Anyways, I figured out how to get Quick sync working with my Haswell, and also best settings possible

First, you have to make sure Quick Sync is working, if you can't install the Intel GPU drivers, quick sync is not working

Second, you need to set up it up like this


You have to turn off AUTO under encoder, manually select Intel Encoder, and then GPU will check itself, if you have it on auto, and try to just tick GPU, it will say it can't find a GPU to encode with. Again, click off auto, then click Intel Encoder, and if quick sync is enabled it should go on

Second, and I can't stress this enough, the reason everyone can't encode files even if they do this, is cause use D3D is turned on to either DX9 or DX11. This ONLY works if you have just a intel GPU in your computer and NO secondary GPU, if you have a secondary GPU, it will always fail to encode. Set this to disabled

Now comes settings, I am for best compression while keeping quality, so I set GOP to 500, if you're encoding videos for media devices, set GOP to 250. GOP 500 also for some reason looks the best, though 250 is a great midpoint between seeking and video quality. Why this happens I dunno, but setting a GOP of like 60-100 looks incredibly worse than a GOP of 500

Now, you would think having 8 ref frames would look better than having 3 ref frames and LA BRC set to 100, but you're wrong, drastically wrong. Not only does 8 ref frames look far, and I mean far worse, but it actually takes 28% longer to encode than just using 3 ref frames and LA BRC set to 100.

*Update!* I have since found out ages later through testing, that having OpenCL is causing the issue with QuickSync and being unable to go any higher than 8 ref frames, with OpenCL turned off I can now do 8 Ref frames with LA BRC set to 100, and the encodes look phenomenal.

Why not set 8 ref frames and LA BRC to 100 then? Cause as of right now, if you try to set higher than 3 ref frames while having LA BRC set to ANY amount, for some reason it causes the encoder to crash and stop working. I hope future versions allow you to set higher ref frames while keeping LA BRC on, but as of right now it doesn't work

Even with that said, 3 ref frames and LA BRC set to 100 looks vastly better than 8 Ref frames and LA BRC turned off, and like I said, 3 ref frames and LA BRC set to 100 encodes vastly faster, while looking vastly better

Anyways, I hope this helps clear up the confusion I am seeing all over these forums, and why people can't get Quick Sync to work even if its enabled in their system, took me 5-6 days of digging around tech documents and finding out how Quick Sync worked exactly, plus about a dozen hours playing with Media coder settings to figure out the best ones.

Enjoy everyone!

*EDIT* QuickSync is known to not work/turn on unless its been activated by having a monitor turned on, even if its not connected. Is an example of how you do this, in this case, you make a 3rd monitor in my case by clicking detect display, then setting up as shown. This turns on QuickSync and allows any other programs on the computer to use it. intelHD needs to be actively used by a monitor in order for the computer to use QuickSync, why I dunno.

You don't need to have a monitor hooked up, but this is one way to do it.

Posts: 5
Joined: Mon Jul 30, 2018 3:06 am

Re: How to use quick sync and best encoder settings for Haswell

Post by dcol » Fri Nov 02, 2018 8:20 am

All these settings work except the 'UseD3D'. For me decodes crash when disabled and works when I select 'Direct3D 11'
By the way I do have another video card, GT1050TI, which must have an issue because I cannot get a good encode with it so I use Quick Sync.

Posts: 3
Joined: Sat Jul 04, 2020 4:20 pm

Re: How to use quick sync and best encoder settings for Haswell

Post by PeterC » Fri Jul 10, 2020 5:14 pm

Hello guys.
I'm wondering if this settings are worthy to use it.
I have i7-4770k and GTX 780.
With those settings I gets encoding speeds of 7 FPS.
If I use 2-pass encoding I gets unbeatable quality with total encoding speeds of 24-25 FPS from movie with 29.7 FPS, it’s about 3.5 time faster.
If I need to encode fast with compromising quality I use CUDA encoder with encoding speed of 50-180 FPS depending on video resolution 720p or 1080p and bitrate, obviously you must use slightly higher bitrate to have compromised quality.
As I said earlier 2-pass encoding brings unbeatable quality, for example for 2-pass encoding I use x264 encoder, 4000 bitrate for 1920x1080 video resolution, Profile High, level 4.1 (going above isn’t improving quality but slowing down encoding speed - pointless of using), presets as Slower for best quality, going below isn’t improving quality but slowing down encoding speed), tuned for Film.
Enjoy your encodings...

Post Reply