Resizing on Render

amendegw wrote on 4/20/2011, 1:02 PM
Here's something Nick_Hope has uncovered: Render quality Essentially it says "Rendering Quality" determines scaling algorithm.

I've seen posts on this forum that suggest setting a deinterlace method for progressive source to progressive render will improve resizing. (I don't think I'm inventing this, am I? Edit: I searched the forum, but couldn't come up with a good set of keywords to find this. If I am inventing this, ignore me!! [grin])

So the question becomes, if resizing algorithm is determined by "Rendering Quality", shouldn't we leave Deinterlace method to "none" if we are only resizing and not deinterlacing?

Opinions?

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

Comments

JohnnyRoy wrote on 4/20/2011, 1:49 PM
> "... shouldn't we leave Deinterlace method to "none" if we are only resizing and not deinterlacing? "

If your footage is interlaced and you turn deinterlace off you will get huge interlaced bars in your video when you resize. Always make sure that you have a deinterlace setting that is not "none" if any of your footage is interlaced.

It doesn't matter if YOU are deintelacing, it matters when VEGAS is deinterlacing and for a resize, Vegas deinterlaces, resizes, then re-interlaces. So if you are resizing, you are deinterlacing too if the footage is interlaced.

~jr
amendegw wrote on 4/20/2011, 1:58 PM
jr,

I was referring to progressive source (and project properties), rendering to a resized progressive output.

Maybe I'll bold that in the original post as it was kind of buried in the text.

Since no deinterlacing is occuring, I would think we should set deinterlace method to "none", but I seem to remember somewhere someone recommending setting the "Deinterlace Method" upon resize - even if no deinterlacing is done. Again, this *could* just be a figment of my imagination.

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

johnmeyer wrote on 4/20/2011, 2:40 PM
This is really easy to test. I just did it again, and it takes less time than it will take me to write this.

Put some progressive HD material on the timeline. Set the Vegas project properties to progressive, and set the deinterlace method (in project properties) to either "blend" or "interpolate." Render to 720x480 progressive output. So, you are re-sizing progressive to progressive, but still telling Vegas to deinterlace.

Repeat, but set the project properties "deinterlace method" to none.

In my tests, as I expected, when I put the results back on the Vegas timeline, they looked identical, and both looked just fine (i.e., no unusual artifacts)

Repeat the above two tests, but this time start with some HD interlaced footage. Make sure to match the project properties so that the field order is specified correctly, i.e., in this case do NOT set project properties to progressive but instead set it to either upper or lower field first (probably upper, since this is HD video). Then, do the same two render tests and put the results back on the Vegas timeline.

This time you will see a huge difference. As JR said, the video you rendered with deinterlace method in project properties set to none will look AWFUL, with all sorts of combing artifacts. The extent of these artifacts depends on the amount of re-sizing.

So, if you keep the deinterlace method set to blend or interpolate, you should be OK with just about any input footage, although if you are absolutely certain that ALL the footage on your timeline is going to be progressive, go ahead and set it to progressive. Their might be some situations in which this will produce a better result.

However, if you have interlaced footage anywhere on the timeline DO NOT use "none" for the deinterlace method.

As usual, my explanations are too long, but hopefully the above is still clear, despite the length (it takes too long to edit).



amendegw wrote on 4/20/2011, 2:54 PM
johnmeyer,

Good analysis! It begs the question... If setting a Deinterlace Method makes no difference in Progressive to Progressive renders and it is necessary for Interlaced to Progressive, is there ever a situation where Deinterlace should be set to "None"?

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

johnmeyer wrote on 4/20/2011, 3:27 PM
is there ever a situation where Deinterlace should be set to "None"?I cannot cite a specific example from my own experience, but as I stated above, I have a sense that there might be some situation -- perhaps when blending two tracks of different-resolution progressive footage, each at different frame rates -- where you would get different results using "none" than with one of the two de-interlace settings.

It is probably worth stating why all this deinterlace stuff is important when re-sizing.

