Autofill video parameters based on history and file name

Registered by Stian Selnes

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:
milestone icon 0.2.0
Started by
Stian Selnes

Related branches

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">
                <pattern>cif</pattern>
                <width>352</width>
                <height>288</height>
        </rule>
        <rule type="regex">
                <pattern>\d+x\d?+</pattern>
                <width>1</width>
                <height>2</height>
        </rule>
        <rule type="regex">
                <pattern>\d+fps</pattern>
                <framerate>1</width>
        </rule>
</rules>

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.