Settings -> Output
Also be aware that video encoding takes a LOT of processing power! If you can offload it to a compatible GPU that is designed to do exactly that, DO!
Depending on what you're doing and how much you care about it, it might be worth buying one.