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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd December 2016, 09:02   #1  |  Link
konstantin1
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?
konstantin1 is offline   Reply With Quote
Old 3rd December 2016, 01:51   #2  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,373
test reply

can't seem to post/edit properly, forum seems borked.

I have a solution for you but can't post it, so that sucks.
__________________
My AviSynth filters / I'm the Doctor

Last edited by wonkey_monkey; 3rd December 2016 at 01:55. Reason: test edit
wonkey_monkey is offline   Reply With Quote
Old 3rd December 2016, 15:57   #3  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
I was locked out too. Was your solution something like this?

Quote:
Originally Posted by konstantin1 View Post
I get a lot of color in the changing colored border, but not in the right order, not like in the rainbow.
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)
raffriff42 is offline   Reply With Quote
Old 3rd December 2016, 19:35   #4  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,373
No, yours is way better
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Reply

Tags
animate, rainbow

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.