Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customization of output filenames #89

Open
2 tasks
Breakthrough opened this issue Jul 7, 2022 · 0 comments
Open
2 tasks

Allow customization of output filenames #89

Breakthrough opened this issue Jul 7, 2022 · 0 comments
Labels
Milestone

Comments

@Breakthrough
Copy link
Owner

Breakthrough commented Jul 7, 2022

Currently, output filenames follow a fixed format: {VIDEO_NAME}.DSME_{EVENT_NUMBER}.avi

As brought up in #88, it would be useful to allow users to specify a custom template. Some of the template variables that might need to be supported are:

  • video name
  • event number
  • event start time / frame number
  • event end time / frame number

TODO:

  • Figure out a better syntax for specifying output templates - are braces good enough, e.g. {EVENT_NUMBER}?
    • PySceneDetect used $ which was a mistake since it's used for bash variables, braces seem well supported enough
  • How to deal with precision (both leading and trailing zeros)? Is a fixed number good enough for now?
    • Examples: For the event number, if the template is {EVENT_NUMBER}, allow an integral suffix, e.g. {EVENT_NUMBER_3}
    • For timecodes, e.g. {EVENT_START_TIME}, allow a suffix with the precision of seconds, e.g. {EVENT_START_TIME_3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant