AnimeSuki Forums

Register Forum Rules FAQ Community Today's Posts Search

Go Back   AnimeSuki Forum > Anime Related Topics > General Anime > Fansub Groups

Notices

Reply
 
Thread Tools
Old 2011-08-16, 09:34   Link #1
Quarkboy
Translator, Producer
 
 
Join Date: Nov 2003
Location: Tokyo, Japan
Age: 44
Best way to IVTC a mostly single cadence source...

I was being nostalgic and reading old threads here where Mentar was arguing about how automatic IVTC is never a good enough solution, and anyway I realized that I might be doing something kind of silly at the moment.
Thankfully in the past 5 years a lot/most anime is now produced and editing in pure 24 fps, which means that ivtc'ing has gotten simpler (that and much cleaner sources. Although the mpeg2 ts encoding can make it hard again).

I often get 100% perfect cadence 3:2 pulldowned 29.97 files, or occasionally there will single cadence shifts that happen at commercial breaks. (i.e. the source is constant, but when the tv studio adds in the CM breaks they break the cadence). A full IVTC filter like tfm is overkill, slow for no good reason, and needs to have strange settings to make sure it doesn't pick strange matches anywhere, so lately I've been using my own manual IVTC function:

function PulldownRemove(clip c, int offset)
{
c.SeparateFields()
(offset == 0) ? SelectEvery(10,0,1,2,3,4,5,8,7) : (offset == 1) ? SelectEvery(10,0,1,2,3,6,5,8,9) : (offset == 2) ? SelectEvery(10,0,1,4,3,6,7,8,9) : (offset == 3) ? SelectEvery(10,2,1,4,5,6,7,8,9) : (offset == 4) ? Trim(1,0).SelectEvery(10,0,1,4,3,6,7,8,9) : c
return Weave()
}

where I find the correct value of offset by trial and error (well, there are only 5 possible choices).
But when there are 3-4 segments that becomes a bit of a pain, but it's still overkill to use a fullfledge IVTC filter.
What would people suggest for a "perfect" ivtc of _almost_ constant cadence material?
__________________
Read Light Novels in English at J-Novel Club!
Translator, Producer, Japan Media Export Expert
Founder and Owner of J-Novel Club
Sam Pinansky
Quarkboy is offline   Reply With Quote
Old 2011-08-16, 10:55   Link #2
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Use try pattern/set pattern in YATTA. Gives you a nice GUI for finding the offset and generates a fieldhint override file as well as a TDecimate override file.

On the other hand, automated IVTC with TFM is more than good enough for single cadence sources, and you will most likely end up spending more time figuring out the correct pattern and mashing buttons in YATTA than you save during the encoding process by not using TFM.
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2011-08-16, 12:23   Link #3
Quarkboy
Translator, Producer
 
 
Join Date: Nov 2003
Location: Tokyo, Japan
Age: 44
Quote:
Originally Posted by TheFluff View Post
Use try pattern/set pattern in YATTA. Gives you a nice GUI for finding the offset and generates a fieldhint override file as well as a TDecimate override file.

On the other hand, automated IVTC with TFM is more than good enough for single cadence sources, and you will most likely end up spending more time figuring out the correct pattern and mashing buttons in YATTA than you save during the encoding process by not using TFM.
I just worry with tfm that'll it'll miss a lip flap or something when I'm not looking... But maybe I'm being paranoid. Also, it's not threaded and slows down 1080p encoding significantly.
__________________
Read Light Novels in English at J-Novel Club!
Translator, Producer, Japan Media Export Expert
Founder and Owner of J-Novel Club
Sam Pinansky
Quarkboy is offline   Reply With Quote
Old 2011-08-17, 03:10   Link #4
TheRyuu
warpsharpened
 
Join Date: Sep 2008
The way I do it (also explained somewhere in here) is probably the fastest 'safe' way to do it. It's for sources where the pattern changes on commercial breaks but is otherwise the same in between them (save for a few scenes sometimes). I guess it's something of a half way point between just running tfm and calling it a day and just blindly using one pattern. You can decide if it's worth the small time investment.

Using cutter(->crop)->telecide->decimate is very fast (<=10 minutes or less on an i7 for a 24 minute episode). We don't need the matches from tfm so we can skip that and we don't need the scene change information from scxvid because we're making our own anyway at the commercial break boundaries.

You should be able to section it run pattern guidance on the sections (ctrl+alt+g). If one fails just set it manually (ctrl+t then ctrl+s) and go find the problem scene. This is where actually getting the metrics comes in handy because you can go through and look for high vmetrics (typically v difference on both sides and threshold set to ~30, threshold is source dependent) since we have the metrics. If you find something typically it's some random frame or an entire scene with a different pattern (ymmv). It wouldn't show up if we used tfm (we're setting a constant pattern for everything between commercial breaks) but there's no way to guarantee that tfm/tdecimate did the right thing for the entire source.

Set/do whatever else (cropping/resize/etc), save all overrides, encode. Make sure to use the updated fieldhint as it's much faster (the old one didn't request frames lineally so it could get slow with certain sources).

Last edited by TheRyuu; 2011-08-17 at 03:52.
TheRyuu is offline   Reply With Quote
Reply


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 -5. The time now is 19:00.


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