Autofill video parameters based on history and file name
When a file is chosen in the open dialog, the parameters such as size, framerate and format should be remember for the next time you open the same file. If a file has not been opened before, the parameters should be guessed based on the file name and/or the directory path.
E.g. foreman.cif should be guessed to be in CIF size; foreman_cif_30fps should be guessed to be in CIF format and 30 frames per second; and so on...
Blueprint information
- Status:
- Started
- Approver:
- Stian Selnes
- Priority:
- Medium
- Drafter:
- Stian Selnes
- Direction:
- Needs approval
- Assignee:
- Stian Selnes
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Started
- Milestone target:
- 0.2.0
- Started by
- Stian Selnes
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
People use different naming conventions, so it would be nice if the patterns for guessing the video properties was customizable. One flexible solution is to read all the patterns from a config file. The format could be something like the XML below. The patterns must be listed the order should be processed, e.g. "qcif" before "cif", to avoid false mathces. Only the first match for each property is used. After a match, rest of the patterns are searched since you can get hit on one of the other properties.
<rules>
<rule type="fixed">
</rule>
<rule type="regex">
</rule>
<rule type="regex">
</rule>
</rules>