GitHub repository: raedle/mp4-h264-re-encode
Description: Pure re-encoding of an mp4-h264 video file with the web APIs as well as in-depth description of how it works.