Fix an off-by-one error rendering animated canvas to svg.
Wait for ffmpeg to finish when rendering to mp4 and webm.
Move mp4 testing to behave, and add a test for the webm backend.