fix end of chap without ffmpeg