modify stitching for new ffmpeg