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 15th October 2024, 01:49   #1  |  Link
TCmullet
Registered User
 
Join Date: Nov 2003
Posts: 416
Need similar to Vdub's Tweaker only part of frame

I need a function similar to VirtualDub's Tweaker, which I used to use to copy a frame over the top of subsequent frames. Some weird combination of "loop" commands could do it probably.

However, my need is narrower. Let's say my video is 9 frames long, number 0 thru 8. I need to copy frame 1 on top of frames 2, 3 and 4, BUT ONLY lines 123 thru 129 of the frame.

Does anyone know of something that does this? I suppose I could settle for exactly what Tweaker does, but I really don't want to tamper with lines outside my range of 123-129. (The damage is within lines 123-129 on frames 2-4.)

EDIT: I supposed I should add that the REAL problem is several lines are radically shift sideways. So really, my desire is a way to manually shift just those lines in those frames. Maybe THAT exists already. But there ARE cases where I would need to not directly fix the particular lines but copy them from the prior frame.

Last edited by TCmullet; 15th October 2024 at 02:57.
TCmullet is offline   Reply With Quote
Old 15th October 2024, 07:45   #2  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,694
HorizontalStripReplacer, horizontal shift not yet implemented:
Code:
LWLibavVideoSource("yourfilepathhere")
replacestripsourceframe=1
replacestripstartframe=2
replacestripendframe=4
replacestripstartline=123
replacestripendline=129
source422=ConvertToYUV422()
replacestrip=Crop(FreezeFrame(source422,0,framecount-1,replacestripsourceframe),0,replacestripstartline,0,1+replacestripendline-replacestripstartline)
Trim(source422,0,-1)++Trim(StackVertical(Crop(source422,0,0,0,replacestripstartline-1),replacestrip,Crop(source422,0,replacestripendline,0,0)),replacestripstartframe-1,replacestripendframe)++Trim(source422,replacestripendframe+1,0)
In the end I would calculate replacestrip from either manually shifted individual lines, or even better: motion-interpolated from the neighbored good frames.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."

Last edited by Emulgator; 15th October 2024 at 17:48.
Emulgator 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 22:16.


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