View Full Version : Can encoding speed increase if change the filter sequence?
I'm running on a shameful P3 800mhz laptop
This is the script I have. I just tested it for a while and the encoding speed is terrible (1 fps)
loadplugin("C:\Program Files\AviSynth2\plugins\mpeg2dec3\mpeg2dec3.dll")
loadplugin("C:\Program Files\AviSynth2\plugins\vsfilter.dll")
loadplugin("C:\Program Files\AviSynth2\plugins\dust\dustv5.dll")
loadplugin("C:\Program Files\AviSynth2\plugins\decomb\decomb.dll")
loadplugin("C:\Program Files\AviSynth2\plugins\coloryuy2\coloryuy2.dll")
source = mpeg2source("d:\ps2 movies\ffx ending.d2v")
movie = source .trim(0,10230) .ColorYUY2(Levels="PC->TV") .PixieDust
credit = source .trim(10231,0)
source = movie + credit
return source .textsub("d:\ps2 movies\ssa\final fantasy.ssa") .telecide(post=false) .decimate(cycle=5)
My question is can I increase the encoding speed if i change the position of filter?
Another question is that will seperate the clip into 2 parts like above produce av desync?
Thanks for any suggestions :)
jarthel
9th March 2003, 16:15
a big YES.
Just imagine, putting the resize filter immediately after the mpeg2source line. This means that the succeeding filters after the resize filter will have less pixels to process.
I think it's also the same for decomd or any other IVTC filter as they are better used as the start as that means succeeding filters will have less frames.
Here's a sample script I'm using
----------------------
body=mpeg2source("e:\dvdrips\nadesico1\nadesico1.d2v",idct=5,cpu=6,iPP=true).crop(16,4,688,568).FieldDeinterlace().TemporalSoften(1,5,0).Convolution3d(preset="animeHQ").lanczosresize(640,480)
--------------------
As you can see, I put the resize filter at the very end as someone mentioned that you get better quality if it's at the end. How much better? I have no idea. :)
jayel
ps. I didn't have IVTC as I only need to deinterlace the video. The video is PAL.
Originally posted by jarthel
a big YES.
I think it's also the same for decomd or any other IVTC filter as they are better used as the start as that means succeeding filters will have less frames.
Thanks! I just moved the IVTC filter up and the speed increased quite a bit :D
Didée
9th March 2003, 23:50
@ TNM
1. I see no resize in your above script. Is that correct???
2. One *serious* error, and some tips:
- telecide should DEFINETLY be your very first filter (after cropping), not the last one! Never do any filtering before field operations.
- (If you are resizing) Generally I use all smoothers/denoisers before resizing. Only exception is ... dust! Put the dust filter after resizing, and your encode will run somewhat faster. (Try a sequence without dust, and look at the speed ... dust is great, but slow as hell - propably a quadratic relation to resolution.)
- Are you really sure you want to use hardcoded subtitles? With external subs, your overall quality will improve considerably.
TNM
10th March 2003, 06:03
Originally posted by Didée
@ TNM
1. I see no resize in your above script. Is that correct???
2. One *serious* error, and some tips:
- telecide should DEFINETLY be your very first filter (after cropping), not the last one! Never do any filtering before field operations.
- (If you are resizing) Generally I use all smoothers/denoisers before resizing. Only exception is ... dust! Put the dust filter after resizing, and your encode will run somewhat faster. (Try a sequence without dust, and look at the speed ... dust is great, but slow as hell - propably a quadratic relation to resolution.)
- Are you really sure you want to use hardcoded subtitles? With external subs, your overall quality will improve considerably.
The original aspect ratio is 640x480 so i think resize isn't necessary
Yeah, I move telecide to the front and the speed increases quite a bit :cool:
I'm additect to dust althought it's slow as hell. I'm still using avs2.07 mainly because of dust and coloryuy2 :D
The ssa isn't really subtitle. It's just there to show some credits for my encoding :D (this isn't really a movie, it's just a CG movie clip ripped from a PS2 game)
I have another question. If the original fps was 29.97 and after I telecide to 23.976, the playback is jerky so does that mean the fps 29.97 is true and I shouldn't telecide at all?
Thanks a lot for you tips :)
Guest
10th March 2003, 07:41
Moving Decimate up means the following filters have 1/5 less frames to process.
Your question about frame rates, jerkiness, etc., implies that you don't really fully know what you are doing. You should undergo a remedial process, otherwise your encodes may be suboptimal.
TNM
10th March 2003, 09:33
Originally posted by neuron2
Your question about frame rates, jerkiness, etc., implies that you don't really fully know what you are doing. You should undergo a remedial process, otherwise your encodes may be suboptimal.
You're right. Since I had a hard time understanding Doom9's guide about decomb, I have to copy what people do the most :p
Guest
10th March 2003, 12:05
Have you read and absorbed this:
http://www.doom9.org/ivtc-tut.htm
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.