Log in

View Full Version : Overlay/Layer with non-transparent clip


Elegant
6th August 2014, 21:24
Hello! I very recently found myself dealing with a bad source and I sought to improve it by using the release from another region. The issue I have is that I would still very much like to maintain some of the captions from the the bad source.

By example, I have two scenes that span the same length, the bad source has the title for the episode, the good source has nothing. So I would simply crop the bad source title as best I could and overlay it over the good source. Problem is the color scheme does not quite match.

http://i.imgur.com/y5EKe8F.png

I'm looking to somehow rectify this issue but I'm kind of unsure how to darken/lighten the rest of the scene to match my title or how to properly select just the title without drawing a box (a mask of some sort?). Any help would be much appreciated.

colours
6th August 2014, 22:09
Instead of trying to splice in the title in the video, you could just softsub the title. Pick a font you like (you don't even need to use a similar one!) and use Aegisub to typeset it. Remove the quotation marks while you're at it, since it's sort of ungrammatical to have them there.

poisondeathray
6th August 2014, 22:23
Or you can try masking out the titles, isolating by hue/saturation e.g. maskhs() , refining with masktools. The orange/yellow in your example should be different enough to get decent result if that sample pic is representative and there are no overlapping hues in the rest of a sequence

Elegant
7th August 2014, 03:26
@colours Really trying to recreate the original as this will be the only one-off episode that will require such this kind of surgery.

@poisondeathray I'll look into that; I didn't think to look to the internal filters for this. Hopefully I can figure out the settings I need. Thanks!

EDIT: The FadeIn effect that is already hardsubbed into the clip isn't quite working with this. I think what I'll need to do is photoshop one frame, span it the entire length, get the title, reinsert it using FadeIO with a white as the color then apply MaskHS. Ultimately your idea should pan out though.

poisondeathray
7th August 2014, 04:06
@colours Really trying to recreate the original as this will be the only one-off episode that will require such this kind of surgery.

@poisondeathray I'll look into that; I didn't think to look to the internal filters for this. Hopefully I can figure out the settings I need. Thanks!

EDIT: The FadeIn effect that is already hardsubbed into the clip isn't quite working with this. I think what I'll need to do is photoshop one frame, span it the entire length, get the title, reinsert it using FadeIO with a white as the color then apply MaskHS. Ultimately your idea should pan out though. One thing I do not understand is why MaskHS is halving the size of the clip it is given forcing me to use Spline36Resize. Overlay does not play nice with clips that do not match its size.


Use ConvertToYV24() before MaskHS() . That will make it 4:4:4 and the same dimensions for Y,U and V

What sort of title is this ? Animated or static? Does title change? So is the fade the only tricky part ? Because if you're going to photoshop, you might as well roto/mask it out manually then overlay - you don't need any maskhs or anything

fvisagie
7th August 2014, 07:24
I'm kind of unsure how to darken/lighten the rest of the scene to match my title

If you want to evaluate this approach along with/instead of the other excellent suggestions, you could try something like ColourLike(). For best results calibrate it with frames cut just adjacent to (i.e. excluding) the titles. For manual adjustment you could look at ColorYUV(), Tweak() etc., depending on what needs to be done.

Elegant
7th August 2014, 19:33
@poisondeathray I found I couldn't get MaskHS to work as I wanted (the second set of captions had actual animation so I was screwed for picking it up), you were right about ConvertToYV24 though. What I ended up doing is photoshopping the area I wanted and creating the mask by hand (as these captions are static). Next was a simple ImageSource for the frames I needed and then supplying it into Overlay. Thanks again for the suggestions, it really made me take a closer look at how the masking works.

@fvisagie Thanks! I'll fiddle with this. I do find that Jap Sources tend to be a bit darker than NA sources I might be able to figure out what adjustments were used.