Specify frame per file filenames

Navigation:  Reference > MXF Wrapping >

Specify frame per file filenames

Previous pageReturn to chapter overviewNext page

It is assumed that there will be some numerical sequence in the  file naming. The format of the file names is defined in the second box for example frame0000.dpx to frame2317.dpx

In this case the file would be expressed as

frame%04d[0:2317].dpx

A filename format string can be broken down into 3 parts

1. The text that is the same in all filenames.

2. A part that start % and ends in 'd'  that defines the layout of the number ( for those familiar with the C programming language this is the same as in 'printf' statements

3. A section in square brackets [] that  defines the first and last number and the gap between the numbers.

A part that start % and ends in 'd' specifies the format of the numbering.

%d will give just the number so

0 is written 0

123 is written 123.

%02d will make sure that there are at least 2 digits so

0 is written 00

12 is written 12

123 is written 123.

 

%04d will make sure that there are at least 2 digits so

0 is written 0000

12 is written 0012

123 is written 0123.

%4d will make sure that each number uses at least 4 spaces

0 is written '    0'

12 is written '   12'

123 is written '  123'.

and so on.

A section in square brackets []  defines the first and last number and the gap between the numbers:

[0:1000] will give all the numbers from 0 to 1000.

[0:1000#10] will give every tenth number from 0 to 1000

Thus the format is:

[ <first number>:<last number>#<step>]