Some time ago I brought a query on a DVD I had which showed some strange things, like comb type distortions. The problem was diagnosed as "field blended garbage" and the script you suggested cured them.
Now've found another DVD which I believe is suffering from similar maladies. But I tried that same script and it didn't work. So maybe it needs some adjustments. Have a look at a this sample from the DVD:
http://www.mediafire.com/?41jn3ngyjew
+ Reply to Thread
Results 1 to 30 of 48
-
-
Thanks, Manono!
Now please have a look at this other sample.
http://www.mediafire.com/?nmjzjhmxvkm
It's the same film and same images. But this comes from converting an MKV 720p file onto m2v.
As a result there's a jittering in the movement which I don't know how to prevent, because it was not in the original.
What do you suggest? -
My guess is your 720p file was 60 fps, probably with 3:2 frame repeats and your conversion to 23.976 fps didn't go well, resulting in some duplicate frames and some skipped frames. Try:
SelectEven()
TDecimate()
If that doesn't work there are some other possibilities... -
Here's the same part I had already uploaded, this time taken from an MKV 720p file.
http://www.mediafire.com/?sharekey=baad3af1c8fb5a28d6baebe61b361f7ce04e75f6e8ebb871
If I convert this file to mpeg2 I get a jitter effect.
What can I implement so it runs smoothly? -
That MKV file is already 23.976 fps. To make an NTSC DVD all you have to do is encode as progressive MPEG2 at 23.976 with pulldown flags.
http://www.mediafire.com/?1csemunsucs -
Originally Posted by manono
I have never used those filters. Can you help me with some variables to play with on each filter? -
You don't need any variables. Not with that sample, anyway, and not with most hard telecined sources. Load the TIVTC.dll (or place it in your AviSynth plugins folder), and use the 2 lines I gave you above. If it's not working then most likely IVTC is the wrong thing to use.
Oh, and make sure to use Field Operation->Honor Pulldown Flags when creating the D2V file, and not Force Film. -
It's been some time now that I have started tests with DVD as the playing medium.
As I am now seeing more apparent resolution due to the upscaling capability in my player and watching it on a plasma 42" 720p screen, I want to know how far I can take working on the image to get things looking better and with more resolution.
If the source is a "plain" DVD there's very little to compare it with, except my opinion or my wife's that it looks better.
That's why I am using some mkv 720p or 1080p files and down converting them to 720:480. Then I do have a higher resolution reference I can compare my results with.
Two have been my major filters in avisynth: lsfmod and Tweak(cont,sat). The first one is obvious, being a sharpener. The second is because I think that things "look" as having more resolution if you tweak contrast and saturation a little bit.
That mkv sample I had uploaded to Mediafire was my first test and where tweak() was more effective than lsfmod.
On another sample, also now on Mediafire results were not so clear. So I am now trying with another film.
Just to know if I may be onto something: may these filters, alone or combined, make a DVD "look" having more resolution?
The values I have been using were:
LSFMod(Smode=5)
and
Tweak(cont=1.0,sat=1.0) -
Tweak(cont=1.0,sat=1.0) should do absolutely nothing. Y * 1.0 = Y.
Personally, I find sharpening is rarely a good thing. -
Originally Posted by jagabo
Personally, I find sharpening is rarely a good thing.
But the plasma screen is better to see the likely artifacts.
In your opinion what might be a "good thing" then? -
There seems to be at least one problem in processing this file with lsfmod: it's slow.
My machine has an Intel Core2 cpu, with Intel chipset. It usually takes about two hours to convert a whole film.
From what HCenc is showing it will take more than 12 hours to go through 1st and 2nd pass. So it's at least six times more! -
If your video isn't blurry to begin with sharpening will create oversharpening artifacts. At first glance the results might look pleasingly sharp but if you look closely you will see bright and dark halos at sharp edges, aliasing problems (stair stepping), buzzing edges, and sometimes accentuation of moire artifacts.
If your source is blurry then some sharpening may be appropriate. But even this often leads to problems. Dumb sharpeners will increase noise along with sharpening edges. Smarter edge sharpeners will attempt not to increase noise in "flat" areas while sharpening edges. But if you look closely you will see artifacts in boundary areas. Some edges are very sharp and usually noisy, the rest of the picture isn't. It's usually obvious (without having seen the original fuzzy source) when this type of sharpener has been used. And in my book that's a bad thing.
With contrast and saturation you'll find the same thing. At first the higher contrast, higher saturation image looks better. But after a while you'll start noticing loss of details in the dark and bright areas and unnatural colors. Unless there's something wrong with your source you shouldn't need contrast and saturation adjustment.
Note that Tweak()'s contrast adjustment is really a gain adjustment. Both dark and light areas get brighter. ColorYUV()'s contrast adjustment is a true contrast adjustment. Darks get darker, brights get brighter.
Tweak: brightness' = brightness * N
ColorYUV: brightness' = ((brightness-128) * N) + 128) -
Originally Posted by jagabo
My question, probably one that many tried and would like their comments on, is how to make things look a bit sharper in DVD without going over the border onto artifacts of any kind. A lost battle? -
Originally Posted by jagabo
Tweak(Sat=whatever, Cont=whatever, Bright=whatever, Coring=False)
Of course, when converting hi-def sources to std-def, one of the most important things to do is adjust the colorimetry:
ColorMatrix(Mode="Rec.709->Rec.601")
jagabo, have you ever used LimitedSharpen and it's varients? I use LimitedSharpenFaster quite a bit and don't notice the kinds of artifacts you describe, particularly not the ringing which it was developed specifically to avoid, and which many other sharpeners introduce or accentuate. I often use it on lousy sources. When the source is good (like for hi-def scaled down to standard-def), others prefer to use SeeSaw or IIP (Integrated Image Processing).
Originally Posted by carlmart
Of course, much of the slowdown may be because of the Hi-Def source you're using, or can you usually encode Hi-Def sources with no filtering in 2 hours? -
Originally Posted by manono
Of course, when converting hi-def sources to std-def, one of the most important things to do is adjust the colorimetry:
ColorMatrix(Mode="Rec.709->Rec.601")
jagabo, have you ever used LimitedSharpen and it's varients? I use LimitedSharpenFaster quite a bit and don't notice the kinds of artifacts you describe, particularly not the ringing which it was developed specifically to avoid, and which many other sharpeners introduce or accentuate.
Now I have applied coring=false and colormatrix, and the halos seem to have improved. Let me burn the DVD so I can see it on the plasma.
I often use it on lousy sources. When the source is good (like for hi-def scaled down to standard-def), others prefer to use SeeSaw or IIP (Integrated Image Processing).
When you have a slow filter chain, it's sometimes beneficial in terms of the overall encoding time to either make a lossless AVI first, or run HC to create a lossless file, before then running the 2 passes on the lossless intermediate file. I usually run 5 passes using CCE and almost always create a Lagarith AVI first when doing heavy filtering, but even when using HC the encode will often take less time overall by first creating the lossless file.
Of course, much of the slowdown may be because of the Hi-Def source you're using, or can you usually encode Hi-Def sources with no filtering in 2 hours? -
Originally Posted by carlmart
Originally Posted by carlmart
http://www.sigmadesigns.com/public/Support/chromaticity.html
Originally Posted by carlmart
Originally Posted by carlmart -
Originally Posted by manono
Originally Posted by manono
An upscaling player or TV may further accentuate the defects.
It's possible the OP's current equipment is low pass filtering the DVD before upscaling to reduce moire artifacts. In that case a bit of oversharpening might improve the final on-screen result. But I wouldn't screw up my recordings just to compensate for a poor player/TV. -
If anyone wants to have a look at some tests I made, they are at Mediafire.
The original mkv file:
http://www.mediafire.com/?gowljxutmjl
The unfiltered encoding to m2v:
http://www.mediafire.com/?wwlndemhmz0
Encoded to m2v with LSFMod(Smode=5)
http://www.mediafire.com/?ngkozyjndym
Encoded to m2v with Tweak(Sat=1.0, Cont=1.0, Bright=1.0, Coring=False) & ColorMatrix(Mode="Rec.709->Rec.601")
http://www.mediafire.com/?ntztmmmi4zl
Just now I used my laptop to look at the original files fed directly to the plasma in 720p. Truth is I can't find apparent differences between them, which should be there. Maybe the original is not as high resolution as it might be.
In any case the encoded ones look quite good and much better than my original DVD for that film.
One thing I discovered in the upscaling my DVD player does is that it seems to force resolution somehow, because the halos got quite visible in the DVD I made from the tests. I wonder if I can correct that on the TV setup for the HDMI input. At first I had thought the halos were on the original file or on the encoded ones, but the existing halo is quite dim and you have to look for it to find it. It was good to check that on the original files, compared to the burned ones. -
Originally Posted by carlmart
Code:sat' = sat * 1.0 (does nothing) cont' = cont * 1.0 (does nothing) bright' = bright + 1.0. Coring=False -- don't limit results to 16-235, limit to 0-255 instead
-
Originally Posted by jagabo
Code:sat' = sat * 1.0 (does nothing) cont' = cont * 1.0 (does nothing) bright' = bright + 1.0.
-
With Tweak(Sat=1.0, Cont=1.0, Bright=0.0, Coring=False) you're saying don't do anything to the image but convert it to floating point and back to integer (and the errors that will introduce) just for fun:
Code:sat' = sat * 1.0 (do nothing) cont' = cont * 1.0 (do nothing) bright' = bright + 0.0 (do nothing) Coring=False (do nothing)
Here's a little tip that I think you will find helpful: use the Interleave() command to interleave two video streams together.
Code:v1=DirectShowSource("video.mkv") v2=Tweak(v1,Sat=1.0, Cont=1.0, Bright=0.0, Coring=False) Interleave(v1,v2)
Or try something like this:
Code:v1=DirectShowSource("video.mkv").Lanczos4Resize(720,480) v2=ColorMatrix(v1,Mode="Rec.709->Rec.601") Interleave(v1,v2)
-
Thanks, I will try to use the Interleave tricks on what I am doing now. From what I saw there's not much I can do when the source is good. And the conversion looks very nice only with ColorMatrix(Mode="Rec.709->Rec.601"). So why not leave that alone?
But Manono mentioned the lousy sources he worked with, so I am using that tip to perhaps deal with one of mine.
I have several DVDs that were originally mastered in letterbox 4:3. The one I uploaded is one of them.
http://www.mediafire.com/?z5wjujjyimm
For now I just corrected for size and telecine problems, which already looks better than the original. If you want I can take the filters out for you to see what it was. I used:
MPEG2Source("d:\tmp\VTS_01_0.d2v")
TFM()
TDecimate()
spline36resize(720,480,0,66,0,-66)
Does this one qualify or not as a lousy source? -
The link is to a non-letterboxed 4:3 film that's already progressive.
When I mentioned bad sources, I meant bad sources. They're NTSC DVDs of old Indian films sourced from PAL VHS tapes mostly. -
Originally Posted by manono
When I mentioned bad sources, I meant bad sources. They're NTSC DVDs of old Indian films sourced from PAL VHS tapes mostly. -
Here's the original file, unfiltered and non-resized.
http://www.mediafire.com/?mzzytyhlyj5 -
Oh, sorry. I didn't notice that it was 16:9 and the result of your efforts. I thought you had uploaded the wrong file.
Similar Threads
-
Unexpected ffmpeg conversion results
By subn3t in forum Video ConversionReplies: 3Last Post: 9th Feb 2012, 14:14 -
More weird conversion results
By carlmart in forum Video ConversionReplies: 21Last Post: 23rd Jun 2009, 07:40 -
AVI to DVD results in weird playback fault
By JustGreg in forum Video ConversionReplies: 0Last Post: 26th May 2008, 10:51 -
MKV conversion always results with poor AV sync
By johnhouk in forum Video ConversionReplies: 4Last Post: 23rd Jan 2008, 17:13 -
Watching videos on my computer results in weird pixelation and blurring
By dan1230 in forum Newbie / General discussionsReplies: 9Last Post: 4th May 2007, 12:46