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 6th January 2010, 13:40   #1  |  Link
aegisofrime
Registered User
 
Join Date: Apr 2009
Posts: 478
Automatic bad frames recreation?

Hi, I wondering if the following is possible.

What I would like is a first part, that compares adjacent frames. If the difference is too great, indicating a bad or corrupted frame, the frame numbers will be stored in a text file or some other method, for the second part.

The second part will be to feed the bad frames found into MFlowInter so that it can interpolate and fix these frames.

The MFlowInter script recommended on the MVtools site:

Code:
AVISource("c:\test.avi") # or MPEG2Source, DirectShowSource, some previous filter, etc
super = MSuper()
backward_vectors = MAnalyse(super, isb = true, delta=2)
forward_vectors = MAnalyse(super, isb = false, delta=2)
inter = MFlowInter(super, backward_vectors, forward_vectors, time=50, ml=70)
# Assume bad frames are 50 and 60
trim(0,49) ++ inter.trim(49,-1) \
 ++ trim(51,59) ++ inter.trim(59,-1) ++ trim(61,0)
The scripting is too complex for me, and I'm wondering if anyone can help me on this. Thanks!
aegisofrime is offline   Reply With Quote
Old 6th January 2010, 15:53   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by aegisofrime View Post
If the difference is too great, indicating a bad or corrupted frame
First, why are you getting all these "bad" frames? Shouldn't you fix that root cause?

Second, a large change could be simply a scene change or other large valid change in the video. I don't think this property will adequately isolate "bad" frames.
Guest is offline   Reply With Quote
Old 28th November 2011, 06:19   #3  |  Link
Jenyok
Warm and fuzzy
 
Join Date: Apr 2010
Location: Moscow, Russia
Posts: 201
aegisofrime
See here...
.
http://forum.doom9.org/showthread.php?t=152758
Jenyok 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 01:16.


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