Buying a longer cable does not extend the specification, which is why intermittent dropouts on long runs get blamed on the wrong component. An active extender regenerates the signal and lets a run cross a room or a building properly. Check whether the extender needs power at one end or both, and whether it passes the resolution you need. See extenders and converters, HDMI cables and cables and networking.