Implemented "time padding".

This should prevent the issues where videos would start a few seconds late and end a few seconds early.