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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th May 2008, 17:58   #1  |  Link
tacman1123
Registered User
 
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
Overlaying a background image

I'm trying to create a mask for a name/title caption in a documentary style clip -- that is, someone talking, then their name and title fades in. It looks pretty good right now with SubtitleEx(), but I'd like to add a semi-transparent gray background so that the letters stand out.

Obviously, I'll use Overlay(), but I'm not sure how to create the image I want to use as an overlay.

bg=(something)

and then something like

Overlay(bg, x=50, y=20, mode="subtract", opacity=0.25)

I'm hoping this is a common enough request that someone can just point me to some code (if Amazon sold an Avisynth Cookbook, I'd already have ordered it!).

Thanks! After many months of playing around with video software, I'm finally using Avisynth and am blown away at how good it is.

Tac
tacman1123 is offline   Reply With Quote
Old 19th May 2008, 01:50   #2  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Try Aegisub and then load your .ass with textsub()

What you want is very basic typesetting that is easy to do in the program I mentionned.
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 19th May 2008, 14:54   #3  |  Link
tacman1123
Registered User
 
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
Looks like a LOT of work to install Aegisub, it's not just a simple AviSynth plugin. At the moment, here's my best attempt:

a=AVISource(...)
fontsize=2
bg=blankclip(length=10, width=round(a.width/2), height=40, color=$0FF000).Greyscale()
Overlay(a, bg, x=a.width-bg.width, y=a.height-(bg.height+fontsize), opacity=0.2)

Then I use SubitleEx() to add the captions. It's working ok, but I'm sure there's a better way (like figuring out the right color!)

Tac
tacman1123 is offline   Reply With Quote
Old 19th May 2008, 16:35   #4  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
It's a program like any other.... run the exe and your done. After that, load your video in Aegisub, time and typeset your stuff, save as .ass and load that file with textsub() in avs.

Or, use nother method.... It's just that I'm used to work with that program and I saw that it can do amazing things.
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 19th May 2008, 23:43   #5  |  Link
gzarkadas
Registered User
 
gzarkadas's Avatar
 
Join Date: Sep 2005
Location: 100011110010001000001 10000011111111000001
Posts: 222
Quote:
Originally Posted by tacman1123 View Post
...I'm sure there's a better way (like figuring out the right color!)...
You can use one of the gray color constants at the call to BlankClip and avoid the Greyscale call: color_gray10, ...20, ..., ...90.

You could also try mode="Chroma", with opacity=1.0 (or close to 1, say 0.8 or 0.9).
__________________
AVSLib, a free extension library for Avisynth. Current version: 1.1.0 (beta), 14/05/2007.
[ Home page | Download page ]
gzarkadas is offline   Reply With Quote
Reply

Tags
captioning, overlay, subtitle

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.