View Full Version : how to use tweak for a fixed amount of frames?
dede95064
28th June 2003, 21:09
i'm having problems trying to use tweak ONLY for the last half hour of a movie i have. it's in b&w and the contrast/brightness settings for the movie towards the end are really awful.
how do i manage to tweak that last 30 min. of the movie?
for instance, if i want to tweak frames 101,232 through 115,594(end), how do i set this up using tweak?
i've tried these but with no success:
Tweak(101232,bright=-15,cont=.75) #thinking that from that frame on i needed to tweak.
SelectRangeEvery(101232,14362).Tweak(bright=-15,cont=.75).
also, where is a good place to place this in the script?
any help would be appreciated. :)
bill_baroud
28th June 2003, 21:29
use Trim()
SelectRangeEvery : Selects a range of frames with a fixed period.
SelectRangeEvery(101232,14362) select 14362 frames each 101232 frames.
you should try www.avisynth.org -_-
and this post should be in the Avisynth Usage section.
dede95064
28th June 2003, 22:09
oops. wrong forum indeed. sorry.
i tried trim but i'm not trying to trim out those frames. i'm just trying to tweak them.
i did go to avisynth.org but i didn't understand the lingo too well for using tweak when it comes to selecting some frames.
still need help.
manono
29th June 2003, 00:10
Trim1=Trim(0,101231)
Trim2=Trim(101232,0).Tweak(Bright=-15,Cont=.75)
Trim1+Trim2
dede95064
29th June 2003, 00:27
wow manono!
that's exactly what i was looking for. thank you soo much!! :D
i have to figure out how that works. what if i wanted to fix the middle of the movie only instead from 101232 to end, to something like 101,232 to 103,240---where 115,594 is the last frame??
thanks again for your help!!
jorel
29th June 2003, 00:36
manono,
you are effective.
in your "simple" 3 lines i learn more than reading tons for days.
thank you very much!
:)
manono
29th June 2003, 01:08
what if i wanted to fix the middle of the movie...
Trim1=Trim(0,101231)
Trim2=Trim(101232,103240).Tweak(Bright=-15,Cont=.75)
Trim3=Trim(103241,0)
Trim1+Trim2+Trim3
It's not rocket science, guys. Believe me, if I can figure it out, anyone can. Isn't that so, Wilbert? :) But glad to help out.
dede95064
29th June 2003, 02:21
geez, manono. you've done it again! thanks a million! you're a lifesaver. :D
Guest
29th June 2003, 14:26
ApplyRange(101232,115594,"Tweak",0.0,1.0,-15,0.75)
It's a little more convenient than the trim approach.
dede95064
29th June 2003, 17:09
wow. that one looks like it's very advanced scripting as well. thanks neuron2! i'll try that one too. :)
manono
29th June 2003, 17:35
Yep, now that's rocket science. :) It may be too much for my feeble brain, but I'll give it a try. Thanks neuron2.
jorel
29th June 2003, 18:09
too much for you manono?
imagine for me!
i'm hypnotized.
thanks neuron2.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.