Audio and video metadata extraction