View Full Version : Result video is always darker than the original? need help to overcome this.
bananacreamandpeca
25th December 2006, 09:31
I have DV-cam material I encoded to x264.
What I notice is that the result x264 video is darker than what megui previews (using AVS script to see video)
Why is this?
I hope someone can explain this and what I can do
to preserve its brightness.
my script:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MSharpen.dll")
avisource("C:\DV-test.avi")
edeintted = last.AssumeBFF().SeparateFields().SelectEven().EEDI2(field=-1)
TDeint(order=0,edeint=edeintted)
bicubicresize(400,320)
#Levels(0,0.760,255,0,255)
#Tweak(Sat=0.8,cont=0.8,coring=false)
MSharpen(threshold=25,strength=90,mask=false,highq=true)
ConvertToYV12()
sh0dan
25th December 2006, 12:01
You shouldn't observe a color difference, unless you use an overlay based player. Open the script in vdub and the colors should as you expect.
It is probably your player or graphic driver settings that changes the look of the images.
bananacreamandpeca
26th December 2006, 05:34
OK. thanks for trying to clear that up.
But I still don't quite understand.
I use VLC media player.
So what you are saying, is that the new video-encode
actually isn't thát dark as VLC wants me to believe?
Sharro
23rd January 2007, 12:12
Hi Everybody and Hi sh0dan,
Because I've been messing around with StackVertical, Avisource and Mpeg2source and for Xvid I have just the xvid's decoder I wonder... where is Brightness setting for Avisource and Mpeg2source coming from ?
Cause my Avisource always looks "brighter" than my mpeg2source to a point that I even tried the encode with Colormatrix to see if it helped.
Is there a proper way to stack 2 sources so that any settings outside avisynth do not mess up what's shown ?
Any help appreciated.
Best regards,
Sharro
foxyshadis
23rd January 2007, 12:33
ConvertToRGB() at the end of your chain. Also, there are four values for the matrix argument, please test them all. For instance:
StackVertical( \
ConvertToRGB(matrix="rec601"), \
ConvertToRGB(matrix="pc.601"), \
ConvertToRGB(matrix="rec709"), \
ConvertToRGB(matrix="pc.709") \
)
One of them is bound to correspond exactly, one will look very similar, and two will probably be how it "should" look.
Sharro
23rd January 2007, 15:14
Hi Everybody.
Thanks foxyshadis!
To define variables properly for Colormatrix I already had to check which color matrix of the d2v with mpeg2source(....,info=1)
The dvd I'm playing with is funny... Gspot gives me I470 colour matrix on the first vob, no info on the others and in fact the first 10 seconds of the vob are I470 but the rest is rec709 (checked with mpeg2source).
My only doubt is the avi (Xvid) , from my understanding of the Colourmatrix help file it should be pc.601 (no info on Gspot) right ?
EDIT: I can't get any other parameter than ConvertToRgb("Rec709",interlaced=false) to work. I always get message:
invalid "matrix" parameter (must be matrix="Rec709")
a=Mpeg2Source("O:\LTL0ESW1\VIDEO_TS\***.D2V").Crop(2,2,-2,-4).LanczosResize(704,384).ConvertToRgb(matrix="Rec709")
b=AviSource("O:\LTL0ESW1\VIDEO_TS\HR.2.avi").ConvertToRgb()
c=AviSource("O:\LTL0ESW1\VIDEO_TS\HeiniR.2.avi").ConvertToRgb()
END EDIT
Thanks again.
All the best,
Sharro
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.