# XX-DeAna.avs # Tone at VRtifacts.com # V 0.9 June 27, 2010 # # Setup our input files anaglyphName = "C:\jtoc\3D.dgi" # Anaglyph video PureColName = "C:\jtoc\2D.dgi" # Video with color info (either Anaglyph or 2D) monoName = "C:\jtoc\2D.dgi" # Possible 2D video for one eye, if not set to "nothing # Maybe we already have one eye's version in 2D already, # i.e. the DVD or BR has both 2D and 3D versions # Set to: monoRight or monoLeft or monoNone isMono = "monoRight" # Anaglyph input format, either RC or GM, i.e red/cyan or green/magenta inputFormat = "GM" # Swap eyes: either Yes or No # Note: it is industry standard to put Red on the left eye for RC glasses # and Green on the left eye for GM glasses # It would be unusual to set this parameter to Yes # since the un-swapped arrangement is either Red=Left or Green=Left swapAnaglyph = "No" # Output formatting: # Choices are: # SBS_Left_First, SBS_Right_First, TB_Left_Top, TB_Right_Top # # Meaning Side-by-Side (SBS) or Top-Bottom (TB) # And choosing which eye is in which position # This happens after the optional swap (above) # and is somewhat redundant, but makes the eye choices clearer. outputFormat = "SBS_Left_First" # Resize the output video? Either Yes or No # If set to No, then the output video is either # twice the width of the input (for SBS) # or twice the height of the input (for TB) outputResize = "No" # If we are resizing the output, specify the dimensions (Int) # These dimensions apply to the stacked video size outputWidth = 500 outputHeight = 200 # In case one anaglyph eye has leaked into the other # We can try to remove that leakage by subtraction # Expressed as percentage (int or float) (-100 to 100) (0 means none) leakCorrectR = 0 # Leakage of left into the right eye leakCorrectL = 0 # Leakage of right into the left eye # How much to blur the color information (Int or Float) # This is done by shrinking the color video down in size # and then resizing it back up to full resolution # producing a blurred full resolution image # The two decimate numbers are expressed as percentages # i.e. a percentage of the full resolution to calculate # the shrunk size. 100 means no shrink, 10 means 1/10 the # resolution of the original, etc. # Anaglyphs are only offset horizontally, so the color blur # should be strong horizontally, but weak vertically # For films where the cameras were misaligned vertically # you will need to make the vertical blur greater. decimateHoriz = 12.0 # Horizontal shrinkage decimateVert = 24.0 # Vertical shrinkage - can usually be much bigger than decimateHoriz # Final brightness and contrast adjustments tweakBrightL = 0 # Left brightness, integer to add to each pixel (pixels are 0-255) tweakContL = 1.0 # Left contrast adjustment (1.0 means no contrast adjustment) tweakSatL = 1.0 # Left saturation adjustment (1.0 means no saturation adjustment) tweakBrightR = -30 # Right brightness, integer to add to each pixel (pixels are 0-255) tweakContR = 1.2 # Right contrast adjustment tweakSatR = 1.5 # Right saturation adjustment # Option to horizontally blur the left and right videos, # just before the color is restored (before optional LR swap) # Helps remove some of the fringing that appears in poor DVD encodes # Set to exactly 1.0 for no processing (faster!!), # > 1.0 blurs... try 1.5 to 4.0 blurLeft = 1.0 blurRight = 1.0 # Common code to do the conversion # Make sure this file path points to # the file on your system. import("C:\jtoc\AnaExtract_DG.avs") ConvertToYV12()