# ----------------------------------------------------------------------------------------------------------------
#  Processing for object representations
# ----------------------------------------------------------------------------------------------------------------

#
# If you want original media fetched from URLs to *NOT* be stored in CA, but rather
# for CA to directly reference the media via the URL used to fetch it set use_external_url_when_available to 1
# 
# If you have no idea what this means then leave this set to zero
#
use_external_url_when_available = 0

#
# Filesize (in bytes) above which media should be queued for background processing
# Files smaller than the threshold will be processed at the time of upload, so you should set this to a 
# small enough value that your server has a shot at processing the media in near-realtime. A safe bet is
# 500,000 bytes (eg. 0.5 megabytes), but you may need to go lower (or higher). 
#
# Note that you can override this setting for specific media types and versions below if you wish. Also keep in
# mind a few other fun facts:
#
#	1. If the queue_enabled setting in global.conf is set to zero then no background processing will take place, no matter what you set here.
#	2. The default setting for queue_enabled is zero, so make sure you change it if you want background processing to happen.
#	3. Versions that have no QUEUE_WHEN_FILE_LARGER_THAN are never queued for background processing; versions with a QUEUE_WHEN_FILE_LARGER_THAN settings of zero are similarly never queued (absence and zero are one and the same, config-wise).
#	4. Some types of media are setup by default to never queue no matter the "queue_threshold_in_bytes" and "queue_enabled" settings. This includes media types for much little or no processing is done, including SWF, XML and MSWord.
#
queue_threshold_in_bytes = 500000

