Skip to content

Minor inconsistencies in frame numbers #242

@eksperimental

Description

@eksperimental

Bug/Issue Description:
There is a minor inconsistency in the reports.
Comparing the Scenes.csv file and the stats.csv :

Start and End of scenes

In Scenes.csv I think the scenes are expressed wrong IMO.
While the Start frame is correct, the end frame is belongs to the next scene.
Right now we are saying.

start: 0, end: 20;
start: 20, end: 35;
start: 35, end: 40;

While it should be

start: 0, end: 19;
start: 20, end: 34;
start: 35, end: 40;

number of frames, lengths and timestamps should be corrected accordingly according for each entry.

Zero-based vs One-based frame numbers

Another thing is that Scenes.csv considers the first frame to be number 1, while Stats.csv considers it to be number 0.
Personally I think having the first frame to be number 1 is a good human friendly choice (against what ffmpeg does, which is zero-based). So this should be unified, not only in the output but also in the functions which I haven't looked at.

UPDATE: Stats.cvs for detect-content is skipping frame no. 0, that is why I thought it was one-based.

Required Information:
Provide the following information to assist with reporting the bug:

  1. Provide a full copy of the command line options you are using, for example:
    scenedetect --input "movie.mp4" --stats movie.stats.csv detect-content list-scenes

Thank you for this piece of software, It is really awesome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions