I faced similar issue not exactly the same one, when I removed manual registering of codec from the code it worked for me.