Back Forum Reply New

is this an interlace problem?

I am trying to convert Independance Day (Pal) toDivX with Gknot, and I get a result that looks blurry when there is some motion, kinda like there is two images showing at the same time - when i pause the movie it is very distinct on moving parts, but when relatively still the quality is perfect.

From what i understand about interlacing that sounds excactly what it is. ie 2 images per frame and that is what i am seeing.

I have done several other rips and have not had this problem before.  In the DVD2AVI settings I  have used Fast, Field and None for the interlace options and all have the same or very similar result.
(I am doing these tests by running the AVS file in media player, so its not a DivX issue)

Where do i go now to be able to make this a decent Rip?

here is my
logs (condensed)

D2V file
*******

DVD2AVIProjectFile
Stream_Type=1,0,0
iDCT_Algorithm=2
YUVRGB_Scale=1
Luminance=128,0
Picture_Size=0,0,0,0,0,0
Field_Operation=2
Frame_Rate=25000
Location=0,0,6,4111C

AVS file
********

LoadPlugin(quot;C:\PROGRA~1\GORDIA~1\mpeg2dec.dllquot;)
mpeg2source(quot;D:\dvd data\id4\id4.d2vquot;)
trim(0,208933)
crop(40,72,640,432)
VerticalReduceBy2
BicubicResize(640,304,0,0.5)

This is not an interlacing problem, interlacing has two fields per frame (image) and each one consists of every other line of that image (and is completely eliminated with a VerticalReduceBy2, but decomb or similar deinterlacer would offer better quality for your res - no need to resize down in vert. res and then back up).  I believe the double frames are due to the conversion from 30fps NTSC to 25fps PAL so you can't get rid of all of them.  I do remember seeing a few posts about how to remove ghosting but don't remember how they were doing it and they weren't 100% successful.

There are Vdub filters that do remove part of the ghosting effects, but they kill detail too. And TMPGenc has a Ghost reduction option too, but i don't know if that works, because i don't work with that one. I do know that it's a lot slower than the Vdub route.

Originally posted by Asmodian I believe the double frames are due to the conversion from 30fps NTSC to 25fps PAL so you can't get rid of all of them.  

umm is that possible when its a PAL DVD i am ripping from ?

it is possible, i have some anime DVD's that have not  been properly converted, leavng them with blended fields and ghosting in the DVD source itself and it cannot be reversed completely anymore!

@zedstrange Yes, what happens is the people who master the pal dvd use a source material that has already been telecined to 30fps and then do a bad inverse telecine (or just decimate by 1 in 6 with blends, how often are the blends?).  What does the source material look like if you preview in DVD2AVI, without any filters DVD2AVI should just give you the actual source video

For DIVX you have to de-interlace that interlaced movie!
...
Crop(96,72,528,432)
SmartDeinterlace(2,10,true.false,true)
BicubicResize(512,288,0,0.5)

The problem is quite simply that VerticalReduceBy2 blends the two fields together, resulting in a nasty ghost effect where interlacing is high.

So you must avoid using VerticalReduceBy2 which does not simply discard one of the two fields. Would have really been better It could discard the chosen field...

You should rather use GreedyHMA. Or Decomb like that :

FieldDeinterlace(blend=false)

Originally posted by zedstrange
I am trying to convert Independance Day (Pal) toDivX with Gknot, and I get a result that looks blurry when there is some motion, kinda like there is two images showing at the same time - when i pause the movie it is very distinct on moving parts, but when relatively still the quality is perfect.

I know *exactly* the artifact that you are talking about

Have you watched quot;Star Trek: The Motion Picturequot; guys?
Same problem

It seems that some *few* PAL (25fps) titles have interlaced scenes and in-synch non-interlaced scenes (frames are integral)
The (original) content is NOT interlaced itself, at all!

Look around the whole movie (or one like this) and you'll notice that several parts, even with motion, haven't any ghost effect nor intelacing artifacts, they *look* progressive (not 1 interlaced artifact for several minutes).

I think the problem is in (original) mastering process, but this is what I'm not sure about...

About of what IS sure... I have discovered that ALL the frames that look (badly) interlaced have thier own couple of fields(*) cross two frames, in other words those scenes have frame content shifted by one field:
for example, if you take the even field of frame 1000 and join it with the odd field of 1001 you get whole non-interlaced frame!

I have noticed it by using AviUtl (VirtualDub like) program and when opening the .avs script I have checked quot;Read as 60fpsquot; (a bit misleading this option, to be clear this permits to open the movie in field mode, doubling the frame count).

So in these quot;stupidlyquot; interlaced scenes the fields are arranged by this way:
frames:   FRAME 0    FRAME 1    FRAME 2  FRAME 3
fields: [0 - 1] [1 - 2] [2 - 3] [3 - 4]

And how it must be ordered:
frames:  FRAME 0  FRAME 1  FRAME 2  FRAME 3
fields: [0 - 0] [1 - 1] [2 - 2] [3 - 3]

This can be solved by simple Avisynth script routine, the final problem is that kind of movies have MIXED parts!!
So a *smart* Avisynth field-shifting plugin is needed  (it activates only when there is cross-frame issue), otherwise regular progressive parts will turn to interlaced!(*) for those don't know, one frame (720x576) is composed by two fields (each 720x288): the first is taken on odd lines the second is taken on even lines

Telecide() is designed for exactly this kind of problem.

Thanks a lot, Mr Graft!

LOL! At same moment Tom has given me the solution too.

Originally posted by unplugged
I know *exactly* the artifact that you are talking about

thats a fantastic description, thankyou,  however do you have any instructions on how to solve it?

i have also found Pulp Fiction Region 4 Pal does this too.

Originally posted by neuron2
Telecide() is designed for exactly this kind of problem.

i apologise,  i should have done some RTFM before posting this earlier question today. (which basically asked, what was the next step after turning on the computer)

after quite a but of reading, and searching on google i finally found this document back here, decomb.htm which basically tells me how i can edit my AVS script and continue to use Gknot to complete my job.

i am a little bewildered trying to take it all in, as well as references to NTSC confuse the issue.  As my source is PAL i am not sure what is relevent and what is not.

what telecine parameters should i be using,  

thanks

@zedstrange

i am a little bewildered trying to take it all in, as well as references to NTSC confuse the issue. As my source is PAL i am not sure what is relevent and what is not.

what telecine parameters should i be using

If you are PAL, then what is not relevant is Decimate() (except in some rare cases where you want to remove one in every 25 frames). Your only decision is whether you want postprocessing on Telecide() or not. The help file is really good at explaining these things!

Try this:

Telecide(post=false)

If you see any interlaced frames still coming through, then try this:

Telecide()

Please post any further questions you may have after reading the help and experimenting a little.

Originally posted by neuron2
@neuron2 Try this: Telecide(post=false)

thank you - thank you.

before i read your reply this afternoon i had already tried this.  dont even know why i tried because it didnt make a lot of sense to me.

you are right though that decimate didnt work, well it removed the ghosting effects to a large degree (which it obviously would do) but the movie became quite choppy.

i did some quick tests and it does seem to do the trick.  not sure if its perfect, but i no longer get nauseous watching the movie :-)

thanks for your info,  not only do i now know what does work, but i also know that it was the best and only way.

the help file you are asking me to read, is that the one in Gknot?

@zedstrange

gt;the help file you are asking me to read, is that the one in Gknot?

The Decomb help file: Decomb_help.html

You could try this script.it works perfect for ntsc interlace,not sure about pal though.

LoadPlugin(quot;C:\PROGRA~1\GORDIA~1\mpeg2dec.dllquot;)
mpeg2source(quot;D:\dvd data\id4\id4.d2vquot;)
trim(0,208933)
AssumeFrameBased.SeparateFields.SelectEven
crop(40,72,640,216)
BicubicResize(640,152,0,0.5).bob
¥
Back Forum Reply New