Creating video only after last file is ready and fixed ffmpeg scaling error