|
|
Link #1042 |
|
Member
|
Sorry i wrong, I dont know how to call this.
Code:
code once: code_a = {"a", "b", "c"}
!code_a[math.random(3)]!
Code:
fxgroup.ginkgo = (line.actor == "ginkgo" and syl.i == 1); fxgroup.ginkgo = (line.actor == "ginkgo" and syl.i == 5); fxgroup.ginkgo = (line.actor == "ginkgo" and syl.i == 9); |
|
|
|
|
|
Link #1043 | ||
|
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 28
|
Quote:
Quote:
For that you don't generally use fxgroups but inline-fx.
__________________
|
||
|
|
|
|
|
Link #1045 |
|
Hagane no Renkinjutsushi
Join Date: May 2009
Location: Greece
|
Couldn't u make a function that returns only odd numbers? Like :
Code Line : Start_val=1 Cur_val=Start_val+2 Start_val = Cur_Val EDIT : The code doesn't work correctly..Needs a better loop modifier..Just posted to provide the main idea..
__________________
Last edited by LelouchVII; 2010-05-05 at 12:09. |
|
|
|
|
|
Link #1046 |
|
Junior Member
Join Date: May 2010
|
I've made a Karaoke line, but for some reason, I can't play it well with the video :S
I used the following Template syl: {\pos($sx, $sy)\t($sstart,!$sstart+500!,\fr220)\t($sstart,!$s end+500!,\1a&HFF&)} The text rotates 220 degrees and fade in the same time. Behind the text, there is the same text, but without karaoke and a different collor. the text rotates and fade away and the text behind it becomes visible. I muxed it with the video and audio file, but the video becomes very slow, like a old computer trying to play a 1080p file. I´m sure my computer is powerfull enough. I used Aegisubs to make the .ass file and I used mkvmerge Gui to mux it with the video and audio. The video resolution is 1920x1080. Is there something I did wrong? So far I know I used normal effects :P |
|
|
|
|
|
Link #1047 |
|
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 28
|
VSFilter is horrible slow software and you can't count on it being fast enough to render slightly complex things in real-time. That's why it's still customary to hardsub karaoke effects. (Or be modern and scrap the karaoke entirely so the viewers can better enjoy the animation studio's art.)
__________________
|
|
|
|
|
|
Link #1048 | |
|
Member
|
Quote:
Code:
code syl: fxgroup.odd = ((syl.i%2)*2-1 == 1); Code:
code once: index_s = {1, 3, 6, 9}
code syl: fxgroup.blur = (syl.i == index_s);
If i use inline-fx, the code doesn't work as I want, Code:
{\k22}A{\k25}o{\k43}i {\k33}so{\k24\-odd}ra {\kf69}ni{\kf65} {\k53}hi{\k54\-odd}ko{\k38}u{\k48}ki{\k39}gu{\kf70}mo
Code:
{\an5\pos(268, 30)\fad(200,0)\bord2\c&H00DEF6FF&}ra
{\an5\pos(297, 30)\fad(200,0)\bord2\c&H00DEF6FF&}ni
{\an5\pos(323, 30)\fad(200,0)\bord2\c&H00DEF6FF&}hi
{\an5\pos(347, 30)\fad(200,0)\bord2\c&H00DEF6FF&}ko
{\an5\pos(367, 30)\fad(200,0)\bord2\c&H00DEF6FF&}u
{\an5\pos(384, 30)\fad(200,0)\bord2\c&H00DEF6FF&}ki
{\an5\pos(408, 30)\fad(200,0)\bord2\c&H00DEF6FF&}gu
{\an5\pos(440, 30)\fad(200,0)\bord2\c&H00DEF6FF&}mo
__________________
|
|
|
|
|
|
|
Link #1049 | ||
|
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 28
|
Let's take a look at the text on the manual page about inline-fx again:
Quote:
Quote:
__________________
|
||
|
|
|
|
|
Link #1050 |
|
Hagane no Renkinjutsushi
Join Date: May 2009
Location: Greece
|
Creating this function seems so much easier in .lua than .ass... U could use inline fx and then disable it for the next syl, I think..But that would take too much time..We need something automated here, or there is no sense in using automation4 xD
Something like {\k22}A{\k25}o{\k43}i {\k33}so{\k24\-odd}ra {\kf69\-odd}ni{\kf65} {\k53}hi{\k54\-odd}ko{\k38}u{\k48}ki{\k39}gu{\kf70}mo
__________________
|
|
|
|
|
|
Link #1051 | |
|
Member
|
Quote:
--- So Every following syllable will be applied too, that inline-fx's not the best solution It needs a disable syl_tag for the next syl, so the index maybe not correct but I have to do that no have other solution if no other way .
__________________
|
|
|
|
|
|
|
Link #1052 |
|
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 28
|
{\k5\-normal}syl1 {\k5}syl2 {\k5\-special}syl3 {\k5\-normal}syl4 {\k5}syl5 {\k5}syl6 {\k5\-special}syl7 {\k5\-normal}syl8 {\k5}syl9 {\k5}syl10
Code:
Syllable fx-override active fx syl1 normal normal syl2 normal syl3 special special syl4 normal normal syl5 normal syl6 normal syl7 special special syl8 normal normal syl9 normal syl10 normal
__________________
|
|
|
|
|
|
Link #1053 | |
|
Member
|
Quote:
I want something auto countting--- Maybe when kara timing, I'll change some \k tag to \kf tag, then use fxgroup.kf and fxgroup.k. It's still like inline-fx, no need add more syl tag
__________________
Last edited by jofori89; 2010-05-07 at 07:23. |
|
|
|
|
|
|
Link #1055 |
|
Hagane no Renkinjutsushi
Join Date: May 2009
Location: Greece
|
Its the same thing..Only the output contaier is matroska and not avi..I think ur question should go at the encoding thread though. Quick solution : Use the same script (avisynth) as for the avi and choose from meguis output menu .mkv container
__________________
|
|
|
|
|
|
Link #1057 | |
|
Member
|
Quote:
Code:
code once: temp = {} temp.score_width = 100
code once: function set_temp(ref,val) temp[ref] = val; return val; end
code line: score_size = math.floor(line.styleref.fontsize/2.5)
code line: shape = string.format("m 0 0 l 100 0 l 100 -1 l 0 -1 m 0 %d l 100 %d l 100 %d l 0 %d m 0 %d l 100 %d l 100 %d l 0 %d m 0 %d l 100 %d l 100 %d l 0 %d m 0 %d l 100 %d l 100 %d l 0 %d",score_size,score_size,score_size+1,score_size+1,score_size*2,score_size*2,score_size*2+1,score_size*2+1,score_size*3,score_size*3,score_size*3+1,score_size*3+1,score_size*4,score_size*4,score_size*4+1,score_size*4+1)
template pre-line notext noblank: !retime("line",-1000,-500)!{\an5\bord0.5\shad0\pos($lcenter,$lmiddle)\fscx!temp.score_width!\t(0,300,\fscx!130*$lwidth/100!)\t(300,600,\fscx!set_temp("score_width",110*$lwidth/100)!)\3c&HFFFFFF&\t(0,100,\bord2\blur3)\t(100,1200,\bord0.5\blur0)\p1}!shape!
|
|
|
|
|
![]() |
| Tags |
| fansubbing, karaoke, software, subbing |
| Thread Tools | |
|
|