Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th November 2013, 01:32   #1  |  Link
althor1138
Registered User
 
Join Date: Jan 2012
Location: Sweden
Posts: 19
Dfttest,Scriptclip and current_frame help.

I want to make a function that uses dfttest to sample noise from the current frame and denoise the current frame with aforementioned noise sample. The function below doesn't work because I believe that current_frame is not being defined as a number inside the string. Is there a way to do this? I'd be grateful for any input.

Quote:
Function denoise(clip z)
{
scriptclip(z,"""dfttest(sigma=0,dither=0,sbsize=30,sosize=15,tbsize=9,tosize=3,nstring="a:3 current_frame,0,440,10")""")
}
althor1138 is offline   Reply With Quote
Old 24th November 2013, 01:40   #2  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,380
Code:
...,nstring=("a:3
"+string(current_frame)+",0,440,10")""")
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 24th November 2013, 01:46   #3  |  Link
althor1138
Registered User
 
Join Date: Jan 2012
Location: Sweden
Posts: 19
That works exactly like it should. Thank you!
althor1138 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:49.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.