digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: New Script seems to be slow (http://www.digitalfaq.com/archives/avisynth/3840-avisynth-script-slow.html)

Jellygoose 06-02-2003 05:54 AM

New Script seems to be S L O W !!!
 
Hi all...

Well there's definetely something wrong here... I encoded a 2 hour movie at 704x576 CQ of 63.2 and the left the computer on... I just came home, and it's still encoding (98%) and TMPGEnc says it already encoded 17 and half an hour :!: :!: :!: 8O
Ok I think that's a little too much for my XP 1800+ 256mb DDR Ram...
here's the script I tested... Could it be FluxSmooth ??

Code:

## DLL Section ##
#
LoadPlugin("E:\MPEG-Tools\FitCD\MPEG2Dec3.dll")
LoadPlugin("E:\MPEG-Tools\FitCD\STMedianFilter.dll")
LoadPlugin("E:\MPEG-Tools\FitCD\UnFilter.dll")
LoadPlugin("E:\MPEG-Tools\FitCD\FluxSmooth-2.5.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.58
scd_trigger = 1.0 # Scene change trigger value.
cf = 0 # Current frame.
lf = 0 # Last frame
#
####

## Main section and static filters ###
#
Mpeg2Source("E:\Sweet Home Alabama\sweet.d2v")
Limiter()
UnFilter(35, 35)
BicubicResize(704,432,0,0.6,0,0,720,576)
STMedianFilter(8, 32, 0, 0 )
TemporalSoften(2,7,7,3,2) # Experimental!
FluxSmooth(5,5)
MergeChroma(blur(1.50))
MergeLuma(blur( 0.05))
#
####

## Dynamic Linear Adaptive filtering and Scene Change Detection ##
#
FrameEvaluate("lf = YDifferenceFromPrevious()/16")
FrameEvaluate("cf = YDifferenceToNext()/16")
ScriptClip("(cf - lf) < scd_trigger && cf < MaxTreshold ? MergeLuma(blur(cf)) : MergeLuma(blur( 0.05 ))")
ScriptClip("(cf - lf) < scd_trigger && cf >= MaxTreshold ? MergeLuma(blur(MaxTreshold)) : MergeLuma(blur( 0.05 ))")
LetterBox(0,0,28,28) # Depends on situation. Use MovieStacker!
AddBorders(0,72,0,72) # Depends on situation. Use MovieStacker!
Limiter()
#
####

:roll:

DorvalCS 06-02-2003 06:06 AM

I experinced the same thing when I tried FluxSmooth with the new Script! It more than doubled my encode time :roll:

Jellygoose 06-02-2003 06:22 AM

I hope it's just that.. 18 hours and it's finished now... 8O

Bchteam 06-02-2003 09:00 AM

Why did you add Fluxsmooth???

Usually, I need 4-5 Hours for one Film with Kwag's latest script.

Jellygoose 06-02-2003 10:22 AM

Ok, the problem was definetely Flux... There has to be something wrong with the 2.5x version of that filter... :!:
I added FluxSmooth because I was benchmarking several Temporal Filters against each other. Since Flux does Temporal and Spatial Smoothing I tried it out as a compromise... :wink:

ovg64 06-02-2003 02:52 PM

It took me 7 hrs. on an xp 1700 with this script:

MaxTreshold = 1.58
scd_trigger = 10 # Scene change trigger value.
cf = 0 # Current frame.
lf = 0 # Last frame
val = 0 # Dynamic value applied to filters
Mpeg2Source("C:\xxx\THC.d2v")
asharp(2,0)
BicubicResize(480, 366, 0, 0.6, 6, 0, 708, 480)
deen("a2d",2,10,12)
deen("c3d",1,10,12)
TemporalSoften(2,7,7,3,2)
MergeChroma(blur(1.50))
MergeLuma(blur(0.2))
FrameEvaluate("cf = YDifferenceToNext()")
FrameEvaluate("val = cf / 16")
ScriptClip("(cf - lf < scd_trigger) && ( val < MaxTreshold) ? MergeLuma(blur( val )) : MergeLuma(blur( 0.4 ))")
ScriptClip("(cf - lf < scd_trigger) && ( val >= MaxTreshold) ? MergeLuma(blur(MaxTreshold)) : MergeLuma(blur( 0.4 ))")
AddBorders(0, 57, 0, 57)
LetterBox(0, 0, 16, 16)
Limiter()


and i was using TMPGEnc color Correction filter. So there is defenetly something going on with Fluxsmooth.

Jellygoose 06-02-2003 02:57 PM

Yep, FluxSmooth seems to be EXTREMELY slow in YV12... :cry:
I tried it again without FluxSmooth, and this time the same movie was done in 6 hours straight!
that's 12 hours extra-time with Flux! That even beats FaeryDust by far!!

kwag 06-02-2003 03:24 PM

Hey ovg64, update your script :!:
You're using an older version :!: :!:

-kwag

mfb 06-03-2003 05:58 AM

Here are the results of my last-night encodes...I used FluxSmooth two
times, and it took longer but not that much, mmh :!:

P4, 1.8 GH, 512MB-333

Code:

Planet of the Apes (115 min., 2.35:1)
latest optimal-script jun-02-2003 (like it is)

D:\Video\_Movie1\affen_dlaf (544x576) x3 cq70,2 [full].m1v
  Format: ToK (MPEG-1 544x576 25fps CQ 70,2)
  Video: D:\Video\_Movie1\affen_dlaf (544x576).avs
  Audio: none

  Result: Succeeded
  Dealing time: 05:05:53
-------------------------------------------------------------


The Bridges of madison county (129 min., 1.78:1)
latest optimal-script jun-02-2003 ( with FluxSmooth(3,3) )

D:\Video\_Movie4\Layer1\bruecken_dlaf (480x576) x3 cq 637 [full].m1v
  Format: ToK (MPEG-1 480x576 25fps CQ 63,7)
  Video: D:\Video\_Movie4\Layer1\bruecken_dlaf (480x576).avs
  Audio: none

  Result: Succeeded
  Dealing time: 05:28:44
-------------------------------------------------------------


Children of a lesser God (114 min, 1.78:1)
latest optimal-script jun-02-2003 ( with FluxSmooth(3,3) )

D:\Video\_Movie2\kinder (544x576) x3 cq 63 [full].m1v
  Format: ToK (MPEG-1 544x576 25fps CQ 63)
  Video: D:\Video\_Movie2\kinder (544x576).avs
  Audio: none

  Result: Succeeded
  Dealing time: 05:54:02

regards, ***mfb***


All times are GMT -5. The time now is 09:22 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.