OK here is my code for copying frames from one video to another: http://pastebin.com/ygXs4wAF Why isn't it copying? Only the header (With a different MP4 codec than the one in vid.mp4) is written, and its not the same header as the original file, but