Solution to what?
Do you have an AMD card and the AMF encoder plugin installed? Do you have an Nvidia card that supports NVENC? Do you have an Intel CPU that supports QuickSync?
If the answers to all the above are "no" then x264 will be the only option you'll have.