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 10th October 2018, 13:30   #1  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
Delete every 2 frame every...

I got a movie that has 2 frames blended that I want to remove. But I don't know how to get it to work.

It seems like its

frame 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22

1. remove
2. remove
3. keep
4. keep
5. keep
6. keep
7. keep
8. keep
9. keep
10. keep
11. remove
12. remove
13. keep
14. keep
15. keep
16. keep
17. keep
18. keep
19. keep
20. keep
21. remove
22. remove

The first frame that needs to remove is "783", its text in the beginning so I don't know exactly the first frame that needs to be removed. Is it possible to take frame 10 and replace it with 11 and frame 13 to 12?

I am not allowed to post a short clip sadly, but I might be able to send on PM if its deleted after.

EDIT: I now see that one frame that is blended "235", so it might not be 2 frames every 10, but most of the time this seems to be it. I can send the file thru PM if someone can help me.
__________________
Automatic Colorization

Last edited by color; 10th October 2018 at 14:04.
color is offline   Reply With Quote
Old 10th October 2018, 14:05   #2  |  Link
VS_Fan
Registered User
 
Join Date: Jan 2016
Posts: 98
SelectEvery(clip, 10, 3, 4, 5, 6, 7, 8, 9, 10)

or:

SelectEvery(clip, 10, 2, 3, 4, 5, 6, 7, 8, 9)

SelectEvery
VS_Fan is offline   Reply With Quote
Old 10th October 2018, 14:15   #3  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
It does not work. I did try "SelectEvery(clip, 10, 3, 4, 5, 6, 7, 8, 9, 10)" first but before I realised it might be the 3rd frame that is the first one that is needed, then I tried " SelectEvery(clip, 10, 1, 2, 5, 6, 7, 8, 9, 10)", it does work a bit in the movie. it seems it skips now and then (the blended frames).

It does work to skip every 2th frame like "#SelectEvery(2, 0).Cdeblend()", but It does not work with original framerate. I want to keep all that I can.
__________________
Automatic Colorization

Last edited by color; 22nd October 2018 at 08:24.
color is offline   Reply With Quote
Old 10th October 2018, 14:23   #4  |  Link
VS_Fan
Registered User
 
Join Date: Jan 2016
Posts: 98
Quote:
Originally Posted by color View Post
EDIT: I now see that one frame that is blended "235", so it might not be 2 frames every 10, but most of the time this seems to be it. I can send the file thru PM if someone can help me.
If you were to remove duplicated frames (2 in every 10), you could try:
Code:
#TDecimate filter in TIVTC plugin package:
TDecimate(CycleR=2, Cycle=10)
VS_Fan is offline   Reply With Quote
Old 10th October 2018, 14:41   #5  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
It does still after using "TDecimate(CycleR=2, Cycle=10)" have some blended frames.
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 10th October 2018, 16:47   #6  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
TDecimate is meant for deleting duplicates rather than blends. You could try srestore(x), where x is the current framerate multipled by 0.8, although I'm not sure how well it would work in this case.

Be advised that if you jump around in the file (in VirtualDub for example), srestore takes a few frames to stabilise.

Actually, given that you've got two blended frames in a row, you may need something more complicated to get a decent result. Are they duplicates of each other? Do all original frames exist on either side of the blends?
__________________
My AviSynth filters / I'm the Doctor

Last edited by wonkey_monkey; 10th October 2018 at 16:49.
wonkey_monkey is offline   Reply With Quote
Old 10th October 2018, 16:51   #7  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
It does work with srestore when first skipping every second frame. I think that is the best to be done. Thank you.
__________________
Automatic Colorization
color 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 10:17.


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