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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 29th September 2019, 11:06   #1  |  Link
HappyLee
Registered User
 
Join Date: Mar 2013
Posts: 27
Calculating row information?

Hi. I'm working on a script to automatically remove specific broken lines from broken frames (kind of like DeScratch, but more precise).

Right now, the only thing troubling me is that, I can't find any filter or function to calculate row information. I want to set a row completely white if its average luma is above a certain value, or otherwise, completely black.

For the last script, I used something like this:
StackHorizontal(last,last,last,last).BilinearResize(4,height)
But I don't find it precise nor smart.

Technically, I can do something like this:
ConvertToY8()
StackVertical(Crop(0,0,0,1).ScriptClip("..."),Crop(0,1,0,1).ScriptClip("..."),Crop(0,2,0,1).ScriptClip("..."), ...)
But I don't find it elegant enough, because the video has 480 rows, not 4 or 8. Even if I achieve it with functions & recursion, I'm not sure if the speed would be OK, since StackVertical would be used 479 times.

So I'm humbly asking advanced video workers here, if there's any filter that can apply to rows, or calculate row information. Thank you.

Last edited by HappyLee; 29th September 2019 at 11:09.
HappyLee is offline   Reply With Quote
 

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 12:59.


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