Besides Handbrake, you can always try:
If you desire a frontend for the command line, you can always try MediaCoder
http://www.mediacoderhq.com/
No safety, you CAN set combinations of parameters that don't encode correctly, but if you know what parameters you want, you can set them through...