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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Mar 2014
Posts: 38
|
Rainbow color transition with Animate filter
I would like to add a continuously changing colored borders to my clip. My clip is 406 pixel width and 360 height, contains 23213 frames (12 min 54 sec).
I want to add a 117 pixel border on the left and right to make a 640x360 clip. I tried Animate() filter to achieve the rainbow coloured transition, but no luck: v=lanczos4resize(406,360).converttorgb24() animate(v,0,23213,"addborders",117,0,117,0,0,117,0,117,0,16777215) Colour transition should be appear, because I pass 10 parameters after "addborders": first 4 for the border dimensions, 5th is the beginning colour in integer (0), next 4 parameter is for the border dimension again, doesn't change, only the 10th parameter is altered from the 0 color int to the 0xffffff corresponding value: 16777215 In fact I get a lot of color in the changing colored border, but not in the right order, not like in the rainbow. How can I achieve this goal? Maybe should I use ScriptClip() instead of Animate() and using current_frame somehow to get the desired color code? |
|
|
|
|
|
#3 | Link | |
|
Retried Guesser
Join Date: Jun 2012
Posts: 1,371
|
I was locked out too. Was your solution something like this?
Quote:
Code:
v=Lanczos4Resize(406,360).ConvertToYV24 ## YUV required b=BlankClip(v, width=117, color=color_turquoise) ## any starting color r=Animate(b, 0, 21313, "tweak", \ 0.0, \ 120*360.0) ## set number of cycles here StackHorizontal(r, v, r) |
|
|
|
|
![]() |
| Tags |
| animate, rainbow |
| Thread Tools | |
| Display Modes | |
|
|