tidied up the reencoding, needs a newish ffmpeg