Extract the extension from the video file when getting time, as ffmpeg has issues on some videos when using the wrong extension.