pub fn frame_to_time(frame_index: u64, fps: f64) -> f64
Convert a discrete frame index into seconds for a given FPS.