Nevertheless, I would still strongly recommend using Handbrake or something else that uses x264— that's the best H.264 encoder. x264 has good presets for various speeds/qualities, or I could help you optimize the settings for this type of content if you're interested.
Handbrake has a CLI in addition to the GUI, ffmpeg is another good CLI option.