If no duration is set and a file is appended, the first in file N+1 will have the same timestamp as the last frame in file N. Fixes #2937.