Prepare to build codec