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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th March 2003, 16:41   #1  |  Link
Bach
Registered User
 
Join Date: Apr 2002
Posts: 54
rePal, my first plugin. Use: NTSC ->PAL IVTC

hi,

rePal is my first plugin, with almost 30% of the code stolen from neuron's decomb. As the name already point to, it is usefull for a 30->25 IVTC conversion. It must be used in conjunction with a (smart)bob. It works deleting 7 frames from every group of 12 frames, in such way that only blended and/or repeated frames are decimated. It is very reliable when the source clip is known to be PAL telecined material (most of time this is known as 25fps->30fps conversion). Using this plugin you MAY achieve better results than telecide(guide=3).decimate(6), since the ghosting effect can be very decreased.

The usage is

#################################
LoadPlugin("rePal.dll")
AVISource("mixed.avi")
bob() ## it is much better to use a smartbob . If the result is not good, use complementparity() before. ##
repal()
#################################

(...) read more in the readme file.

ps: limitations: it was not tested in avisynth 2.5, and may not work with it and/or YUV12.

Last edited by Bach; 9th July 2003 at 12:14.
Bach is offline   Reply With Quote
Old 11th March 2003, 19:50   #2  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
@Bach: Looks very good - I don't have any sources to test on myself - but they'll probably turn up.

Potential problems:
- Don't assume pitches are the same for all frames. Your findanchor loop assumes that pitch is the same for all the frames it recieves. This may however not be the case. So store the pitch along with the pointers to avoid any potential problems here.

Optimizations for your FindAnchor loop:
- Instead of /2 and /8, use bitshifting (>>1 and >>3 respectively). You cannot trust the compiler to do this as you work on signed ints. It is much faster - especially in inner loops. This can however only be used when the divisor is a power of 2. A clever compiler might however see that the entire line is a constant within the loop, and therefore calculate it before it enters the loop. However you should probably do this manually just to be sure.

