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 17th November 2021, 01:05   #41  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 541
Quote:
Originally Posted by stephen22 View Post
Better approach is to generate a text file...
Can't you do everything in one go from one script, like using RT_Stats to parse clips and write/read from its DB files?

And why not deal with the missing frames issue at the capture stage instead of interpolating them after?

Last edited by VoodooFX; 17th November 2021 at 01:13.
VoodooFX is offline   Reply With Quote
Old 17th November 2021, 02:28   #42  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,577
Quote:
Originally Posted by stephen22 View Post
That does work but only if dupes and drops are guaranteed to alternate, which doesn't usually happen. Better approach is to generate a text file which specifies the actual frame number required, indicating whether it's from the original clip or an interpolation. A good way of doing this is by by making interpolated frames negative, so 127 means frame 127 from the source clip and -127 means frame 127 from the interpolation clip.

So this is the method, based on John's brilliant insights - it works pretty well! <snip>
Wow, thanks for all that. I put this project aside, since I had hit a wall, and also because I flew cross country to the east coast where I a wedding reception. I mention this because the actual wedding occurred a year ago, during lockdown, and the only video if the actual ceremony is something recorded on Zoom. Needless to say, that video is filled with the exact problems this script is supposed to fix.

I hope to get to your code in a few days and see if I can make it work. Thanks for all the help.
johnmeyer is offline   Reply With Quote
Old 17th November 2021, 11:44   #43  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,228
By the way, I've just noticed this
Quote:
Originally Posted by poisondeathray View Post
For the mask part, if you wanted to use levels, it would be this for 8bit YUV

Code:
BlackFrame = BlankClip( source, Color=$000000 ).levels(16,1,235,0,255,false)
WhiteFrame = BlankClip( source, Color=$FFFFFF ).levels(16,1,235,16,235,false)
thats wrong, should be same [levels] for both black and white [as above, white comes out at 235 not 255]
Code:
BlackFrame = BlankClip( source, Color=$000000 ).levels(16,1,235,0,255,false)    # Must Haves in Blue
WhiteFrame = BlankClip( source, Color=$FFFFFF ).levels(16,1,235,0,255,false)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 17th November 2021 at 11:57.
StainlessS is offline   Reply With Quote
Old 17th November 2021, 18:06   #44  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 541
Quote:
Originally Posted by StainlessS View Post
[color_YUV AVS+ only]
Are you sure? Wiki says that it's added from v2.55.

Without levels should be faster:
Code:
BlackFrame = BlankClip( source, Color_yuv=$000000, pixel_type="Y8" )
WhiteFrame = BlankClip( source, Color_yuv=$FFFFFF, pixel_type="Y8" )

Last edited by VoodooFX; 17th November 2021 at 18:08.
VoodooFX is offline   Reply With Quote
Old 17th November 2021, 18:33   #45  |  Link
stephen22
Registered User
 
Join Date: Jan 2007
Posts: 78
Quote:
Originally Posted by johnmeyer View Post
the actual wedding occurred a year ago, during lockdown, and the only video if the actual ceremony is something recorded on Zoom. Needless to say, that video is filled with the exact problems this script is supposed to fix.
I'm having a celebration myself this weekend - my 80th!

If you let me have some of your wedding footage, I'll put it through my program and generate a textfile for the Avisynth script so we can see how well it works. The constraints of my vintage computer mean I can only process up to 16,000 frames at a time, but of course I can do it in sections.
stephen22 is offline   Reply With Quote
Old 17th November 2021, 20:14   #46  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,228
Quote:
Are you sure? Wiki says that it's added from v2.55.
Oops, yes, just checked in v2.58 and it is implemented.
Guess I got mixed up with Color_YUV for AddBorders and Letterbox in AVS+.
[ I even did a script to convert Colors_RGB.avsi to a Colors_YUV.avsi, so go figure ]

Quote:
I'm having a celebration myself this weekend - my 80th!
What Wedding Aniversary, ... Respect.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 18th November 2021 at 13:02.
StainlessS is offline   Reply With Quote
Old 18th November 2021, 04:41   #47  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,577
Quote:
Originally Posted by stephen22 View Post
I'm having a celebration myself this weekend - my 80th!
Congratulations. I've got 70 coming up next year.
Quote:
Originally Posted by stephen22 View Post
If you let me have some of your wedding footage, I'll put it through my program and generate a textfile for the Avisynth script so we can see how well it works. The constraints of my vintage computer mean I can only process up to 16,000 frames at a time, but of course I can do it in sections.
Let me see if I can get it up and running myself because I'll need to do this again in the future.

I keep getting interrupted with more projects and things that need fixing (our microwave just quit, and I'd rather repair it than get a new one because it is built in). I could go on, but I'm about three interrupts deep and will need to pop the stack several times before I get back to this.
johnmeyer is offline   Reply With Quote
Old 19th April 2022, 14:13   #48  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,178
OT
Microwave oven: If it pops fuses you may go for a search to inrush current limiter.
Could be a timed relay bridging a resistor, the latter being burnt or bad contact, or a NTC.
I drew a partial schematic of a Siemens HE0867 recently. PM me if you like.
/OT
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're working on that issue. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 19th April 2022, 19:05   #49  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,577
Quote:
Originally Posted by Emulgator View Post
OT
Microwave oven: If it pops fuses you may go for a search to inrush current limiter.
Could be a timed relay bridging a resistor, the latter being burnt or bad contact, or a NTC.
I drew a partial schematic of a Siemens HE0867 recently. PM me if you like.
/OT
I've repaired several microwaves. I'd done this one twice before. It is the interlock switch. The contacts pit over time (this was built in 1994) and then it either doesn't work, or blows the house circuit breaker each time it starts. The last two times I removed the switch and then sawed through the ultrasonic welds on the switch, filed down the contacts with an ignition switch, and then glued it back together. (It is physically large and therefore easy to repair.) I got 4-5 years from those patches.

This time I decided that method had run its course, so I poked around and, to my great amazement, found an NIB exact replacement. I installed it, the part works perfectly, and I expect the microwave will probably outlast me (something, I now realize, is probably true of a lot of things around here).
johnmeyer is offline   Reply With Quote
Old 20th April 2022, 09:51   #50  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,178
Congrats ! Yes, hardswitching that 1,5kW transformer demands its toll from the contacts...
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're working on that issue. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Reply

Tags
drops, duplicates, tdecimate

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 05:50.


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