A walk through what a video file actually is — from sampling and compression to the H.264 codec and the MP4 container — as the foundation for building a custom iOS video player.