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. |
26th January 2015, 14:53 | #1 | Link |
Registered User
Join Date: Jan 2015
Posts: 8
|
Need help with blended frames
Hello everyone, this is my first post here but I always visit the forums for encoding-related issues.
I have a friend of mine who records some episodes for me from cable tv. He is then using handbrake (I don't know anything about the settings he's using) and final size becomes more manageable around 300 Mb. The problem is that somehow the encodes I get have blended frames. I would like to know if there is an avisynth filter that could reverse this. These are three consecutive frames from the encode so as to understand what the problem is. Here is also a small video sample from the encode Code:
https://mega.co.nz/#!7N510DIb!Ci50J7wttLkMqBBY2vhj-Y9I5kPyf4cU_x_brbb3ikQ |
30th January 2015, 02:16 | #3 | Link |
Registered User
Join Date: Dec 2012
Posts: 6
|
I have a similar problem, only worse. My source has blending/ghosts in *every* frame. (It looks like someone used a blur deinterlacer on fully interlaced material, slapped it on a DVD, and called it a day.) Searching turns up a number of blending removal filters, such as srestore(), but they all assume someone deinterlaced telecined material, leaving a repeating pattern of good frames and blended frames. My source has no good frames. Is there a blending removal filter that will work on this source?
|
30th January 2015, 10:08 | #4 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
|
|
30th January 2015, 17:58 | #5 | Link | |
Registered User
Join Date: Mar 2014
Posts: 308
|
Quote:
Start a new thread for that, maybe?
__________________
Say no to AviSynth 2.5.8 and DirectShowSource! |
|
30th January 2015, 18:38 | #6 | Link | |
Registered User
Join Date: Dec 2012
Posts: 6
|
Quote:
I've put some thought into it, and I think I may have a solution. I'd greatly appreciate it if someone could sanity check this idea before I waste time trying to implement it: My mind's eye pictures the frames I want to recover as a series 180 degrees out of phase with the frames I have, like so: Code:
A B C D E F <- have these v w x y z <- want these Assuming that whoever made this mess used a naive blur function, then the frames I have should be a simple average of the adjacent frames I want. E.g., B=(v+w)/2. Correct? Although I said there are "no good frames," that may not be literally true. What if there are two identical adjacent frames? That would give me one good unblurred frame. Then I could proceed iteratively computing each unblurred frame from its unblurred neighbor and the blurred frame between them. E.g. unblurred_frame = (2*blurred_frame) - unblurred_neighbor. AFAIK, avisynth doesn't do "iterative," since that kind of runs counter to the whole "frameserver" concept. But, I could probably jury-rig something by dumping the frames to png and writing something to process the pngs iteratively. Then read the pngs back into avisynth. Even if there are no identical frames, perhaps it would still work by finding pairs of very similar adjacent frames. I could approximate the unblurred frame in between by averaging such a pair. Then maybe do two passes -- one forward from the last pair and one backward from the next pair -- and average the results. That should at least reduce the blur down to the sum of 1/4 of the blur present in each pair... I think... Someone please stop me if I'm way off on the wrong track here. |
|
31st January 2015, 01:37 | #7 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
It would be cool to have a motion-compensating deblending, based on edges, but that seems even harder to realize than regular motion compensation. |
|
31st January 2015, 03:25 | #8 | Link | |
Registered User
Join Date: Mar 2014
Posts: 308
|
Quote:
It's not really useful to just think of it as blur along the time dimension because most video is captured with a lot more temporal aliasing than spatial aliasing, so you can't just apply the same techniques for spatial deconvolution to temporal blur. (One of the largest drawbacks to trying to do this in an Avisynth script is that recursive/IIR filters are very inconvenient because they enforce a particular seeking order.) It's also important (as foxyshadis mentioned) to distinguish whether your source is really blend-deinterlaced material or merely temporally blurred. They're both not really fixable, but the latter seems slightly less impossible IMO.
__________________
Say no to AviSynth 2.5.8 and DirectShowSource! Last edited by colours; 31st January 2015 at 03:35. |
|
31st January 2015, 04:14 | #9 | Link |
Registered User
Join Date: Dec 2012
Posts: 6
|
Thank you both very much for your help.
I took another, closer look at it. Sure enough, it's a vertical blur. So... drat. I can upload a chunk if anyone wants to fiddle with it, but I've pretty much resigned myself to living with the blur. Thanks again! |
Thread Tools | Search this Thread |
Display Modes | |
|
|