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 18th April 2002, 05:25   #1  |  Link
skyline
Registered User
 
Join Date: Dec 2001
Location: Australia, Adelaide
Posts: 20
recombine fields - reinterlace - I love smoothness!

I find deinterlacing annoys me with it's jerkyness.

Currently, I capture DV 720x576 then avisynth bob to 720x288x25 then resize to 352x288 & compress to xvid. This results in nice smooth PC playback.
What I would like to be able to do is put this xvid back to DV tape sometimes (whilst maintaining smooth motion). How do I do this? I thought weave would be the answer but that has no effect on frame based source clip. How do I combine the progressive 352x288x50 to 720x576x25 interlaced?
I also am of the understanding that each field will have to be offset by one line when reinterlacing. how?
__________________
I LIKE signatures
skyline is offline   Reply With Quote
Old 18th April 2002, 16:51   #2  |  Link
dividee
Registered User
 
Join Date: Oct 2001
Location: Brussels
Posts: 359
You can use Weave, but you have to tell avisynth your clip is field-based with AssumeFieldBased:
Code:
AssumeFieldBased().Weave()
Quality may still be better than if you encoded to xvid by discarding one of the fields. However, quality of the encoded xvid itself would be a lot better by doing that.

I'm not sure how you could undo the "bobbing". Maybe something like this (untested):
Code:
BicubicResize(width,height*2) # resize to full height
SeparateFields().SelectEvery(4,0,3) # keep top field of even frames and bottom field of odd frames
Weave()
__________________
dividee
dividee is offline   Reply With Quote
Old 19th April 2002, 06:00   #3  |  Link
skyline
Registered User
 
Join Date: Dec 2001
Location: Australia, Adelaide
Posts: 20
>Quality may still be better than if you encoded to xvid by discarding one of the fields. However, quality of the encoded xvid itself would be a lot better by doing that.

AssumeFieldbased worked
Quality is much better IMHO than discarding a field with regards to motion. I simply increase the bitrate to compensate for the extra frames (currently pleased with about 2500).
I have noticed though when I reencode to DV output to camcorder and play on TV, there is a slight "shimmering" effect. Is this a result of the bobbing not being correctly undone? or perhaps i need ComplementParity as well?
I will do more testing. Thanks!
__________________
I LIKE signatures
skyline is offline   Reply With Quote
Old 19th April 2002, 09:15   #4  |  Link
hakko504
Remember Rule One
 
hakko504's Avatar
 
Join Date: Oct 2001
Location: SWEDEN
Posts: 1,612
I think the shimmering is created by the original bob. The bob function of AVIsynth is only a lineshifted resize. You could try this script as a form of smartbob:
Code:
function GreedyBob(clip clip)
{
Loadplugin("greedyHMA.dll")
video1=clip.GreedyHMA(1,0,0,0,0,0,0,0)
video2=clip.GreedyHMA(0,0,0,0,0,0,0,0)
return Interleave(video1,video2)
}
Do note that this will not resize the video buit leave it in the original size. A possible usage is this:
Code:
video=AVISource("DV.avi")
GreedyBob(video)
BicubicResize(352,288,0,0.5)
And to recombine to interlaced 25fps:
Code:
AVISource("xvid.avi")
BicubicResize(720,576,0,0.5)
Separatefields()
SelectEvery(4,0,3)
Weave()
__________________
/hakko

http://www.boardgamegeek.com
hakko504 is offline   Reply With Quote
Old 19th April 2002, 19:31   #5  |  Link
skyline
Registered User
 
Join Date: Dec 2001
Location: Australia, Adelaide
Posts: 20
Thanks for the reply hakko.
Can't seem to get greedyHMA working.
I read in another post after many attempts that it is only for sse2 machines (mine isn't).
Perhaps there is another way using xvid's "interlaced" option?

My goal is to:
1) Watch Xvid encodes of my DV footage(PAL) at 352x288 with SMOOTH MOTION.
and
2) Be able to convert that Xvid back to DV type 2 AVI with SMOOTH MOTION for sending back to camcorder for viewing on TV (I don't have TV-out).

I find all modes of deinterlacing ruin the motion, but at 50fps the motion is preserved for viewing on PC monitor.
__________________
I LIKE signatures
skyline 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 18:41.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.