Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd October 2018, 16:28 | #1 | Link |
Registered User
Join Date: Mar 2014
Location: Hungary
Posts: 115
|
Making a mask to remove hardsubs
Hi!
I have two video sources. The first source has good picture quality and hardcoded subs, the second source has low PQ but it does not contain hardsubs. I want to remove the hardsubs from the video and replacing the texts with actual video. This is my script so far: Code:
a=FFMS2("X:\DL\hardsub.mkv") b=FFMS2("X:\DL\nohardsub.mkv") mask=Subtract(a,b).Levels(0, 0.16, 255, 0, 255, coring=true) Overlay(a,b,0,0,mask) Here are some frames: video with good PQ video with bad PQ difference between them after tweaking it with levels using the mask to Overlay the text So my questions are: How can I make the mask pure black and white? Is there any script that turns the image into 1 bit? How can I expand the mask with for example 10-15 pixels? I tried to mess with mt_expand but no luck so far. |
Tags |
hardsub, mask, mt_expand, overlay, remove |
|
|