The reason that it is important is that when you reduce the number of pixels in a video, the re-sizing algorithm has to decide where to put each new pixel so that the underlying image at each moment in time looks more or less the same as the original, albeit at lower resolution, and therefore without as much detail. The problem with interlaced video is that the odd field is at both a different moment in time, and in a different spatial place than the even field.

In many ways, you have to think of the odd fields as being essentially unrelated to the even fields. If you think this way, then you can understand that if you combine them both together into a single frame and then re-size the combined result in one operation, the resizing algorithm uses information from both fields to determine where to put each new pixel. As a result, you end up getting a combination of information from different points in time, and different places in space. Look out!! When resizing video that contains a lot of motion, you end up with warped vertical lines, herringbone patters, and all sorts of garbage if you use the "frame" that results from combining the even and odd fields together.

The results of doing this are not just bad, but can often be spectacularly bad. Unusable.

The simple solution is to treat the even fields as one video stream, and the odd fields as a separate, unrelated video stream. So, re-size the even fields separately from the odd fields, and then mix them back together. This works, and avoids huge artifacts, but as objects move from top to bottom, you end up losing resolution, because the re-sizing algorithm only has information from every other line, and therefore cannot create a new pixel in the lower-res version that is placed very accurately. So, you lose detail and sometimes get various, although usually comparatively small, artifacts.

What most re-sizing algorithms try to do instead is to temporarily fill in the missing field for the even fields (and same thing for the odd fields) with something approximating what would be there if the other field was captured at the same moment in time. This approximation can be done in an infinite number of different ways, each with a different tradeoff. The two offered in Vegas are "interpolate" and "blend." If you don't want to use those, you can instead use one of two different free plugins, one provided by Mike Crash (smart deinterlacer), and the other is the Yohng Yadif deinterlacer based on the code for the AVISynth Yadif plugin.

Once the "missing field" has been constructed, you then resize the result. This result, since it temporarily has both the original even field plus the artificially-generated odd field that has been "interpolated" or "blended," is actually a full frame. After re-sizing, the algorithm throws away the odd field that had been constructed with the sole purpose of helping the re-sizing algorithm be more accurate.

Same thing is done with the odd field, giving you an interlaced, re-sized video.

If you are instead not only re-sizing, but also changing from interlaced to progressive, then you don't throw away the fields that were created for resizing but, since you now have twice the number of frames as the original (because each field has now been made into a frame) you end up throwing away every other frame to get back to the original frame rate. Or you can keep all the frames and end up with double-framerate video. This is one way to go from 29.97 interlaced to what is called 60p.

While I have defended interlaced video many times in these forums (it looks great if you just edit it and then render out to something that is the same size, such as going from SD video to DVD), there is no argument from me that when it comes to these types of operations (re-sizing): interlaced video has a severe handicap compared to progressive.

amendegw wrote on 4/20/2011, 3:38 PM
Thank you, John. I always learn a lot from your posts!

...Jerry

System Model:     Alienware M18 R1
System:           Windows 11 Pro
Processor:        13th Gen Intel(R) Core(TM) i9-13980HX, 2200 Mhz, 24 Core(s), 32 Logical Processor(s)

Installed Memory: 64.0 GB
Display Adapter:  NVIDIA GeForce RTX 4090 Laptop GPU (16GB), Nvidia Studio Driver 566.14 Nov 2024
Overclock Off

Display:          1920x1200 240 hertz
Storage (8TB Total):
    OS Drive:       NVMe KIOXIA 4096GB
        Data Drive:     NVMe Samsung SSD 990 PRO 4TB
        Data Drive:     Glyph Blackbox Pro 14TB

Vegas Pro 22 Build 239

Cameras:
Canon R5 Mark II
Canon R3
Sony A9

