High-Bitrate AAC for audio and h264 for video in an MKV container, with ASS subtitles if required, are the stuff dreams are made of.