Create the codec context from the demuxer, so that it can fill context data for the decoder and recorder.