GregFlowers wrote on 4/20/2011, 3:52 PM
The only time I can think where I ever have set the deinterlace method to "None" was when I used Mike Crash's Smart Deinterlace plugin. It basically does a better job at deinterlacing than does Vegas. I haven't used it in a while so I can't remember how well it works when resizing is involved.
JohnnyRoy wrote on 4/20/2011, 3:56 PM
> "If setting a Deinterlace Method makes no difference in Progressive to Progressive renders and it is necessary for Interlaced to Progressive, is there ever a situation where Deinterlace should be set to "None"?"

I agree with John, in practice, I can't think of any reason to set this to None.

This setting does NOT tell Vegas to deinterlace your footage. What it says to Vegas is if, by some chance, you do something, and for whatever reason, you need to deinterlace... this is the method to use. That's why John Meyer saw no difference rendering progressive to progressive; Vegas had no need to deinterlace and so it ignored the method because it wasn't needed. It just sets the method to use, when and if Vegas needs to deinterlace.

~jr
rmack350 wrote on 4/20/2011, 4:26 PM
This setting does NOT tell Vegas to deinterlace your footage. What it says to Vegas is if, by some chance, you do something, and for whatever reason, you need to deinterlace... this is the method to use.

Well, that explains why that setting doesn't turn OFF deinterlacing and allow me to save an unsullied still from the timeline. Stills saved from an NTSC timeline seem to be automatically and manditorially deinterlaced (or blurred, in practical terms) no matter what I do.

Still, it makes me distrust Vegas' deinterlacing logic if there are times when it does it and can't be turned off.

<edit>In addition to my problem extracting a clean still for use elsewhere, I'm also concerned that there are some circumstances where deinterlacing could happen twice within your edit</edit>

Rob
SuperG wrote on 4/21/2011, 12:04 AM
I've never been totally satisfied with the resizing method in Vegas. I'm just not keen on interpolating or blending fields before a resize (which is an interpolation itself).

I still get my best results in VirtualDub using the resize filter. (I've tried various AviSynth scripts too, but found no advantage there...) This with a tad bit of sharpen gives a very crisp clean output. Of course, it's a PITA extra step, but I'm willing to do it to get the quality I want.
johnmeyer wrote on 4/21/2011, 9:31 AM
I've never been totally satisfied with the resizing method in Vegas. I'm just not keen on interpolating or blending fields before a resize (which is an interpolation itself). I still get my best results in VirtualDub using the resize filterWell, if you use the resize filter built into VirtualDub, you will notice that it has a box labeled "interlaced" which you can check. If your source video is interlaced, you must check this or else you will, depending on the resize amount, get absolutely horrendous artifacts in the resulting re-sized output. And, if you check it, guess what? The Virtualdub filter does exactly the same thing as Vegas: it creates those even and odd fields using some sort of algorithm.



You might get different and, perhaps, better results with the VD filter. It certainly has several nice features which help you pick resize percentages that are MUCH "friendlier" to the resizing process ("codec friendly").
SuperG wrote on 4/21/2011, 4:08 PM
"it creates those even and odd fields using some sort of algorithm."

Well, that's kind of the question... I mean, is it really deinterlacing the fields into a frame, resizing, and then splitting back into fields? Or, is it merely resizing the fields individually?

Obviously, If you resize a *frame* of two time different fields, the combs themselves get aliased unless you use some method to reduce the combing before the resize (blend or interpolate).

But if you resize the fields individually, without regard to "frame", you'll never get aliased combs - and you never need to blend or interpolate two sets of time differing fields.

Now, seeing as the resize filter in Vdub has no choice for a deinterlace method (when interlace is selected) I'll venture a guess that it isn't necessary - because it's not working on frames at all when interlaced is checked. And, field-based resizing is fairly standard in the AviSynth world too - we split fields into separate images, resize those, and then weave them back together - no wierd aliased comb artifacts - and no blending or interpolating separate fields together either.

But, back to Vegas. As I understand it when resizing interlaced video, they simply deinterlace the image into a frame, using either weave (same as none - yucky results), blend (mix fields), or interpolate (average), they then resize the resultant image frame, and then separate again into fields. The result is that that the individual fields now contain image data from each other - sort of like they're cross contaminated.