I personally use Open Broadcaster Software to record footage directly to my PC and not online.
If you're willing to take some time looking into encoding settings, it will probably be the best free option. It does have a few minor annoyances and caveats, but it's pretty decent at what it does.