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. |
|
![]() |
#1 | Link |
Banned
Join Date: Feb 2009
Posts: 136
|
Resizing (Upscaling) is Removing Details?!...
At first, when I noticed the problem by comparing it to the original, I thought it was one of my grain/noise removing/reducing filters. I went through all of them and the problem didn't seem to go away. I stripped it down to just the 720p resize that I had and the problem was still there.
After that, I tried it with just the mpeg2stream identifying line and the problem was gone. I then tried the Bicubic resize that VirtualDubMod has and the problem wasn't as prominent. I don't really understand how the resizing affects anything at all but I captured frames for comparison. In the pictures, notice the details on the sticking out roof above the bottom-left window, and how they mostly disappear when resized with AVISynth. I recommend that it is viewed by opening the pictures in separate tabs, maximizing them, scrolling to the bottom left, and switching between them. Maybe somebody can sort out the issue? Original VOB ![]() Encoded without any filters to h264 using the x264 codec at 3000 kbps - Single Pass VirtualDubMod Bicubic Resize AVISynth Lanczos4/Lanczos/Bicubic Resize (All gave the same negative effect - at least in the area that I pointed out) -Thanks in advance for any of your responses. UPDATE: When using the resizing method real-time, using FFDShow, the details don't disappear. It could be a combination of what happens with the x264 codec/with VirtualDubMod/some other reasons... The problem isn't in the AVISynth resizing methods themselves (though this was probably obvious to most). Last edited by Typhoon859; 18th February 2009 at 14:05. |
![]() |
![]() |
#2 | Link |
x264aholic
Join Date: Jul 2007
Location: New York
Posts: 1,752
|
This is from a DVD? If so that means it's encoded @ 720x480. Sounds like you're upsizing, and since you are, you're trying to create detail that was never present in the 720x480 frame. Resizing doesn't "remove" details at all. Unless you're downsizing, in which case you are removing details. But upsizing, you're just interpolating data that never existed in the first place.
Try NNEDI for animated content: Code:
NNEDI(1, dh=true).TurnLeft().NNEDI(1, dh=true).TurnRight()
__________________
You can't call your encoding speed slow until you start measuring in seconds per frame. |
![]() |
![]() |
#3 | Link | |
Banned
Join Date: Feb 2009
Posts: 136
|
Quote:
Last edited by Typhoon859; 15th February 2009 at 05:54. |
|
![]() |
![]() |
#4 | Link |
Fighting spam with a fish
Join Date: Sep 2005
Posts: 2,691
|
Those details are barely there in the first place. However, resizing, either up or down, will cause you to lose video information and thus quality. So, yes, when you resize, small details will disappear. The better a resizer you use, the less details you lose.
And encoding to a lossy format just compounds the problems. In short, this is exactly what's supposed to happen. DVD's weren't made to be upsized. Resize algorithms are only so good. And lossy video compression works by throwing away details. |
![]() |
![]() |
#5 | Link | |
Banned
Join Date: Feb 2009
Posts: 136
|
Quote:
In any case, h264 is the best compression out there in terms of quality. In many respects, it's better than the MPEG-2 compression. The only thing left would be to go uncompressed but then that defeats the whole purpose of an encode, unless it's for video editing. I think those are enough points to justify that the reason for the loss in quality is something else - something that doesn't quite make sense, to me anyway... Last edited by Typhoon859; 15th February 2009 at 10:06. |
|
![]() |
![]() |
#7 | Link |
Registered User
Join Date: Feb 2004
Posts: 1,350
|
Interpolation does inevitably remove some information from the source, but that is not what is causing problems here. What is happening is that, X264 is removing some details from the source, and it is more obvious on the interpolated-then-encoded stream, because x264 had to apply more compression to that stream then the uninterpolated one.
|
![]() |
![]() |
#8 | Link | |
Banned
Join Date: Feb 2009
Posts: 136
|
Quote:
|
|
![]() |
![]() |
#10 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
there is no BEST way (beside dont upscaling it
![]()
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
![]() |
![]() |
#13 | Link | |
Banned
Join Date: Feb 2009
Posts: 136
|
Quote:
EDIT: I tried it and the same thing happens. Last edited by Typhoon859; 15th February 2009 at 21:09. |
|
![]() |
![]() |
#14 | Link | |
Didée Fan
Join Date: Feb 2006
Location: Canada
Posts: 1,079
|
Quote:
|
|
![]() |
![]() |
#16 | Link | |
Didée Fan
Join Date: Feb 2006
Location: Canada
Posts: 1,079
|
Quote:
It has a hidden pattern in the moving part. This hidden pattern is revealed by efficient use of resizing and sharpening. It has a ntsc and pal, and progressive and interlaced version. Try barious encodes and see which method you try gives you results you like! ![]() |
|
![]() |
![]() |
#17 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,393
|
There's no way that "just resizing" in Avisynth would lead to that kind of softening which you're showing.
You need to give us the *exact* way how the source was loaded, which filters were used, etc. Most probably there's some filter acting in the background that you're not aware of. Quickly guessing for an explanation, it could be you're loading the VOB source with DGDecode (or a variant) with activated deblocking ("PP=1/2/4/6", or something). The deblocking could easily lead to detail loss like seen e.g. on those roofs.
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) Last edited by Didée; 15th February 2009 at 20:30. |
![]() |
![]() |
#18 | Link | |
Banned
Join Date: Feb 2009
Posts: 136
|
Quote:
Yeah, I know that wasn't achieved with just resizing. Of course - there are many added filters. The point is that resizing is one of them and it didn't cause that effect. I put softening, noise, and grain filters in mine as well but no matter what, the filters aren't going to give you any added details which were or will be lost by the resize... |
|
![]() |
![]() |
#19 | Link | ||
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,393
|
You sound contradicting.
Quote:
Quote:
In case of doubt, feel free to upload a small sample of your source. It will be easy to show that Avisynth's resizers are not the cause of that detail loss.
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
||
![]() |
![]() |
#20 | Link | |
Banned
Join Date: Feb 2009
Posts: 136
|
Quote:
LoadPlugin("C:\Program Files (x86)\DGMPGDec 1.5.2\DGDecode.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\Warpsharp.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\UnDot.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\MaskTools.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ColorMatrix.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\hqdn3d.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FluxSmooth.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrain.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\TCPDeliver.dll") mpeg2source("C:\Users\Typhoon859\Desktop\Dragon Ball Z - Movies 7 & 9 Double Feature Remastered Trailer.d2v") Lanczos4Resize(1280,720) -The loading of the plugins doesn't really do anything... EDIT: Oh, well actually, yeah, the plugins are necessary for the filters I plan to use to work and for the mpeg2source to be able to be decoded. Yeah, you were right - DGDecode. But, as I showed, without the resize in place, with purely the h264 encode, the problem isn't as prominent and just as much is removed as in the encode of the other guy that I showed. The little bit removed by the h264 isn't the problem. Last edited by Typhoon859; 15th February 2009 at 21:36. |
|
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|