ca_object_representations = {
	MEDIA_METADATA = "media_metadata",
	MEDIA_CONTENT = "media_content", 
				
	MEDIA_ACCEPT = {
		image/jpeg 						= image,
		image/gif 						= image,
		image/png						= image,
		image/tiff						= image,
		image/x-dcraw					= image,
		image/x-psd						= image,
		image/x-dpx						= dpx_image,
		image/x-exr						= image,
		image/jp2						= image,
		image/x-adobe-dng				= image,
		image/x-canon-cr2				= image,
		image/x-canon-crw				= image,
		image/x-sony-arw				= image,
		image/x-olympus-orf				= image,
		image/x-pentax-pef				= image,
		image/x-epson-erf				= image,
		image/x-nikon-nef				= image,
		image/x-sony-sr2				= image,
		image/x-sony-srf				= image,
		image/x-sigma-x3f				= image,
		
		application/pdf					= pdf,
		application/postscript 			= pdf,
		
		audio/x-realaudio				= realmedia,
		video/quicktime					= quicktime,
		video/x-ms-asf					= windowsmedia,
		video/x-ms-wmv					= windowsmedia,
		video/x-flv						= flv,
		application/x-shockwave-flash 	= swf,
		video/mpeg						= mpeg,
		video/mp4						= mpeg4,
		audio/ogg						= ogg,
		video/ogg							= ogv,
		
		audio/mpeg						= mp3,
		audio/x-aiff					= aiff,
		audio/mp4						= aiff,
		audio/x-wav						= aiff,
		
		application/msword				= msword,
		text/xml						= xml,
		
		x-world/x-qtvr				= quicktimevr
	},
	
	MEDIA_TYPES = {
		image = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Image is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {	
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images,
					USE_EXTERNAL_URL_WHEN_AVAILABLE = <use_external_url_when_available>
				},
				tilepic 	= {
					RULE = rule_tilepic_image, VOLUME = tilepics, 
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = tilepic
		},
		dpx_image = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Image is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {	
				smallicon 		= {
					RULE = rule_smallicon_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_dpx_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>0
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images,
					USE_EXTERNAL_URL_WHEN_AVAILABLE = <use_external_url_when_available>
				},
				tilepic 	= {
					RULE = rule_tilepic_dpx_image, VOLUME = tilepics, 
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = tilepic
		},
		pdf = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Document is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN 	= <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN 	= <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images,
					USE_EXTERNAL_URL_WHEN_AVAILABLE = <use_external_url_when_available>
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		msword = {
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images,
					USE_EXTERNAL_URL_WHEN_AVAILABLE = <use_external_url_when_available>
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original,
			MEDIA_VIEW_WINDOW_WIDTH = 775,
			MEDIA_VIEW_WINDOW_HEIGHT = 575
		},
		xml = {
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images,
					USE_EXTERNAL_URL_WHEN_AVAILABLE = <use_external_url_when_available>
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original,
			MEDIA_VIEW_WINDOW_WIDTH = 775,
			MEDIA_VIEW_WINDOW_HEIGHT = 575
		},
		flv = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Video is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {	
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				h264_hi 	= {
					RULE = rule_video_to_h264_hi, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				iphone 	= {
					RULE = rule_video_to_iphone, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = flv
				}
			}
			MEDIA_VIEW_DEFAULT_VERSION = h264_hi
		},
		realmedia = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Video is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {	
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				h264_hi 	= {
					RULE = rule_video_to_h264_hi, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				iphone 	= {
					RULE = rule_video_to_iphone, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = realmedia
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = h264_hi
		},
		windowsmedia = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Video is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				h264_hi 	= {
					RULE = rule_video_to_h264_hi, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				iphone 	= {
					RULE = rule_video_to_iphone, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = windowsmedia
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = h264_hi
		},
		mpeg = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Media is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {	
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				h264_hi 	= {
					RULE = rule_video_to_h264_hi, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				iphone 	= {
					RULE = rule_video_to_iphone, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = h264_hi
		},
		quicktime = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Media is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				h264_hi 	= {
					RULE = rule_video_to_h264_hi, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				# EXAMPLE OF HOW TO ENCODE Ogg Theora video
				#ogg 	= {
				#	RULE = rule_video_to_ogg_theora, VOLUME = quicktime,
				#	QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				#},
				iphone 	= {
					RULE = rule_video_to_iphone, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = quicktime
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = h264_hi
		},
		ogv = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Media is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				h264_hi 	= {
					RULE = rule_video_to_h264_hi, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				iphone 	= {
					RULE = rule_video_to_iphone, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = quicktime
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = h264_hi
		},
		quicktimevr = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Media is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = quicktime
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		mpeg4 = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Media is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				#
				# Uncomment this if you want to generate a an h.264 derivative for your MPEG-4's
				# If your MPEG-4's are already h.264 compressed (they probably are) and ready
				# for web-viewing then generating this version is probably a waste of processor
				# time and disk space. Not to mention that recompressed MPEG-4's usually look like mud.
				#
				#h264_hi 	= {
				#	RULE = rule_video_to_h264_hi, VOLUME = quicktime,
				#	QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				#},
				iphone 	= {
					RULE = rule_video_to_iphone, VOLUME = quicktime,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = quicktime
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		swf = {
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = swf
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		mp3 = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Audio is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {	
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				# This is not a mistake - we re-encode to ensure a uniform bit-rate for all MP3 streams
				mp3 	= {
					RULE = rule_to_mp3, VOLUME = mp3,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				# EXAMPLE OF HOW TO ENCODE Ogg Vorbis audio
				#ogg = {
				#	RULE = rule_to_ogg_vorbis, VOLUME = mp3,
				#	QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				#},
				original 	= {
					RULE = rule_video, VOLUME = mp3
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = mp3
		},
		aiff = {
			QUEUE = mediaproc, 
			QUEUED_MESSAGE =  _("Audio is being processed"),
			QUEUE_USING_VERSION = original,
			VERSIONS = {
				smallicon 		= {
					RULE = rule_smallicon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				icon 		= {
					RULE = rule_icon_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				tiny 		= {
					RULE = rule_tiny_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},	
				thumbnail = {
					RULE = rule_thumbnail_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview = {
					RULE = rule_preview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview160 = {
					RULE = rule_preview160_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				preview170 = {
					RULE = rule_preview170_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				widepreview = {
					RULE = rule_widepreview_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				medium 	= {
					RULE = rule_medium_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mediumlarge = {
					RULE = rule_mediumlarge_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				small 	= {
					RULE = rule_small_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				mp3 	= {
					RULE = rule_to_mp3, VOLUME = mp3,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				# EXAMPLE OF HOW TO ENCODE Ogg Vorbis audio
				#ogg = {
				#	RULE = rule_to_ogg_vorbis, VOLUME = mp3,
				#	QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				#},
				large 	= {
					RULE = rule_large_image, VOLUME = images,
					QUEUE_WHEN_FILE_LARGER_THAN = <queue_threshold_in_bytes>
				},
				original 	= {
					RULE = rule_video, VOLUME = mp3
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = mp3
		}
	},
	MEDIA_TRANSFORMATION_RULES = {
		# ---------------------------------------------------------
		# Image rules
		# ---------------------------------------------------------
		rule_smallicon_image = {
			SCALE = {
				width = 32, height = 32, mode = fill_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_icon_image = {
			SCALE = {
				width = 72, height = 72, mode = fill_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_tiny_image = {
			SCALE = {
				width = 72, height = 72, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_thumbnail_image = {
			SCALE = {
				width = 141, height = 1000, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_preview160_image = {
			SCALE = {
				width = 164, height = 246, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_preview170_image = {
			SCALE = {
				width = 170, height = 170, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_widepreview_image = {
			SCALE = {
				width = 200, height = 120, mode = fill_box, crop_from = center, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_preview_image = {
			SCALE = {
				width = 180, height = 180, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_small_image = {
			SCALE = {
				width = 243, height = 243, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_medium_image = {
			SCALE = {
				width = 500, height = 500, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_mediumlarge_image = {
			SCALE = {
				width = 580, height = 450, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_large_image = {
			SCALE = {
				width = 800, height = 500, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_original_image = {},
		rule_tilepic_image = {
			SET = {quality = 40, tile_mimetype = image/jpeg, format = image/tilepic}
		},
		# ---------------------------------------------------------
		# Image rules (DPX format only)
		# ---------------------------------------------------------
		rule_smallicon_dpx_image = {
			SCALE = {
				width = 32, height = 32, mode = fill_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_icon_dpx_image = {
			SCALE = {
				width = 72, height = 72, mode = fill_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_tiny_dpx_image = {
			SCALE = {
				width = 72, height = 72, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_thumbnail_dpx_image = {
			SCALE = {
				width = 141, height = 1000, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_preview160_dpx_image = {
			SCALE = {
				width = 164, height = 246, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_preview170_dpx_image = {
			SCALE = {
				width = 170, height = 170, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_widepreview_dpx_image = {
			SCALE = {
				width = 200, height = 120, mode = fill_box, crop_from = center, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_preview_dpx_image = {
			SCALE = {
				width = 180, height = 180, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_small_dpx_image = {
			SCALE = {
				width = 243, height = 243, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_medium_dpx_image = {
			SCALE = {
				width = 500, height = 500, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_mediumlarge_dpx_image = {
			SCALE = {
				width = 580, height = 450, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_large_dpx_image = {
			SCALE = {
				width = 800, height = 500, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		rule_tilepic_dpx_image = {
			SET = {quality = 40, tile_mimetype = image/jpeg, format = image/tilepic, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		# ---------------------------------------------------------
		# Video rules
		# ---------------------------------------------------------
		rule_video = {},
		#
		# For your own sanity use ffmpeg presets for encoding settings
		# More info on presets is here: http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/
		# 
		rule_video_to_h264_hi = {
			SET = {
				format = video/mpeg,
				vpre = medium
			}
		},
		rule_video_to_iphone = {
			SET = {
				format = video/mpeg,
				command = "-s 640x480 -y -strict experimental -acodec libfaac -ab 64k -ac 1 -ar 44100 -vcodec libx264 -vpre medium -vpre ipod640 -r 15 -g 75 -b 175k -threads 2 -async 1"
			}
		},
		# Rule used to encode video as Ogg Theora; you'll have to actually add versions using this rule to get Ogg files actually encoded
		rule_video_to_ogg_theora = {
			SET = {
				format = video/ogg,
				command = " -acodec libvorbis -vcodec libtheora -ab 128k -ar 44100"
			}
		},
		# ---------------------------------------------------------
		# Audio rules
		# ---------------------------------------------------------
		rule_to_mp3 = {
			SET = {bitrate = 192000, format = audio/mpeg, channels = 1, sample_frequency = 44100}
		},
		# Rule used to encode audio as Ogg Vorbis; you'll have to actually add versions using this rule to get Ogg files actually encoded
		rule_to_ogg_vorbis = {
			SET = {bitrate = 192000, format = audio/ogg, channels = 1, sample_frequency = 44100}
		}
		# ---------------------------------------------------------
	}
}
# ----------------------------------------------------------------------------------------------------------------
#  Processing for object representation multifiles
# ----------------------------------------------------------------------------------------------------------------
ca_object_representation_multifiles = {
	MEDIA_METADATA = "media_metadata",
	MEDIA_CONTENT = "media_content", 
				
	MEDIA_ACCEPT = {
		image/jpeg 						= image,
		image/gif 						= image,
		image/png						= image,
		image/tiff						= image,
		image/x-dcraw					= image,
		image/x-psd						= image,
		image/x-dpx						= dpx_image,
		image/x-exr						= image,
		image/jp2						= image,
		image/x-adobe-dng				= image,
		image/x-canon-cr2				= image,
		image/x-canon-crw				= image,
		image/x-sony-arw				= image,
		image/x-olympus-orf				= image,
		image/x-pentax-pef				= image,
		image/x-epson-erf				= image,
		image/x-nikon-nef				= image,
		image/x-sony-sr2				= image,
		image/x-sony-srf				= image,
		image/x-sigma-x3f				= image,
		
		application/pdf					= pdf,
		application/postscript 			= pdf,
		
		audio/x-realaudio				= realmedia,
		video/quicktime					= quicktime,
		video/x-ms-asf					= windowsmedia,
		video/x-ms-wmv					= windowsmedia,
		video/x-flv						= flv,
		application/x-shockwave-flash 	= swf,
		video/mpeg						= mpeg,
		video/ogg							= ogv,
		audio/ogg						= ogg,
		
		audio/mpeg						= mp3,
		audio/x-aiff					= aiff,
		audio/mp4						= aiff,
		audio/x-wav						= aiff,
		
		application/msword				= msword,
		text/xml						= xml
	},
	
	MEDIA_TYPES = {
		image = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = tilepic
		},
		dpx_image = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_dpx_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = tilepic
		},
		pdf = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		msword = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original,
			MEDIA_VIEW_WINDOW_WIDTH = 775,
			MEDIA_VIEW_WINDOW_HEIGHT = 575
		},
		xml = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original,
			MEDIA_VIEW_WINDOW_WIDTH = 775,
			MEDIA_VIEW_WINDOW_HEIGHT = 575
		},
		flv = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = flv
				}
			}
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		realmedia = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = realmedia
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		windowsmedia = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = windowsmedia
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		mpeg = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		quicktime = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = quicktime
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		swf = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = swf
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		mp3 = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = mp3
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		aiff = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				page_preview = {
					RULE = rule_page_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = mp3
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		}
	},
	MEDIA_TRANSFORMATION_RULES = {
		# ---------------------------------------------------------
		# Image rules
		# ---------------------------------------------------------
		rule_preview_image = {
			SCALE = {
				width = 180, height = 180, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_large_preview_image = {
			SCALE = {
				width = 250, height = 250, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_page_preview_image = {
			SCALE = {
				width = 2000, height = 2000, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_original_image = {},
		# ---------------------------------------------------------
		# Image rules (DPX format only)
		# ---------------------------------------------------------
		rule_preview_dpx_image = {
			SCALE = {
				width = 180, height = 180, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		# ---------------------------------------------------------
		rule_large_preview_dpx_image = {
			SCALE = {
				width = 250, height = 250, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg, gamma = 1.7, reference-black = 6080, reference-white = 43840}
		},
		# ---------------------------------------------------------
	}	
}
# ----------------------------------------------------------------------------------------------------------------
#  Processing for icons (used in ca_list_items, ca_editor_uis and ca_editor_ui_screens)
# ----------------------------------------------------------------------------------------------------------------
ca_icons = {
	MEDIA_ACCEPT = {
		image/jpeg 						= icon,
		image/gif 						= icon,
		image/png						= icon,
		image/tiff						= icon,
		image/x-psd						= icon,
		image/x-exr						= icon,
		image/jp2						= icon,
		image/x-adobe-dng				= icon
	},
	
	MEDIA_TYPES = {
		icon = {
			VERSIONS = {
				icon = {
					RULE = rule_icon_image, VOLUME = images
				},
				largeicon = {
					RULE = rule_largeicon_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = icon
		}
	},
	MEDIA_TRANSFORMATION_RULES = {
		# ---------------------------------------------------------
		# Image rules
		# ---------------------------------------------------------
		rule_icon_image = {
			SCALE = {
				width = 48, height = 48, mode = fill_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		# ---------------------------------------------------------
		rule_largeicon_image = {
			SCALE = {
				width = 72, height = 72, mode = fill_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		}
		# ---------------------------------------------------------
	}	
}

# ----------------------------------------------------------------------------------------------------------------
#  Processing for user comment media (used in ca_item_comments)
# ----------------------------------------------------------------------------------------------------------------
ca_item_comments_media = {
	MEDIA_ACCEPT = {
		image/jpeg 						= image,
		image/gif 						= image,
		image/png						= image,
		image/tiff						= image,
		image/x-dcraw					= image,
		image/x-psd						= image,
		image/x-exr						= image,
		image/jp2						= image,
		image/x-adobe-dng				= image,
		image/x-canon-cr2				= image,
		image/x-canon-crw				= image,
		image/x-sony-arw				= image,
		image/x-olympus-orf				= image,
		image/x-pentax-pef				= image,
		image/x-epson-erf				= image,
		image/x-nikon-nef				= image,
		image/x-sony-sr2				= image,
		image/x-sony-srf				= image,
		image/x-sigma-x3f				= image,
		
		application/pdf					= pdf,
		application/postscript 			= pdf,
		
		audio/x-realaudio				= realmedia,
		video/quicktime					= quicktime,
		video/x-ms-asf					= windowsmedia,
		video/x-ms-wmv					= windowsmedia,
		video/x-flv						= flv,
		video/mpeg						= mpeg,
		
		audio/mpeg						= mp3,
		audio/x-aiff					= aiff,
		audio/mp4						= aiff,
		audio/x-wav						= aiff,
		
		application/msword				= msword
	},
	
	MEDIA_TYPES = {
		image = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = tilepic
		},
		pdf = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		msword = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_original_image, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original,
			MEDIA_VIEW_WINDOW_WIDTH = 775,
			MEDIA_VIEW_WINDOW_HEIGHT = 575
		},
		flv = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = flv
				}
			}
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		realmedia = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = realmedia
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		windowsmedia = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = windowsmedia
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		mpeg = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = images
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		quicktime = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = quicktime
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = large_preview
		},
		swf = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = swf
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		mp3 = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = mp3
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		},
		aiff = {
			VERSIONS = {
				preview = {
					RULE = rule_preview_image, VOLUME = images
				},
				large_preview = {
					RULE = rule_large_preview_image, VOLUME = images
				},
				original 	= {
					RULE = rule_video, VOLUME = mp3
				}
			},
			MEDIA_VIEW_DEFAULT_VERSION = original
		}
	},
	MEDIA_TRANSFORMATION_RULES = {
		# ---------------------------------------------------------
		# Image rules
		# ---------------------------------------------------------
		rule_preview_image = {
			SCALE = {
				width = 180, height = 180, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_large_preview_image = {
			SCALE = {
				width = 250, height = 250, mode = bounding_box, antialiasing = 0.5
			},
			SET = {quality = 75, format = image/jpeg}
		},
		rule_original_image = {},
		# ---------------------------------------------------------
	}	
}
# ----------------------------------------------------------------------------------------------------------------
