Simple video transcoder in C++