# "Interpretation Rules.txt"
# Adobe After Effects Automatic Footage Interpretation
#  
# lines beginning with "#" are comments
#
# basic format of a rule: {match requirements} = {set interpretation}
#
# + for each rule that matches, the interpretation is set; wild-cards ("*") allowed
#   on both sides; wildcard match matches anything, wildcard set sets nothing
# + multiple rules are allowed to match, later matches override earlier matches
# + all rules are scanned in order, one rule per line
# + rules are applied after the automatic setting of D1 pixel aspect and automatic
#	field separation from field-labeled files
#
# width, height, frame-rate, file-type, codec = 
# 	pixel aspect ratio/name, field order, conform frame-rate, alpha interp
#
# width & height are integer numbers
# frame-rate is a decimal number
# file-type is four characters in quotes (4c's)
# codec (applicable for QT & AVI only) is also 4c's
#
# to find out the file-type and/or codec 4c's for a specific type of footage,
#	opt-click (Mac) or alt-click (Windows) on the footage in the project window;
#	the 4c codes will appear in the last line of text by the thumbnail
#
# the pixel aspect ratio is a ratio of integers (e.g. 10/11)
#   optionally followed by a name for that ratio (e.g. 10/11/"My Aspect")
# the field order is a single character, (F=frame, U=upper field, or L=lower field)
# the conform frame-rate is a decimal number
# alpha interp: (I=ignore, S=straight, P=premul/black, W=premul/white)
#	alpha interp is ignored for footage without an alpha channel
#

# assume ATSC 704x480 in any format is D1 aspect
704, 480, 29.97, *, * = 648/720, *, *, *

# assume NTSC DV is D1 aspect, lower-field
720, 480, 29.97, "MooV", "dvc " = 648/720, L, *, *
720, 480, 29.97, "MooV", "dvpn" = 648/720, L, *, *
720, 480, 29.97, ".AVI", "dvsd" = 648/720, L, *, *

# Media 100 640 x 480 is square-pixel, upper-field first
640, 480, 29.97, "MooV", "dtmt" = 1/1, U, *, *

# Media 100 Finish 720 x 486 is D1-pixel-aspect, lower-field first
720, 486, 29.97, "MooV", "dtNT" = 648/720, L, *, *

# assume Matrox DigiSuite is D1-pixel-aspect, lower-field first
720, 486, 29.97, ".AVI", "MJPG" = 648/720, L, *, *

# assume Pinnacle Targa 3000 YUV is D1-pixel-aspect, lower-field first
720, 486, 29.97, ".AVI", "UYVY" = 648/720, L, *, *

# Media 100 Mac 720 x 486 is field-labeled by Media 100, and
# can be upper or lower depending on the hardware, but
# uncomment the next line to force D1, lower-field first
# 720, 486, 29.97, "MooV", "dtmt" = 648/720, L, *, *

# Avid 640x480 is square-pixel, upper-field first
640, 480, *, "MooV", "avr " = 1/1, U, *, *

# Electric Image writes straight alpha files
*, *, *, "EIDI", * = *, *, *, S

# only adds a custom pixel aspect ratio to the popup in the Comp Settings & Interpret Footage
# dialog boxes -- uncomment the next line to try it out
# 0, 0, 0, "0000", * = 10/11/"Custom Aspect", *, *, *