Handbrake x264 encodes .m4v/.mp4 not accepted in iTunes
Handbrake keeps individual logs for every encode. You can find them in ~/Library/Application Support/HandBrake/EncodeLogs.

If an encode fails, it should contain any relevant information on why it failed.