output/main : fixed sleep time for files with weird frame durations.