tedkunich
23rd June 2004, 16:48
I'm doing a bunch of LD captures to DVD and noticed an odd behavior that to me, is a bug in Avisynth (v2.54), or it could be that I'm clueless.... :)
I noticed this when I turned on the histogram function. As my caps originated in TV color space and are destined for TV color space, what I'm seeing confuses me: If I show the histogram on the unconverted clip, I see that the luma ranges are within the TV limits, but as soon as there is any conversion to YV12 the limits get expanded, i.e. PC color space. I have found that adding adding Levels(0, 1, 255, 0, 255) to my script, which as far as I can tell should have no effect, the luma is again correctly diplayed in the TV color space range in the histogram. Is this a bug, or am I just confused????
Thanks,
T
This is an example of the script that I'm using (on the other PC, so not a cut and paste, sorry)
clip1=avisource("AVI source")
clip2=avisource("AVI source2")
clip1 + clip2
# Histogram() <<- Histogram displays the proper Luma ranges
ConvertToYV12(interlaced=false)
# Histogram() <<- Histogram displays incorrect Luma ranges
Levels(0, 1, 255, 0, 255)
Histogram() <<- Histogram now displays the proper Luma ranges
I noticed this when I turned on the histogram function. As my caps originated in TV color space and are destined for TV color space, what I'm seeing confuses me: If I show the histogram on the unconverted clip, I see that the luma ranges are within the TV limits, but as soon as there is any conversion to YV12 the limits get expanded, i.e. PC color space. I have found that adding adding Levels(0, 1, 255, 0, 255) to my script, which as far as I can tell should have no effect, the luma is again correctly diplayed in the TV color space range in the histogram. Is this a bug, or am I just confused????
Thanks,
T
This is an example of the script that I'm using (on the other PC, so not a cut and paste, sorry)
clip1=avisource("AVI source")
clip2=avisource("AVI source2")
clip1 + clip2
# Histogram() <<- Histogram displays the proper Luma ranges
ConvertToYV12(interlaced=false)
# Histogram() <<- Histogram displays incorrect Luma ranges
Levels(0, 1, 255, 0, 255)
Histogram() <<- Histogram now displays the proper Luma ranges