For bug 829339 I may have to write code to tell if an .mp4 file is audio or video. If so, you might be able to use that here.