Log in

View Full Version : How to manipulate subtitles without affecting video?


Brother Darrell
28th January 2007, 16:59
I am attempting to encode Haibane Renmei, using the forced subtitles. I've used Aegisub to make a *.ass file & of course, using VSFilter unicode.dll to load them. What I am trying to accomplish is manipulating the subs to my liking (in this case, a simple blur), so it looks like it was part of the video all along.
The problem arises when I try to blur JUST the subs.
The line I use is blur(TextSub ("C:\HAIBANE\*.ass"),.4). While the blur effect is just about perfect for the subs,
it has the effect of blurring the whole video by the above mentioned amount as well, partially negating some of the filtering I'm already doing to the video.
How would I best accomplish this without tweaking my previous filtering to accomodate the subs?

SaferSephiroth
10th February 2007, 05:47
Still learning AviSynth here (I'm such a noob, lol), so I don't know how (or even if) what you want is possible. However, I would suggest blurring your subs in Aegisub before you add them to your video. Use {\be1} to blur edges of your text. I would provide more detailed steps, but unfortunately :( Aegisub is acting weird and not letting me open any videos. But anyway, give it a try.

gzarkadas
11th February 2007, 02:12
The steps below should do the job:

Enter the subtitles to a black clip with the same dimensions, frames and fps as your target clip to create a text mask.
Apply the bluring effect to the mask.
Overlay a fully white clip to your target clip using as mask the subtitles clip ('add' mode, full opacity).


If mask is YUV, make a ColorYUV(levels="tv->pc") on the mask before passing to Overlay(...).

SaferSephiroth
28th February 2007, 03:00
You learn something new everyday.