修訂 | 46908288e6d853bc79ec856e0771a3b75a6b1c99 (tree) |
---|---|
時間 | 2016-11-28 21:08:23 |
作者 | butameron <butameron@opap...> |
Commiter | butaman |
AVS修正。EDをコンテ撮に差替え。タイムコードをゼロベースに変更。
@@ -106,6 +106,7 @@ function ShowSceneTimeCodeIfPreview(clip clip, string scene) | ||
106 | 106 | |
107 | 107 | function _MainTimeCode(clip clip, int index) |
108 | 108 | { |
109 | + index = index - 1 #ゼロベースに変換 | |
109 | 110 | current_time = 1.0 * index / FPS |
110 | 111 | h = Int(current_time / 3600) + 1 #1Hスタート |
111 | 112 | m = Int(Int(current_time) % 3600 / 60) |
@@ -126,6 +127,7 @@ function _MainTimeCode(clip clip, int index) | ||
126 | 127 | |
127 | 128 | function _SubTimeCode(clip clip, int index, int x, int y, int size) |
128 | 129 | { |
130 | + index = index - 1 #ゼロベースに変換 | |
129 | 131 | current_time = 1.0 * index / FPS |
130 | 132 | h = Int(current_time / 3600) |
131 | 133 | m = Int(Int(current_time) % 3600 / 60) |
@@ -1,7 +1,10 @@ | ||
1 | 1 | |
2 | 2 | Import("..\common.avs") |
3 | 3 | |
4 | -video = ImageSource("ED/EDkari.png", 0, 100 * FPS - 1, FPS, true, false, "RGB32").Subtitle("ED", size=80).BilinearResize(WIDTH, HEIGHT) | |
4 | +#video = ImageSource("ED/EDkari.png", 0, 100 * FPS - 1, FPS, true, false, "RGB32").Subtitle("ED", size=80).BilinearResize(WIDTH, HEIGHT) | |
5 | + | |
6 | +video = LWLibavVideoSource("..\conte\EDconte\ED2conte.mp4").BilinearResize(WIDTH, HEIGHT).ChangeFPS(FPS).ConvertToRGB32() | |
7 | +video = video + video.BlankClip(length=2 * FPS + 14) | |
5 | 8 | |
6 | 9 | video = video.ShowSceneTimeCodeIfPreview("ED") |
7 | 10 |