First working h.264 encoder prototype