View Full Version : Transferring color information from one clip to another
Marin85
16th November 2012, 04:45
I have two clips with different aspect ratio. The first clip covers more area, but its colors are kind of washed out, while the second clip has very nice colors (at least to my liking), much more naturally looking. Both clips are in YV12.
So the intuitive question is, is there a way to transfer the color information from the second clip to the first clip so that the first clip looks like the second one color-wise?
I realize the question is not very precise, but I still hope you can imagine what I am attempting to do.
poisondeathray
16th November 2012, 05:02
You can try colourlike
http://forum.doom9.org/showthread.php?t=96308
But how are you making this determination? Are they from the same source? For example if you have 2 media players open, it might just be a playback problem (they could be using different renderers)
Marin85
16th November 2012, 06:10
Thanks for the quick response! That is exactly what I was looking for. I was sure I had seen something like it around here before, but I could not find the link. Thanks again!
Yes, of course, colors are always subjective matter. I am viewing the clips in AvsPmod on a not-too-bad display, and my personal preference goes strongly towards the second clip in terms of colors. I realize though that viewing a brighter clip next to a darker clip would always make the brighter clip look somewhat "washed-out". But since it is all for personal usage only, I give preference to what seems more visually attractive to me :-)
Marin85
17th November 2012, 06:02
Update: I have tried a dummy operation with ColourLike(), where the source and the reference clip are the same, so both histograms are the same, but ColourLike() is producing strange shift in colors:
http://t.imgbox.com/adgpG2wG.jpg (http://imgbox.com/adgpG2wG) http://t.imgbox.com/acr1SCCj.jpg (http://imgbox.com/acr1SCCj)
I have created the histogram via
WriteHistogram(source_clip, "c:\source_hist",1)
and the filtered video via
ColourLike(source_clip, "c:\source_hist", "c:\source_hist")
Since both histograms are the same, ColourLike() should not be doing anything, right? Any ideas what is wrong?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.