2006-11-09, 11:27 | Link #301 |
翻訳家わなびぃ
Fansubber
|
You can start with a karaoke looking like
Code:
{\k40}wa{\k20}ta{\k20}shi {\k40}wa Code:
{\t(0,100,\fscx130\fscy130)\t(100,400,\fscx100\fscy100)}wa {\t(400,450,\fscx130\fscy130)\t(450,600,\fscx100\fscy100)}ta {\t(600,650,\fscx130\fscy130)\t(650,800,\fscx100\fscy100)}shi {\t(800,900,\fscx130\fscy130)\t(900,1200,\fscx100\fscy100)}wa The way it once was done was to duplicate the line as many times as the syllables in the line - 4 times in this example. watashi wa watashi wa watashi wa watashi wa The red letters would be the syllables that are shown on the screen. The rest of the line on each lines will be hidden using \alpha&Hff&. Code:
{\t(0,100,\fscx130\fscy130)\t(100,400,\fscx100\fscy100)}wa{\r\alpha&Hff&}tashi wa {\alpha&Hff&}wa{\alpha&H00&\t(400,450,\fscx130\fscy130)\t(450,600,\fscx100\fscy100)}ta{\r\alpha&Hff&}shi wa {\alpha&Hff&}wata{\alpha&H00&\t(600,650,\fscx130\fscy130)\t(650,800,\fscx100\fscy100)}shi{\r\alpha&Hff&} wa {\alpha&Hff&}watashi{\alpha&H00&\t(800,900,\fscx130\fscy130)\t(900,1200,\fscx100\fscy100)} wa Code:
{\t(0,100,\fscx130\fscy130)\t(100,400,\fscx100\fscy100)\t(400,400,\alpha&Hff&)}wa{\r\alpha&Hff&\t(400,400,\alpha&H00&)\t(400,450,\fscx130\fscy130)\t(450,600,\fscx100\fscy100)\t(600,600,\alpha&Hff&)}ta{\r\alpha&Hff&\t(600,600,\alpha&H00&)\t(600,650,\fscx130\fscy130)\t(650,800,\fscx100\fscy100)\t(800,800,\alpha&Hff&)}shi {\r\alpha&Hff&)\t(800,800,\alpha&H00&)\t(800,900,\fscx130\fscy130)\t(900,1200,\fscx100\fscy100)}wa {\alpha&Hff&\t(400,400,\alpha&H00&)}wa{\r\alpha&H00&\t(400,400,\alpha&Hff&)\t(600,600,\alpha&H00&)}ta{\r\alpha&H\t(600,600,\alpha&Hff&)\t(800,800,\alpha&H00&)}shi {\r\alpha&H00&\t(800,800,\alpha&Hff&)}wa Just a small side note: while the first and third method will produce pretty much exact same result, the second method doesn't. How? The top example was made with the first method. "ta" is placed in front of "wa" but behind "shi". The next two example was made with the second method, just different layer orders. You can make the syllables grow behind or in front of the rest of the line - you have the control. |
2006-11-10, 00:37 | Link #303 |
翻訳家わなびぃ
Fansubber
|
Lua script by itself probably won't be the best thing. It's a generic scripting language that's used in many different applications, or in stand-alone mode.
I'm sure you meant lua script in Aegisub. Yes, you can use them. In fact, the karaoke replacer etc scripts that come with aegisub should automate all those operations quite nicely. Or you can use RaistlinMajere's SSA Tools for karaoke too. If you know generic scripting or programming languages, you can write script of your own too. There are some scripting samples posted on page 5 of this thread. |
2006-11-10, 18:30 | Link #304 |
Member
Join Date: Nov 2006
|
I'm going to use \clip to create a gradient color text effect. However how to I choose what color for each clip and final text look in gradient color.
Any tools to generate gradient color values ? like I want 4 gradient and it will generate 4 values of color |
2006-11-10, 19:28 | Link #305 |
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
|
Again, if it's just for a still gradient (ie. not in a karaoke...) Raistlin's SSATool can do it.
Otherwise you'll want to do some interpolation. Say you want to ramp from pure red (RGB 255 0 0, &H0000FF& in SSA hex) to pure blue (RGB 0 0 255, &HFF0000&) in four steps. First step will be the start color, fourth (last) step will be the end color. Step two and three will be some color in-between the two colors. You interpolate each color component (red, green blue) separately. Now, number each step of the gradient, starting at zero. First step is 0, second is 1, third is 2 and fourth is 3. These numbers are important. Now there is a simple way to tell how far we are between start and end, just say: curstep / maxstep Here, maxstep is 3. So, for step 0, progress = 0/3 = 0 Step 1: progress = 1/3 Step 2: progress = 2/3 Step 3: progress = 3/3 = 1 Now you can calculate the value of each component using the progress value. If you take for example red, you know it has to be 255 at progress=0 and 0 at progress=1, so you have to "invert" the progress value. You get something like this: progress = 1/3 red = (1 - progress) * 255 + progress * 0 = 2/3 * 255 = 170 green = (1 - progress) * 0 + progress * 0 = 0 blue = (1 - progress) * 0 + progress * 255 = 1/3 * 255 = 85 You can similarly do interpolation in lots of other cases, not just for colors. For example it's also a fine way to calculate some points along a straight line, given the start and end points. Just interpolate between the X and Y coordinates of those.
__________________
|
2006-11-15, 13:11 | Link #310 | |
done
Fansubber
Join Date: Nov 2003
Location: Yokosuka, JP
Age: 43
|
Quote:
|
|
2006-11-15, 14:26 | Link #311 |
Banned
Join Date: Nov 2003
Location: Hamburg
Age: 54
|
Oh look! Topper from Dilbert reads Animesuki
getfresh, with all undue respect, please be careful banging your chest, you might bruise it. jfs has been giving some very good and helpful advice, and his automation tools are definitely very useful. Very unlike your sneering contributions. Why would any rational person recommend to any karaoke newcomer to edit 600 layers manually in notepad when a much more efficient way exists to do it via tool support? This kind of silly talk reminds me very much of have-been encoders who brag how they edited Avisynth scripts of 5k and more back in their days, and how this is the only way to do it, while competent encoders nowadays do all of this and more in a fraction of time and effort using modern tools instead. Please don't waste our time with your ego-tripping, nobody (bar you) is interested in it. And just for the record: In the over 5 years I've been encoding anime, I've barely ever heard your name. On the other hand, jfs not only released a neat tool for others to use, he's been known to me for years. |
2006-11-15, 16:36 | Link #312 | |
Dream's High Tension.
Join Date: Dec 2005
Location: Kuwait
Age: 35
|
Quote:
sorry boy, but dont talk about kara if you're nothing on it And one more thing! Respect your uncle getfresh Ah~ btw, this is the first i have seen your name on the court of Encoders :P~ |
|
2006-11-15, 16:42 | Link #313 |
Senior Member
Fansubber
Join Date: Dec 2005
|
It's not using a "ready-made effect", usually. These tools are there to aid in the rather non-artistic aspect of things. The calculations, the tweaking, and fine positioning of layers. It's just tedious. Nothing that really needs to be dealt with.
For the tools to be effective, the styler needs to be able to script his vision using a combination of ASS and whatever tool you use to automate the process. That alone is an art. |
2006-11-15, 17:10 | Link #314 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
It seems like the people criticizing automated methods don't have the faintest idea what they're talking about.
What part of "arbitrary code" is so hard to understand? Any karaoke effect that is possible to create with ASS can be created with Aegisub's Automation. Period. It won't always be SIMPLE, but there's nothing that cannot be done. BTW, there are like 8 example scripts, intended to display the automation module's capabilities, that ships with Aegisub. Those are the ONLY "ready-made effects" there are...
__________________
|
2006-11-15, 17:14 | Link #315 |
Aegisub dev
IT Support
Join Date: Dec 2004
Location: Florianópolis, Brazil, Pale Blue Dot
Age: 38
|
Just to clear things up, when you're programming a karaoke (as opposed to writing it manually) - and it doesn't matter if you're using asscalc, Aegisub Automation or one of the ten billion tools that do it - as long as it uses a real programming language (Lua, in Aegisub's case), there's nothing that can't be done with it. It's that simple. You could, in theory, simply write a code that will linearly write the entire subtitles as if you were typing in notepad, but that would be silly, to say the least.
The whole point of programming a karaoke is to automate the repeated and/or mathematical parts, while letting you focus on the artistic part of it. There are no limits to it, again, provided that you're using a turing-complete language as the foundation. It lets you have the exact same result (or, more often than not, a better result, since it can, at your own discretion, have mathematical precision instead of "eye-o-meter") with much less wasted time (although a very complex karaoke will still take several hours to program). And how can someone NOT have heard of Mentar as encoder? He's one of the oldest and most respected (if not the most...) encoders in the community. My guess is that you haven't heard of darkhold, either, which is a shame, as it is a very good source of information regarding encoding of anime. |
2006-11-15, 17:34 | Link #317 |
Infie
Fansubber
Join Date: Jul 2006
Location: Texas
|
I automate karaokes to randomize, scale, calculate or do it for me. Or Rather I put most of the work in to C++ My program for the effect to be read in it..so it can be applied. That's the only work I do. Besides the k-timing itself. Or rather compare mine against a 64bit auto k-timer. But whatever...ArchMageZeratual people have other reasons for automating effects. Focusing on the art is basically the styling no? And any good typesetter could make and think of a good effect on the spot to go with a specific show or whatever.
Edit: Never heard of mentar but have of darkhold(place) >_> |
2006-11-15, 18:37 | Link #318 | |
翻訳家わなびぃ
Fansubber
|
To some people, I believe there are benefits to learning to make karaoke effects by hand. It makes them realize exactly what portion of the code they're repeating, and really starting to see the benefit of automated system. At that time, the person would know exactly how to construct a formula for the tool to be used. At least that's how it worked for me.
Quote:
Then there's couple of cases I've several different styles within one karaoke. Those really benefited from manual works, because I was taking on inspirations for each line and each syllable effects as I worked on each section. On both cases, I somewhat think that the effects are borderlining between fun and overdone. Or maybe look too show-off-y. Nonetheless, those karaoke wouldn't have come to life if I did them using automated tools. I do like many automation tools I've seen and used. But to me, none of them are the right answer if the situation really calls for extra creativity. My stance - there are right times to use the tools. There also are times it's better to work in manual fashion. |
|
2006-11-15, 19:34 | Link #319 |
In exile
Join Date: May 2006
Location: There! Not there! There!
Age: 36
|
Oh lawl getfresh believes automation scripts are like selling our soul to the devil for karaoke greatness I guess?
*/me heard of Mentar for his helpful tips he gives inexperienced encoders and experienced encoders alike... **/me heard of getfresh for his greatness at bragging at how superior he is, because he can stand using inefficient methods to make his karaokes... ***/me wonders why we care about who heard of who?
__________________
|
2006-11-15, 20:01 | Link #320 | |
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
|
Quote:
For example: Code:
{%(($dur > 10) and "\\kf$dur") or "\\k$dur"%} As for whether generated karaokes limit creativity or not, I don't let them. If I need some special cases with extra control within a kara, I write code to allow me to put arbitrary overrides. This was partly what made me add the inline_fx and ool_fx (sorry, haven't doc'd this one properly...) in Automation. inline_fx can also easily be used in multi-template, just test again A.syl.inline_fx in a boolean construct like shown above. And if nothing else, you can have some lines that go unchanged from the source-ASS into the generated file. I like writing algorithms to generate visual effects, which is why I like doing karaoke, even if I don't produce that much. And that's why I don't hand-write everything, because I like programming "If it's not possible, make it." Now, I don't care how other people make their effects. I won't force anyone to use Aegisub. But that doesn't stop me from striving to create a well-documented tool with high usability. If anyone have any constructive complaints/suggestions, I'd love to hear them.
__________________
|
|
Tags |
fansubbing, karaoke, software |
|
|