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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th August 2011, 15:04   #1  |  Link
dragon_warrior
Registered User
 
Join Date: May 2010
Posts: 123
Ghosting appearance after deinterlacing

Well, I have some music videos in MPEG-2 format that I want to encode to h264 for some reasons. One of which is not easy to deal with, as it contains both telecined and interlaced materials, however, those interlaced frames cannot be reverted to progressive properly by such good bobber like QTGMC.

Here are some screenshots showing 2 consecutive frames passed through tfm(pp=0) and different deinterlacers, say, vinverse and qtgmc. (Click on the thumbnails to view the full-size images)



If any of you don't mind giving a look into the source, then here is a 10-sec sample clip: http://www.multiupload.com/NHME94RX5G

Any comments would be greatly appreciated. Thanks
dragon_warrior is offline   Reply With Quote
Old 13th August 2011, 20:42   #2  |  Link
Shirtfull
Registered User
 
Join Date: May 2007
Posts: 53
Blended frames
Shirtfull is offline   Reply With Quote
Old 13th August 2011, 23:18   #3  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Shirtfull View Post
Blended frames
Nope, they're blended fields.
Guest is offline   Reply With Quote
Old 14th August 2011, 00:34   #4  |  Link
Shirtfull
Registered User
 
Join Date: May 2007
Posts: 53
Not when more than two fields are involved
Shirtfull is offline   Reply With Quote
Old 14th August 2011, 01:21   #5  |  Link
dragon_warrior
Registered User
 
Join Date: May 2010
Posts: 123
Thanks for all the comments. Personally I think the video is at its native framerate, but how come it appears to exhibit kind of blended fields/frames, which are the results of framerate conversion?
dragon_warrior is offline   Reply With Quote
Old 14th August 2011, 03:46   #6  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Shirtfull View Post
Not when more than two fields are involved
Two fields are not involved. Step through the fields and you will see single blended fields.
Guest is offline   Reply With Quote
Old 14th August 2011, 08:31   #7  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by dragon_warrior View Post
Personally I think the video is at its native framerate,
If you're saying the native framerate is 29.97fps, then that's not correct. It was shot on film and edited by idiots. It can't be unblended because in most of the frames with blends, both fields are blended. There's not even much you can do with the car part as it's already missing frames and plays jerky. I don't think you can improve much over a simple:

TFM()#with a better deinterlacer, if you like
TDecimate()

But maybe someone else has a better idea.

Last edited by manono; 14th August 2011 at 08:33.
manono is offline   Reply With Quote
Old 16th August 2011, 15:16   #8  |  Link
dragon_warrior
Registered User
 
Join Date: May 2010
Posts: 123
Quote:
Originally Posted by manono View Post
If you're saying the native framerate is 29.97fps, then that's not correct.
Yeah, my bad. The video was originally 24p telecined to 30i, but the process is irreversible due to the presence of blended fields. Well, as you said, there's nothing I can do with this source, even a qtgmc followed by srestore could hardly produce any noticeable results. I'd better skip it and move on to the rest on my HDD.
Thank you all!
dragon_warrior is offline   Reply With Quote
Old 20th August 2011, 19:15   #9  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
I think that can be fixed, these are called double-blends. There's 4 fields in a row but anchors before the start and at the end, to work your way inwards to subtract the blends.
Don't give up - can't do it right now, I've got a long list of things...
jmac698 is offline   Reply With Quote
Old 26th August 2011, 12:06   #10  |  Link
dragon_warrior
Registered User
 
Join Date: May 2010
Posts: 123
Quote:
Originally Posted by jmac698 View Post
I think that can be fixed, these are called double-blends. There's 4 fields in a row but anchors before the start and at the end, to work your way inwards to subtract the blends.
Don't give up - can't do it right now, I've got a long list of things...
Yo, I'm so glad to hear it. Thanks mate
dragon_warrior is offline   Reply With Quote
Old 26th August 2011, 15:20   #11  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
I've recovered it, but the blended frames look bad. It's not totally done, I'm having a problem with wrong field order, but the end result should be smooth motion and no blends, but artefacts for those two frames. I'm also finding srestore crashes with anything else so I had to separate to two passes.
jmac698 is offline   Reply With Quote
Old 26th August 2011, 17:04   #12  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
Try this, run the two scripts p1even and p1odd and save to lossless (ffdshow ffv1 is one of the best codecs). Then run p2. Scroll to frame 130, you can see the doubleblended reconstructed fairly well. The other sections aren't blended and are now screwed up as a result of processing. You could probably trim sections to finish it now, but I'll see if I can do it in one script. Anybody want to make suggestions feel free, I'm not good at this type of thing!
Code:
#p1even.avs
dir="E:\project001a\double blend\"
MPEG2Source(dir+"x.demuxed.d2v", cpu=0)
assumetff
separatefields
selecteven
#pp2 and pp3 are much better than other modes
srestore(omode="pp3.blur(1)", cache=5)

#p1odd.avs
dir="E:\project001a\double blend\"
MPEG2Source(dir+"x.demuxed.d2v", cpu=0)
assumetff
separatefields
selectodd
#pp2 and pp3 are much better than other modes
srestore(omode="pp3.blur(1)", cache=5)

#p2.avs
dir="E:\project001a\double blend\"
e=AVISource(dir+"p1even.avi")
o=AVISource(dir+"p1odd.avi")
interleave(o,e)
assumefieldbased
weave
telecide(guide=1,post=2)
decimate(cycle=5,quality=0)
#works for blended sections, i.e. frame 138-
#in other places, it's deinterlacing and causing (near) dups

Last edited by jmac698; 26th August 2011 at 17:06.
jmac698 is offline   Reply With Quote
Old 29th August 2011, 11:12   #13  |  Link
dragon_warrior
Registered User
 
Join Date: May 2010
Posts: 123
thanks very much, i'll give it a try
dragon_warrior is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:57.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.