Hey everyone, TGIF
The purpose of this request is for testing and reviewing Digital Picture Frames (DPF) and their:
1. Photo and Video features
2. But these DPF's do not aid to your advantage by letting you know what Photo or Video is currently used. So, the only other way around this is to overlay a subtitle (text) onto the photo/image/video. I can prob create a quick n dirty tool for the picture aspects, but for video would best be served via scripting..which leads to my questions..
In avisynth scripting, using the subtitl() function, is there any way to freely move the text anywhere inside the image or it is hard-coded to always display at the top ? I might want to put some text and the top, and some at the bottom, etc.
Currently, this is what I use in my text overlay routine:
scriptClip( """ subtitle("TV: LAVERNE AND SHIRLEY " + string(current_frame) + " - " + string(framecount))""")
Also: change size; and font; etc.
What I would like to do is lable-ize some of my xvid and h264 encoded videos with one or more lines of text.
And, I'd like add in the addtion, if tv series for instance, or codec used, or param string used in video encode, etc.
..or do you have to write your own subtitler plugin ?
Thanks..
-vhelp 5156
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
You can do whatever you like - change the position, font, size, color, length of time on the video, etc. All it takes is a quick stop at AviSynth.org and there's no need for this thread at all:
http://avisynth.org/mediawiki/Subtitle -
although manono pointed the way, I had already figured it out..but thanks just the same
Here's what I used, in case others get stuck in this area:
scriptClip( """ subtitle("TV: LAVERNE AND SHIRLEY " + string(current_frame) + " - " + string(framecount), align=8,8,8 )""")
the align=x has 9 options, and they basically position the text
TOP: left, center, right
CENTER: left, center, right
BOTTOM: left, center, right
the other params, [ie, 8,8] (I was balancing within 8 pixels) are used for row/column position with the align=x scopy.
Unfortunately, I could not figure out how to split text (as in word-wrap) to the next line--even tried \%n etc, to no avail.
I guess I'll have to suffer the trial n error of calculating the pixels from the above param [ie, 8,8] and add based on font size and/or other aspect.
EDIT: I don't need the % char, that's what was causing me the trouble in wrapping text to next line.
its suppose to be, \n
-vhelp 5157 -
To split lines, you need to add the lsp parameter, as well as using \n. For example,
Subtitle("First line\nSecond line", lsp=0)
Similar Threads
-
Editing subtitle on diferent positions
By Capum in forum Authoring (DVD)Replies: 4Last Post: 14th Oct 2010, 09:59 -
Live streaming with addition of overlay images, text, etc.
By munchoa in forum Video Streaming DownloadingReplies: 2Last Post: 21st Nov 2009, 05:20 -
Videoplayer with start/stop and overlay drawing function
By videoamateure in forum EditingReplies: 6Last Post: 14th May 2009, 18:21 -
Command line text overlay tool
By lmundy in forum LinuxReplies: 3Last Post: 13th Jul 2008, 13:58 -
Vegas 8: Overlay text in multimcamera mode?
By stantheman1976 in forum EditingReplies: 0Last Post: 4th Feb 2008, 13:08