Improved the execution of the ffmpeg program.