make ffmpeg reenterable