remove avcodecs and copy moodledata across