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

Thread Tools Search this Thread Display Modes
Old 1st February 2022, 14:23   #1  |  Link
Registered User
Join Date: Oct 2010
Posts: 26
undoing improper resizing of interlaced video

I have a video of a movie that was resized from 720x480 to720x536. The original, which I never had, was obviously properly telecined 3:2. So I want to restore the original frames, then detelecine to then do a proper restoration.

So, my question is whether there are deconvolution algorithms for undoing an improper vertical resize. I would need the deconvolutions for the common resizing algorithms as I do not know which one was used.

The undo would involve a variety of trials as there may have been some cropping. One would think the resize would have been to 540 as the person who did this apparently wanted to produce a proper 4:3 aspect ratio and didn't understand that there is embedded metadata to do that by the player.
JClement is offline   Reply With Quote
Old 1st February 2022, 16:33   #2  |  Link
Registered User
Join Date: Sep 2007
Posts: 4,984
Debicubic and debilinear would be the most common, but the situation is often complicated by lossy compression and getting clean results is difficult

Another approach is to interpolate over the combed frames . A recent example was posted in this thread

Rife tends to do a better job overall than mvtools2 in many situations , but it's not available for avisynth (only vapoursynth) , but any type of intermediate interpolation can often have various issues with edge artifacts, blending, errors
poisondeathray is offline   Reply With Quote
Old 1st February 2022, 17:26   #3  |  Link
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,583
I came up with a method that made substantial improvements. Here is a link to the thread where I developed the technique:

repair bad deinterlacing

Post #15 is where I came up with my first, crude script.

Here is the post that contains the "final" code I created:


This shows some "before/after" shots:


The code was "hard-wired" for the particular video and would have to be modified for the height of the combing artifacts in your video. I never spent the extra time to generalize the function.

As always, many thanks to StainlessS for his help.

Last edited by johnmeyer; 1st February 2022 at 17:28.
johnmeyer is offline   Reply With Quote

deconvolution, resizing, undoing

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 23:14.

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