Trephin
13th February 2005, 01:25
When I use ColorYUV to adjust my video, I get strange patterns in the Histogram display. Can anyone explain why I get these vertical lines in classic display and the checkers when in color display? Are they rounding errors? Is this bad? In the color diagram, it seems like certain colors are eliminated entirely.
http://scheffer.se/files/classic.pnghttp://scheffer.se/files/color.png
This is my script:
# --- IMPORTS ------------------------------------------------------------------
import("MVbob.avs")
# ------------------------------------------------------------------------------
# --- SOURCE -------------------------------------------------------------------
movie = OpenDMLSource("tape.1.dv.avi", audio=true, pixel_type="RGB24", fourCC="CDVC")
# ------------------------------------------------------------------------------
# --- FIX DV SOURCE ------------------------------------------------------------
movie = movie.ConvertToYUY2(matrix="PC.601")
movie = movie.ReInterpolate420(interlaced=true)
movie = movie.reYV12()
# ------------------------------------------------------------------------------
# --- DEINTERLACE --------------------------------------------------------------
movie = movie.MVbob()
movie = movie.SelectEven()
# ------------------------------------------------------------------------------
# --- ALTER COLORS -------------------------------------------------------------
movie = movie.ColorYUV(off_y=-6.0, gain_y=-14.0, cont_u=128, cont_v=128, opt="")
# ------------------------------------------------------------------------------
# --- CROP ---------------------------------------------------------------------
movie = movie.Crop(8, 0, -8, -0, true)
# ------------------------------------------------------------------------------
# --- RESIZE -------------------------------------------------------------------
#movie = movie.Lanczos4Resize(704, 528)
# ------------------------------------------------------------------------------
# --- FOR TESTING --------------------------------------------------------------
#movie = movie.Histogram(mode="classic")
movie = movie.Histogram(mode="color")
movie = movie.Trim(12600, 12600)
# ------------------------------------------------------------------------------
return movie
http://scheffer.se/files/classic.pnghttp://scheffer.se/files/color.png
This is my script:
# --- IMPORTS ------------------------------------------------------------------
import("MVbob.avs")
# ------------------------------------------------------------------------------
# --- SOURCE -------------------------------------------------------------------
movie = OpenDMLSource("tape.1.dv.avi", audio=true, pixel_type="RGB24", fourCC="CDVC")
# ------------------------------------------------------------------------------
# --- FIX DV SOURCE ------------------------------------------------------------
movie = movie.ConvertToYUY2(matrix="PC.601")
movie = movie.ReInterpolate420(interlaced=true)
movie = movie.reYV12()
# ------------------------------------------------------------------------------
# --- DEINTERLACE --------------------------------------------------------------
movie = movie.MVbob()
movie = movie.SelectEven()
# ------------------------------------------------------------------------------
# --- ALTER COLORS -------------------------------------------------------------
movie = movie.ColorYUV(off_y=-6.0, gain_y=-14.0, cont_u=128, cont_v=128, opt="")
# ------------------------------------------------------------------------------
# --- CROP ---------------------------------------------------------------------
movie = movie.Crop(8, 0, -8, -0, true)
# ------------------------------------------------------------------------------
# --- RESIZE -------------------------------------------------------------------
#movie = movie.Lanczos4Resize(704, 528)
# ------------------------------------------------------------------------------
# --- FOR TESTING --------------------------------------------------------------
#movie = movie.Histogram(mode="classic")
movie = movie.Histogram(mode="color")
movie = movie.Trim(12600, 12600)
# ------------------------------------------------------------------------------
return movie