Thanks for your reply Mary. Unfortunately I'm embedding videos from a site that is not automatically recognised by Moodle. I have found a solution however. It appears that the HTML tidy filter is causing this issue. Disabling this filter fixes the problem.
It may be worth listing this as a bug.