- Instead of %8, use &7. Again much faster. Again only valid for divisors that are multiple of 2.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 14th March 2003, 13:15   #3  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
Could you please port the filter to AVS2.5? It would be much appreciated, I've got some material I think this one will deal with extremely well.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 14th March 2003, 18:16   #4  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
Have you tried it? What happends if you do?
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 14th March 2003, 19:39   #5  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
@sh0dan: I just get an error message 'not an Avisynth 2.5 plugin' (if that's what you meant ) Maybe it's just not compiled properly?
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 14th March 2003, 20:34   #6  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
Re: Re: rePal, my first plugin. Use: NTSC ->PAL IVTC

Quote:
Originally posted by Bach
I said it in my first post. I have not used avs2.5 yet, simply because I am mainly a CCE user and, AFAIK, that mpeg encoder doesn´t take any advantage of those new features of avs2.5. I'm sorry.
Well, I think that there's no harm in using 2.5. It's very stable and I'd suppose you'll get a slight speedup even with CCE. Thanks for the plugin anyway, there are never too many conversion options available
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 17th March 2003, 20:24   #7  |  Link
mj0012
Guest
 
Posts: n/a
Works great!

Bach,

Thanks for the filter; I've been looking for something like this for awhile now. I've got a large collection of DVDs from Hong Kong and a lot of them are telecined PAL -> NTSC conversions and they usually just look horrible on a computer monitor. So far it's worked great on everything I've tried it with; I'll let you know if I come across any clips that don't work so you can test them.
  Reply With Quote
Old 8th April 2003, 01:34   #8  |  Link
Chez_Wimpy
Registered User
 
Chez_Wimpy's Avatar
 
Join Date: Feb 2003
Location: Hokkaido, Japan
Posts: 28
Fantastic job Bach! I was somewhat reluctant to try this due to my complete conversion over to 2.5, but seeing as I had some recent rare Hong Kong DVDs added to my collection (Ichi the Killer, Lily Chou-Chou), I gave it a shot. I found that using the smartbob option with the complementparity() function did the trick. The resulting framerate (24.975) can be slowed with AssumeFPS(24), making repal effectively refilm! Night and day.

I hope you are compelled to tune this plugin for 2.5, as I now consider it one of the essentials in my toolbox. From what I have seen, almost every music video shot in Europe is shot on film @ 25fps. The Cure video collection recently in stores in the US, is a good test disc for those who are curious.

Thanks again

-CTB
Chez_Wimpy is offline   Reply With Quote
Old 8th April 2003, 02:38   #9  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
I compiled it for Avisynth 2.5, but it does not support YV12. I haven't tested it so someone with an appropriate input clip please do so.
Guest is offline   Reply With Quote
Old 9th April 2003, 07:10   #10  |  Link
Chez_Wimpy
Registered User
 
Chez_Wimpy's Avatar
 
Join Date: Feb 2003
Location: Hokkaido, Japan
Posts: 28
Works well, with some caveat...

Works as before with the same input clip I was using. However, when I go to use the recomended "smartbob" script variety (which calls tomsmocomp, and smoothdeinterlace) it has some problems. Replacing those plugins with the 2.5 versions, it now seems something is being processed differently. The top of the final encoded image fluctuates in the first 2 or 3 lines, blinking in and out. I would suspect this is some weave-artifact. Also, somewhat curious, I notice now that clips that require the complementparity() line no longer need it, but for those that didn't, vice-versa: the repal encodes judder without the line. Something appears to have been flipped!

Like I said, the indicator seems to point to a difference in either the Smoothdeint or TomsMoComp 2.5 implementation.
__________________
-CTB
Chez_Wimpy is offline   Reply With Quote
Old 9th April 2003, 16:19   #11  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Thank you for the results, Chez_Wimpy. I don't have time to look into Smoothdeinterlacer or TomsMoComp in this regard. Perhaps the authors will comment.
Guest is offline   Reply With Quote
Old 10th April 2003, 07:28   #12  |  Link
encod3r
Registered User
 
Join Date: Jul 2002
Posts: 14
Excellent work, please keep up development. Best thing i've tried so far on this NTSC BBC mini-series i've been playing with!
encod3r is offline   Reply With Quote
Old 19th April 2003, 22:04   #13  |  Link
gotaserena
String Theorist
 
Join Date: Mar 2003
Location: Na terra dos 10000 lagos.
Posts: 218
I'd second that. This is the best thing for captures of sports events shot in Europe and broadcast in the U.S.

Hope that someone pick this up...
gotaserena is offline   Reply With Quote
Old 22nd April 2003, 03:26   #14  |  Link
rcjc
Registered User
 
Join Date: Apr 2003
Posts: 15
so how do you know when to complementparity() and when not to?
what kind of "bad" results are we looking for?
rcjc is offline   Reply With Quote
Old 2nd May 2003, 21:26   #15  |  Link
pr0nandy
Registered User
 
Join Date: Jun 2002
Posts: 7
I've tried the plugin on a PAL -> NTSC converted vob. the results are great! Good work!
__________________
Yes, I Am A Retard.
pr0nandy is offline   Reply With Quote
Old 3rd May 2003, 15:37   #16  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
Quote:
However, when I go to use the recomended "smartbob" script variety (which calls tomsmocomp, and smoothdeinterlace) it has some problems.
Sorry, I don't know what this is.

- Tom
trbarry is offline   Reply With Quote
Old 4th May 2003, 21:10   #17  |  Link
pr0nandy
Registered User
 
Join Date: Jun 2002
Posts: 7
What about NTSC converted to PAL, will there be a plugin to covert it back to NTSC or get it progressive in some way?
__________________
Yes, I Am A Retard.
pr0nandy is offline   Reply With Quote
Old 4th May 2003, 21:30   #18  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
IMO true interlaced(30i)/progressive(30p) NTSC will not be recoverable, because the field are mixed too much.
30 fields are mixed into 25 fields.

But I hope that someone can make a Filter, that can recover the progressive frames of this kind of conversion, which is very common (but not whished ) in Europe:
24p -> 30i (telecine) -> 50i (fieldblending)

Would this be possible?
scharfis_brain is offline   Reply With Quote
Old 11th July 2003, 15:24   #19  |  Link
dar1us
Registered User
 
dar1us's Avatar
 
Join Date: Apr 2002
Location: Europe/Oceana
Posts: 332
Where can I get the filter?


harrison

(dejavu?)
dar1us is offline   Reply With Quote
Old 11th July 2003, 15:35   #20  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
www.geocities.com/wilbertdijkhof/repal.zip

dunno if it is the latest ...
Wilbert 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 20:31.


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