Apply Filter to Specific Frames Only >> Mobile Development >> FORUM for IT
FORUM for IT

FORUM for IT



SearchSearch   Users   Registration   Entrance
Today: 13.07.2025 - 15:16:16
Pages:  1  

Apply Filter to Specific Frames Only

Advertising

.
AuthorMessage

dave1126

user




Statistics:
Messages: 226
Registration: 01.31.2002

IS there a way to apply a filter to a specific range of frames? I have several filters in my script that I want to work on the entire encode, but I want one of them to filter in a specific range of frames only. Is this possible?

---------------------
Message # 1 06.06.20 - 07:13:44
RE: Apply Filter to Specific Frames Only

SDbboy

user




Statistics:
Messages: 2,114
Registration: 04.09.2002

source=("c:\movie.avi") a=trim(source,0,100) #trim first 100 frames b=trim(source,101,0) #trim frames 101 to end a1=BicubicResize(a,640,480,0,0.5) a2=c3d(a1) done1=a2 b1=BilinearResize(b,640,480) b2=LumaFilter(b1) done2=b2 alldone=done1+done2 return alldone Thats how I do this kind of thing anyway. I find it is useful for credits when I use it with xvid's credits treatment.

---------------------
"To live in the hearts we leave behind is to never die" -Carl Sagan
Message # 2 06.06.20 - 07:21:44
RE: Apply Filter to Specific Frames Only

87nitro325is

user




Statistics:
Messages: 148
Registration: 11.09.2003

If you want to use Convolution3D and UnDot on the whole thing and just ReverseFieldDominance on frames 2000-25000, it would look like this: LoadPlugin("c:\Convolution3D.dll") LoadPlugin("c:\UnDot.dll") source=("c:\movie.avi") a=Trim(source,0,1999) b=Trim(source,2000,25000) c=Trim(source,25001,0) a1=Convolution3D(a,Preset="MovieHQ") a2=UnDot(a1) done1=a2 b1=Convolution3D(b,Preset="MovieHQ") b2=UnDot(b1) b3=ReverseFieldDominance(b2) done2=b3 c1=Convolution3D(c,Preset="MovieHQ") c2=UnDot(c1) done3=c2 alldone=done1+done2+done3 return alldone There should be a faster way to do this, ie put c3d and undot in before you trim but for some reason I couldn't make it work when I was debugging it, but it should probably work.

---------------------
Message # 3 06.06.20 - 07:33:10
RE: Apply Filter to Specific Frames Only

4-BNGR

user




Statistics:
Messages: 89
Registration: 07.03.2002

Sorry, Acaila. I seem to have a tendency to make things way harder than they need to be. Thanks, that is much simpler.

---------------------
1997 Z3 1.9L - Downing Atlanta Super Charger,Rspeed Check Valve,VDO Boost Gague,Custom Panel,NGK Plugs,SS CatBack Exhaust,Dinan CAI,Ron Stygar Short Shifter,Ron Stygar Clutch Stop,Alpine CD Tuner,MBQ 5.25" Drivers 2003 Mitsubishi Lancer Evolution VII
Message # 4 06.06.20 - 07:42:53
RE: Apply Filter to Specific Frames Only

Lee22

user




Statistics:
Messages: 73
Registration: 03.22.2001

I think I've got it. Thank you for your assistance!

---------------------
Message # 5 06.06.20 - 07:46:53
RE: Apply Filter to Specific Frames Only

tranmanm3

user




Statistics:
Messages: 107
Registration: 06.06.2001

I got around to trying this, and I keep getting this script error in VirtualDubMod (1.5.4.1): Invalid arguments to function "Convolution3D" Here's my script: LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3D.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ReverseFieldDominance.dll") Source=("e:\capture.avi").Convolution3D(0,8,12,10,16,2,0).UnDot() part1=Trim(Source,0,8290) part2=Trim(Source,8291,84470).ReverseFieldDominance() part3=Trim(Source,84471,0) Return part1+part2+part3 I am using AVISynth 2.52 What am I doing wrong?

---------------------
Tony
Message # 6 06.06.20 - 07:51:42
RE: Apply Filter to Specific Frames Only

ToniTune

user




Statistics:
Messages: 59
Registration: 02.15.2002

What can I say, you guys are great! Before I posted the last time, I did try putting "AVI" before each "Source," but it still wouldn't work. Then I put it just before the first "Source" and it gave me an error that "Source is not a known command." Omitting the other Sources (the ones in the trim portion of the script) seems to have done the trick. Thanks again.

---------------------
Message # 7 06.06.20 - 07:55:39
RE: Apply Filter to Specific Frames Only

krystos

user




Statistics:
Messages: 432
Registration: 11.25.2003

Ah ha, that makes perfect sense.

---------------------
Message # 8 06.06.20 - 08:04:13
RE: Apply Filter to Specific Frames Only

GrifM3

user




Statistics:
Messages: 540
Registration: 09.23.2001

Just wanted to let you know the script worked great! The encode's finally done. Thanks to everyone for the help.

---------------------
Message # 9 06.06.20 - 08:08:11
RE: Apply Filter to Specific Frames Only
Mixers - Requests just for us : Previous topic
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants