PDA

View Full Version : What is causing these lines?


Socio
6th April 2009, 02:12
I used DGIndex to demux a vob and when I go to open the D2V to test it prior to processing using a basic script;

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
MPEG2Source("F:\Demuxed\VTS_01_1.d2v")


The image I get is this:

http://img13.imageshack.us/img13/6681/linesn.th.jpg (http://img13.imageshack.us/my.php?image=linesn.jpg)

What is causing this anomaly?

Thanks

Inspector.Gadget
6th April 2009, 02:15
You have interlacing and maybe something else going on there, judging from the inconsistency of the lines. What region is the DVD, what's the title, is it commercial, etc.?

Socio
6th April 2009, 02:27
It is Star Wars Phantom Menace; I am working on up converting the DVD to 1080p for burning to Blu Ray.

The DVD and the demuxed m2v play back just fine so this problem is not present in the original movie.

This is the vital info in the D2V


Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=2
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=0
Frame_Rate=29970 (30000/1001)
Location=0,0,0,ef51

kemuri-_9
6th April 2009, 02:42
The DVD and the demuxed m2v play back just fine so this problem is not present in the original movie.

it's quite possible (more like probably the case) that your player saw the interlaced flag for the stream and applied deinterlacing on it during playback.
which would be why you didn't see it while playing but you do see it in avisynth which does no such thing.

Inspector.Gadget
6th April 2009, 02:47
I am working on up converting the DVD to 1080p for burning to Blu Ray.

Don't waste your time.

poisondeathray
6th April 2009, 02:47
Frame_Rate=29970 (30000/1001)


Didn't use forced film?

Socio
6th April 2009, 02:49
I think you are right; I am opening up in VDubmod, when I changed the settings under video from progressive to "Reconstruct from fields-adaptive" the lines disappear and it plays back smoothly.

Socio
6th April 2009, 03:00
Don't waste your time.


They said they will never release the Star Wars films on Blu Ray and since they are among my most re-watched movies by my family in my collection I decided to up convert them.

I have already run some small tests using the m2v with very nice results however I get audio sync and other issues processing with the m2v which is why the needed to sort out the d2v issue.

Mug Funky
6th April 2009, 03:04
They said they will never release the Star Wars films on Blu Ray

BAHAAAHAHAAAAA!!

since when did Lucas shy away from releasing and re-releasing and remastering and making Greedo shoot first and digitally removing Alec Guinness, and then re-releasing the original yet again on DVD?

mark my words: it WILL be released on blu-ray and on all future formats. it will be done when the price is right.

[edit]

and to actually be somewhat helpful to you... most blu-ray players support DVDs as well, and have pretty decent uprezzers in them. you can make a blu-ray as a thought exercise, but there will be minimal gain in doing such a thing.

and the lines are just 3:2 pulldown for making 24 frames fit into 60 fields of video. they're perfectly normal, but usually hidden from the user. virtualdub is good in that it doesn't hide them, because it gives you more knowledge and therefore more control over the pictures you're making.

Socio
6th April 2009, 03:12
Didn't use forced film?

Demuxed with forced film;

Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=2
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=1
Frame_Rate=23976 (24000/1001)
Location=0,0,0,ef51

It makes it 24p and plays back smoothly! :thanks:

Socio
6th April 2009, 03:21
BAHAAAHAHAAAAA!!

since when did Lucas shy away from releasing and re-releasing and remastering and making Greedo shoot first and digitally removing Alec Guinness, and then re-releasing the original yet again on DVD?

mark my words: it WILL be released on blu-ray and on all future formats. it will be done when the price is right.

[edit]

and to actually be somewhat helpful to you... most blu-ray players support DVDs as well, and have pretty decent uprezzers in them. you can make a blu-ray as a thought exercise, but there will be minimal gain in doing such a thing.

and the lines are just 3:2 pulldown for making 24 frames fit into 60 fields of video. they're perfectly normal, but usually hidden from the user. virtualdub is good in that it doesn't hide them, because it gives you more knowledge and therefore more control over the pictures you're making.

I hope they do release them sometime down the road, but I won't hold my breath.

I have an HD-DVD player that upconverts DVD but so far upconverting, with some denoising, LSF sharpening etc.. gives me a superior image, plus I will be able to play them back on my HTPC as well.

I will post some pics after I have finalized my scripts and processed a couple of the movies.

Socio
7th April 2009, 19:01
Don't waste your time.

Looks like it will be worth the effort;

I use a program called Video Enhancer it accepts both AVS scripts and VDub plug ins, plus has a built in Super Resolution resizer. I found that for the best results I need up scale the video to 1440x960 first then use this script and the 2d cleaner VDub plug with a radius of 4 in Video Enhancer followed by upscaling it again to 1920x1080;

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RepairSSE2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LimitedSupport_09Jan06B.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mvtools2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MT.dll")
DirectShowSource("F:\Test movie\NewTest.avi")

Crop(0,58,0,-62)

ConvertToYV12()

MT("LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, Smode=3, strength=200, overshoot=0, soft=60)",2)


I get a very nice image with virtually no detail loss and a slightly larger viewing area due to cropping to keep the aspect ratio correct.

480P

http://img4.imageshack.us/img4/958/480p.th.jpg (http://img4.imageshack.us/my.php?image=480p.jpg)

1080p

http://img4.imageshack.us/img4/798/1080p.th.jpg (http://img4.imageshack.us/my.php?image=1080p.jpg)

Not too bad yes?

Inspector.Gadget
7th April 2009, 19:15
I get a very nice image with virtually no detail loss...

Keep telling yourself that :p

Keiyakusha
7th April 2009, 19:35
larger viewing area due to cropping to keep the aspect ratio correct.
Actually on 1080p snapshot aspect ratio is not correct. It should be close to 2.4 without black borders.
UPD: Like here (http://www.petaimg.com/u450/416qwerty.jpg)

Socio
7th April 2009, 20:38
Actually on 1080p snapshot aspect ratio is not correct. It should be close to 2.4 without black borders.
UPD: Like here (http://www.petaimg.com/u450/416qwerty.jpg)

If you look at the bell shaped thing the upper left when you switch from yours to the original, to my 1080P yours is slightly squished and stretched where the my 1080p looks more proportionate to the original. If I do not crop after resizing to 1440x960 I get the exact same look as yours, which is not bad but more like anamorphic widescreen.

2Bdecided
7th April 2009, 20:54
But the original isn't square pixel!

And the output from Video Enhancer is atrocious.

Keep going - you'll learn a lot.

And then you'll just watch the original DVD.

Cheers,
David.

Keiyakusha
7th April 2009, 21:11
Socio
Yes. Your source is anamorphic. On playback your DVD displayed at 853x480 resolution. Look at the DGIndex info in your post. So you should resize it properly.
And you can't be sure about bell. Look ar the engine of that ship for example (At least it looks like engine to me ^_^). I beleave, it should be almost round. Also on my picture if you crop all black borders - you will get aspect ratio close to 2.33 - 2.4, as it should be.

Socio
7th April 2009, 22:32
Socio
Yes. Your source is anamorphic. On playback your DVD displayed at 853x480 resolution. Look at the DGIndex info in your post. So you should resize it properly.
And you can't be sure about bell. Look ar the engine of that ship for example (At least it looks like engine to me ^_^). I beleave, it should be almost round. Also on my picture if you crop all black borders - you will get aspect ratio close to 2.33 - 2.4, as it should be.

OK I will try it and see.

Blue_MiSfit
8th April 2009, 00:18
Yeah, that looks awful to me. WAAY too much sharpening, and little texture detail.

I'd try it with NNEDI upsizing, plus light MVDegrain to clean, then LSFMod and GrainFactory3 to add some HD grain.

If you're going to do it, do it right ;)

~MiSfit

Nightshiver
8th April 2009, 04:47
Why in the world are you using that scam program Video Enhancer? It's proven that it's full of bs. Blu-ray and even the PS3 can do better upconverting than that crappy program. Don't use it.

Maccara
8th April 2009, 06:33
Why in the world are you using that scam program Video Enhancer? It's proven that it's full of bs.

Care to elaborate? I have seen no such proof, and would be interested to read one.

(of course, in general SR methods are of limited value and only work on some inputs and even then the benefits are usually only marginal - your mileage may vary - but that doesn't translate to a software being a scam, unless you can show they do not even implement any SR methods)

Socio
8th April 2009, 13:41
Yeah, that looks awful to me. WAAY too much sharpening, and little texture detail.

I'd try it with NNEDI upsizing, plus light MVDegrain to clean, then LSFMod and GrainFactory3 to add some HD grain.

If you're going to do it, do it right ;)

~MiSfit

I gave something similar a test run using this script but still need make some adjustments, like cropping black borders prior to adding grain, reduce the grain affects (looks like a but too much). I also need to figure out why when movie pans past objects like lights the objects wobble like they were under water.

ConvertToYV12()
src = last
super = src.MSuper(pel=2)
bvec3 = super.MAnalyse(isb=true, delta=3, overlap=4)
bvec2 = super.MAnalyse(isb=true, delta=2, overlap=4)
bvec1 = super.MAnalyse(isb=true, delta=1, overlap=4)
fvec1 = super.MAnalyse(isb=false, delta=1, overlap=4)
fvec2 = super.MAnalyse(isb=false, delta=2, overlap=4)
fvec3 = super.MAnalyse(isb=false, delta=3, overlap=4)
src.MDegrain3(super, bvec1, fvec1, bvec2, fvec2, bvec3, fvec3)
NNEDI(0,dh=true).TurnLeft().NNEDI(0,dh=true).TurnRight()
MT("LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, Smode=3, strength=200, overshoot=0, soft=60)
GrainFactory3(6,5,3,100,100,100,1,1,0.70,0,0,0,0,0,24,56,128,160)",2)
Spline36Resize(1920,1080)


Here is a sample;

http://img11.imageshack.us/img11/7813/1080nnedi.th.jpg (http://img11.imageshack.us/my.php?image=1080nnedi.jpg)

Socio
9th April 2009, 02:47
This is getting better;

I found it was MDegrain3 that was causing the wobble, I need to read more about it. For now I removed it and used a VDub denoiser plugin for light denoising and lowered the GrainFactory settings for lighter smaller grain. I also added crop and add borders to prevent grain being added to the black borders.

ConvertToYV12()
src = last
NNEDI(0,dh=true).TurnLeft().NNEDI(0,dh=true).TurnRight()
Crop(0,112,0,-114)
MT("LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, Smode=3, strength=200, overshoot=0, soft=60)
GrainFactory3(4,3,1,100,100,100,0.50,0.50,0.30,0,0,0,0,0,24,56,128,160)",2)
AddBorders(0,112,0,114)
Spline36Resize(1920,1080)


http://img26.imageshack.us/img26/4421/1080nnedi2.th.jpg (http://img26.imageshack.us/my.php?image=1080nnedi2.jpg)

Any more suggestions?

Nightshiver
9th April 2009, 03:19
Care to elaborate? I have seen no such proof, and would be interested to read one.

(of course, in general SR methods are of limited value and only work on some inputs and even then the benefits are usually only marginal - your mileage may vary - but that doesn't translate to a software being a scam, unless you can show they do not even implement any SR methods)

I wish I could find the thread where I saw it, but I was just stating what I remember reading. It also said that the images where faked. I was probably a little harsh.

Socio
10th April 2009, 21:54
I wish I could find the thread where I saw it, but I was just stating what I remember reading. It also said that the images where faked. I was probably a little harsh.

I don't think the images were faked, it shows a before image and a processed image during processing. From what I can tell the before is a image zoomed to the size of your output size and the processed image is the image resized your output size.

However I have found after the suggestions in this thread that it's SR does not seem to make a noticeable improvement over using NNEDI(0,dh=true).TurnLeft().NNEDI(0,dh=true).TurnRight() followed by Spline36Resize(1920,1080) and is a bit slower to boot.

rkalwaitis
10th April 2009, 22:22
Socio, could you please give me the link for the wobble problem with mdegrain3. I am assuming this is the interlaced appearance which was described. Thanks