Little optimizations in optimal script
Hello guys,
The optimal script does a really good job, but it can do it a little faster :!: ORIGINAL Code:
MaxTreshold = 1.50 Code:
nf = 0 # Current frame. 2/ fmin is called only with int values so why declare f1 and f2 as float ? My tests on a 5 min video : 31'28s for encoding with the "original" script, 31'04s with the new one I also made test with temporalcleaner insteed of temporalsoften, and is A LOT faster : 20'27s for encoding the same video. (sample size was quite the same) I used this parameters : Code:
temporalcleaner(fmin(3+nf,7),fmin(8+nf,15)) |
Can you post the full script made with TemporalCleaner please? I'd like to test it against the current optimal script!
|
Quote:
Code:
nf = 0 # Current frame. |
Hi Dialhot,
Thanks for the update :) Yep, you sure got that right :!: I'm updating the script now with your changes: Code:
ScriptClip("nf = round(YDifferenceToNext())"+chr(13)+ "nf > 2 ? \ -kwag |
Kwag I noticed you didn't change the functions to integer instead of float like in dialhots example. In the sticky you only changed the adaptive portion. Did you mean to do this?
|
audi2honda my friend,
Kwag is testing the news like me. i trust in Phil and Kwag too, he only do tests cos he want to show the best for us all. he will post precise results :!: :wink: |
Quote:
|
Quote:
Doing it now :!: Thanks and thanks ovg64 for the PM too ;) -kwag |
WOW! 8O
I tested to run a full prediction just to see the speed improvement. AMAZING! The prediction used to take about 7 minutes for this movie (I Spy) and with this new optimization it only takes 3.5 minutes!!! I couldn't believe my eyes! :D |
Yep, there's a BIG difference in speed between floating point to integer math :wink:
To Dialhot: Have a beer :mrgreen: -kwag |
8O
yeah, jet script! :) editing: predictions.. old script: Tries : 6 Total Time For Predicition: 00:04:04 new script: Tries : 7 Total Time For Predicition: 00:03:49 one more "try" and with less total time. :) |
I'm only about 15 minutes into a new encode, but according to the time counter in TMPGEnc my encode has gone from 3 hours to 2:15 with the latest integer changes :!: :!:
And the remaining time clock is decreasing faster then real time. 8O 8O :D |
Yes encoding right now n have 2hrs.50 min. to the goal,
looks like we may have to raise the max speed limit again :!: :mrgreen: |
how is that possible??
Ok, I got a 1,4 ghz amd, but it takes at least 10 hr to encode muvie!! Do u think that tuning could help me out?? Plautzer |
Well my encode just finished and this was using a 70% film 30% NTSC video hybrid source with telecide and decimate. I used 48 frame samples and 2 samples per minute which slowed down prediction a lot, but with this hybrid source I thought it might help.
Well the results are in :!: With the latest Optimal script today with the int variables I got 100% accuracy on my prediciton that when muxed came to exactly 795MB 8O 8O :!: :!: :!: :D Oh and not to mention it ran blazingly fast Plautzer. my times are for a P4 2.8ghz machine with ddr266. I also have a 1.8ghz machine at home that takes about 5 hours. Yours should be faster. Is it a P4? |
Quote:
|
I got a AMD athlon 1600 xp+!!
I guess a gotta upgrade it soon!! I encode it on 2 cds, i guess it take that double es as long!! plautzer |
Hi
There's no difference for me in speed :( I've got an athlon 2400, 512M0 DRR and windows xp Kwag, what's the problem here I'm using pal Another question: when i encode with tok the dc component precision is set to 9 in tmpgenc. I'm using your settins tab for tok. Should not be 8? ARAGORN |
Quote:
|
Quote:
-kwag |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.