otakusama
25th September 2010, 06:44
Hi everyone, I have a doubt about how the Subtract filter works.
I have an "original textless videoclip" and a "hardsubtitled videoclip" which is recompressed from the original clip, so the only differences between the two clips are the almost unnoticeable recompression artifacts and the subtitles.
The point is, I want to isolate the subtitles, I mean, to have an output where the actual hardsubs are the only noticeable thing on the frame. Why would I want to do this? because it will be easier for the OCR Subrip function to detect the subtitles. It'd be very useful don't you think?
The Subtract filter was supposed to do that job, and it kind of does it but with unexpected/unwanted results. There is the grey background, slight recompression artifacts and the subs on it, that's OK... but I can see through the subtitles! Specially when there's motion, and they were supposed to be all solid color!
I've used in the script Subtract(vid1,vid2) and Subtract(vid2,vid1) (the only difference between both outputs is that one is color-inverted) and I've used the filter Overlay with modes "difference" and "subtract" with pretty much the same unwanted result. So, is there any way to have the actual solid-color subtitles from the videoclip? What do you suggest?
I have an "original textless videoclip" and a "hardsubtitled videoclip" which is recompressed from the original clip, so the only differences between the two clips are the almost unnoticeable recompression artifacts and the subtitles.
The point is, I want to isolate the subtitles, I mean, to have an output where the actual hardsubs are the only noticeable thing on the frame. Why would I want to do this? because it will be easier for the OCR Subrip function to detect the subtitles. It'd be very useful don't you think?
The Subtract filter was supposed to do that job, and it kind of does it but with unexpected/unwanted results. There is the grey background, slight recompression artifacts and the subs on it, that's OK... but I can see through the subtitles! Specially when there's motion, and they were supposed to be all solid color!
I've used in the script Subtract(vid1,vid2) and Subtract(vid2,vid1) (the only difference between both outputs is that one is color-inverted) and I've used the filter Overlay with modes "difference" and "subtract" with pretty much the same unwanted result. So, is there any way to have the actual solid-color subtitles from the videoclip? What do you suggest?