Combining audio and video on-the-fly