H.264 encoder | decoder based on x264 lib