The recommended container is MP4 with the H.264 Codec for video and AAC Codec for audio.
The video part of your file should have keyframes every 15-25 frames.
If you use Handbrake to encode your video files we have created a preset you can use. There is a preset for PC and Mac that you can find in the Re-encoding video files using Handbrake article.