better h264 example and internal clean up