Quantcast Avisynth: Need Some Help with my First Script - Page 3 - digitalFAQ.com Forums [Archives]
  #41  
11-07-2006, 03:41 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
I rented it. (I know, it's bad... )
But I can tell it was field shifted (if I can trust the small function Incredible provide once to "analyse" the stream - Interlacing2Reader).
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #42  
11-07-2006, 03:51 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
If it's field shifted, TFM() should be used instead as it'll be a lot faster than using TDeint with tryweave=true. TFM can be found in the TIVTC package. Chances are that you could even use TFM on progressive material without any damage.
Reply With Quote
  #43  
11-07-2006, 03:55 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Good to know. I will use it if the next box set is the same. Thanks !
Reply With Quote
  #44  
11-07-2006, 03:56 AM
gattotimo gattotimo is offline
Free Member
 
Join Date: Oct 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
I did not understand why but first disc of the box set (1st half of season 2) is interlaced while 2 other discs are progressive.

Beside this, I need 3h per episode on my 1.3 Ghz but I did not use the adaptative script (no line "Scriptclip" in my script). This is the slowest part of the script !
So you were speaking of season 2? Unfortunally here in Italy we are a lot slower than the rest of Europe, and the only boxset currently available is the first season. Do you know something about the interlacing thing of its disc too?

BTW I see you needed 3 hrs per episode to encode at half resolution without the slowest part of the script, so maybe the speed I got it's ok: I need 4 hrs but at full resolution and with the "scriptclip" line (I found full resolution increase by almost 100% the encoding time, is it normal?)... I thought there was a way to encode ALMOST in real time (about 1 hrs for 40 mins episode), but maybe it's impossible with all the filters my script is using. Do you think I can have some boost with the Mt.dll filter at the top of the script?
Reply With Quote
  #45  
11-07-2006, 04:04 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by gattotimo
So you were speaking of season 2? Unfortunally here in Italy we are a lot slower than the rest of Europe, and the only boxset currently available is the first season. Do you know something about the interlacing thing of its disc too?
All discs progressive for the french release.

Quote:
BTW I see you needed 3 hrs per episode to encode at half resolution without the slowest part of the script, so maybe the speed I got it's ok: I need 4 hrs but at full resolution and with the "scriptclip" line (I found full resolution increase by almost 100% the encoding time, is it normal?)
Full resolution is 704*576, that means exactly twice more pixels than 352*576 .

Quote:
Do you think I can have some boost with the Mt.dll filter at the top of the script?
Works only on a real dual core P4. If you have one, then yes it should.
Reply With Quote
  #46  
11-07-2006, 04:13 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Works only on a real dual core P4. If you have one, then yes it should.
It works on HT-capable P4's as well, though the speed increase is not that huge.

You could try wrapping LRemoveDust and LimitedSharpenFaster inside MT like this:
Code:
dgdecode_mpeg2source("E:\Lavoro KVCD\lost.d2v", cpu=4, idct=7)
TFM()
BicubicResize(720,576,1./3.,1./3.,2,0,716,572)
MT("f()")
MergeLuma(blur(0.1))
MergeChroma(blur(1.58))

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

Letterbox(16,16,16,16)
ConvertToRGB24()

function f(clip c){
c
LRemoveDust_YV12(17,1)
LimitedSharpenFaster()
}

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
Never ever do deinterlacing or field matching after resizing! See where TFM is placed. Actually you should remove the whole resizing line because it's useless. You are using LetterBox to blank 16 pixels off each side anyway so no need for cropping and then resizing back to 720x576.
Reply With Quote
  #47  
11-07-2006, 04:18 AM
gattotimo gattotimo is offline
Free Member
 
Join Date: Oct 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks you both guys, I'll try your suggestions right now

EDIT: Mt didn't speed up the encoding, neither did adding the crop line to the function. But adding the converttoYUY2().converttoYV12().LRemoveDust_YV12(1 7,1) line (I read it in the thread about LS) did result in a boost. So I'm having some other tries before comparing screenshots
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth: New 2.5 script CATENA JP Avisynth Scripting 1 07-01-2003 05:53 AM
Avisynth: Need help with AVS 2.52 script for D2S telemike Avisynth Scripting 1 06-05-2003 06:03 AM
Avisynth: What better, AVS 2.5x or 2.0X script? ak47 Avisynth Scripting 1 06-02-2003 06:28 AM
Avisynth: Latest script using Avisynth 2.51 J-Wo Avisynth Scripting 6 04-08-2003 11:46 AM

Thread Tools



 
All times are GMT -5. The time now is 06:49 AM  —  vBulletin © Jelsoft Enterprises Ltd