If by firmware video you mean the 'Xperia HD Landscapes' video, it was encoded at 854x480 resolution in baseline profile with a good bitrate.
In my opinion, the best settings are the same used in the landscape video.
Main profile skips frames at a high bitrate. So don't use the main profile...