Fixed the ffmpeg script file generation callback