User Story
As a developer using FrameStory,
I want the final frame's duration to have a fallback value
so that video descriptions contain complete timing metadata for all frames.
Background
The describe_frames method in frame_story/video_describer.py currently leaves the last frame's duration undefined when i+1 exceeds the times array length. This creates inconsistent output formats and risks downstream processing errors for applications relying on complete duration data. The loop in describe_frames calculates durations using times[i+1] - time without handling the terminal case.
Acceptance Criteria
User Story
As a developer using FrameStory,
I want the final frame's duration to have a fallback value
so that video descriptions contain complete timing metadata for all frames.
Background
The
describe_framesmethod inframe_story/video_describer.pycurrently leaves the last frame's duration undefined wheni+1exceeds thetimesarray length. This creates inconsistent output formats and risks downstream processing errors for applications relying on complete duration data. The loop indescribe_framescalculates durations usingtimes[i+1] - timewithout handling the terminal case.Acceptance Criteria
describe_framesinvideo_describer.pyto implement duration fallback for final frameVideoDescriberinitialization