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. |
31st January 2016, 06:41 | #1 | Link |
Guest
Posts: n/a
|
Hybrid VFR with 24, 30 and 60FPS
I have a couple of DVDs that I'd like to mux into mkv, but I'm trying to work out the best way to do it. The DVDs are all NTSC and play at 29.97fps. They have telecined film sections, progressive 29.97 sections, and interlaced 29.97 sections.
Previously I've handled this with TFM & TDecimate's mode 4 and 5 functions and it's done the job pretty well. The only catch is in the deinterlacing - I'm stuck with a VFR clip that runs at either 23.976fps or 29.97. In some of the video clips there's quite a bit of fast scene swapping and the best way to capture that would be to bob the clips when they're interlaced, QTGMC being my preference here. Is there a way to field match the film sections, not touch the progressive sections and merge them all down into a VFR clip? I've had three somewhat successful attempts so far: 1: TDecimate gave me a 24/30 VFR. 2: TFM, ChangeFPS QTGMC and Dedup combined with gave me the correct frames - but because of the nature of exact dedup the 24fps sections were played as if they were at 30fps. 3: TDecimate gave me a 60/48 VFR. This is probably the best outcome I've had so far as all the timings are correct, there were just a lot of frames that I didn't really need in the file and I'd like to get rid of those if possible. I've heard good things about AnimeIVTC being able to handle 60/30/24 but as far as I can tell (I have 2.00) I can only achieve 30/24. If you'd like a sample you're welcome to request one. Last edited by thecoreyburton; 31st January 2016 at 12:37. |
1st February 2016, 04:38 | #5 | Link | ||
Guest
Posts: n/a
|
Quote:
Quote:
To counteract this I could use a IsCombedIVTC and use clip2 as follows: load the clip up again with VFRtoCFR 30000/1001, apply QTGMC and then ChangeFPS to 120000/1001. Essentially that'd be the same clip, but bobbed and it'd only replace the frames in the original that have combing. Then do a dedup (or exactdedup would be better in this case). There are two large issues with this though. 1) The process requires four passes. 2) It's inaccurate, sometimes it works, other times the footage is jumpy and bobs either incorrectly or replaces the wrong frames. I'm thinking there has to be a simpler way to do this and I've over-complicated it, but I certainly agree that getting it to 120fps seems to be the likely way to go as it's the lowest common multiple of all 3. Last edited by thecoreyburton; 1st February 2016 at 04:41. |
||
1st February 2016, 13:19 | #7 | Link | ||
Guest
Posts: n/a
|
I've found some, but mostly it's about re-encoding VFR (for example after loading a 24/30 VFR clip, applying the timecodes in avisynth and setting the clip to 120fps, it'll work in the same way ExactDedup would and would remove any exact duplicates). Given it can do that and also create 24/30 clips I'd assume there'd be a way to get it to do what we're asking of it. I'll keep looking into tdecimate documentation and other potential cases of the same problem.
I was working on an idea based off the following: Quote:
It's good in theory and decimates all the duplicates - but because it doesn't use any TFM input (due to having called TFM twice), the TFM sections are left in the form of abcdd with a double at the end. A closer examination of the clip without any TDecimate functions shows that the two last frames are similar but not identical. Quote:
This decimates those sections perfectly, the abcdd sections become simply abcd and everything lines up perfectly. Inspection of the clip without any TDecimate functions shows that the last two frames are once again very similar but not identical. Because this method does use a TFM input though, the duplicate is removed on the second pass. Last edited by thecoreyburton; 1st February 2016 at 14:07. |
||
1st February 2016, 15:24 | #8 | Link | ||||
Guest
Posts: n/a
|
I figured that the only reason the mode 6 script above didn't work is because the TFM sections weren't perfect duplicates and I was thinking about it for a bit. I came to the conclusion that if perhaps I did TFM and mode 5, then loaded the VFR clip back up the frames would have to duplicate, then I could do mode 6. I attempted a four pass shot at this:
Pass #1: Ran this as an analysis pass in Virtual Dub. Quote:
Quote:
Pass #3: Ran this as an analysis pass in Virtual Dub. Quote:
Quote:
After typing all this up it's obvious to me why it didn't work, but hopefully it gives someone an idea on potential solutions, perhaps. Experimenting with TDecimate's advanced options in the hopes one of them may help. Last edited by thecoreyburton; 1st February 2016 at 17:31. |
||||
2nd February 2016, 03:11 | #9 | Link |
Registered User
Join Date: Sep 2005
Location: Vancouver
Posts: 600
|
Personally I would just encode a 60fps file with 3:2 pulldown intact and forget about VFR. Unless you actually have a display that you run with a 120Hz source.
As a VFR test I tried that tweaked TFM script in place of yours, but I couldn't get TDecimate to recognize the 3:2 pulldown sections as 24fps no matter what I did. Even when I fed it as 60fps instead of 120fps, the actual decimation of the film sections was mostly correct, but the timecodes file just switched between 59.94 and 39.96 every frame. |
2nd February 2016, 04:20 | #10 | Link |
Guest
Posts: n/a
|
I'm seriously considering it. Or even manually analyzing each source individually and determining whether 60/30 or 30/24 would better suit it and doing the appropriate one. I do have a high refresh rate display that I use for both PC and TV though and some of the clips I'm trying to do are what I'd classify as my all time favorites, so the passion and want is there - I'm just not sure if there is a way to do what I'm asking and therefore I'm not if it's worth persisting or just giving up for now.
That's about where I'm at with this too. Best case scenario I can get 2 of the 3 desired rates displaying correctly. I'm a bit of a novice when it comes to this though, I feel like there's something I'm overlooking or an obvious way to do this. I should probably ask, is TDecimate capable of detecting 3 different frame rates? Perhaps the issue is that it's capped at two per file and it starts at the highest. In cases of 60/30/24 it'd get to 60/30 and then try and decide between them for each scene, in 30/24 it'd only have those two to choose from. Edit: On that note, if we use your script for keeping the pulldown intact and call TDecimate modes 4 and 5 afterwards we get a 60/48 clip with occasional bursts of 36fps. Last edited by thecoreyburton; 2nd February 2016 at 07:22. |
3rd February 2016, 07:29 | #12 | Link |
Guest
Posts: n/a
|
I think it'd work with decimation, but the frame playback times would be incorrect. ExactDedup would have the frames play back as ABCD-ABCD-, the dash representing where the a frame is held for an extra frame. TDecimate detects these sections and manually sets them to 24fps.
Is there a way to use that method but somehow get it to 120fps with the field-matched sections playing at the correct times? Eg: AAAAABBBBBCCCCCDDDDD rather than AAAABBBBCCCCDDDDDDDD. |
4th February 2016, 01:12 | #13 | Link |
Registered User
Join Date: Sep 2005
Location: Vancouver
Posts: 600
|
You're right. I realized today that's also the problem with TDecimate mode 6 for this purpose. It's the one mode that is designed not to change frame timings, since the idea is to input a 120fps file that already uses only integer frame repetitions (5*24, 4*30, 2*60) with no messy 3:2 or 6:4 pulldown patterns.
And the problem with the other TDecimate modes is as you say, they're only designed to handle two frame rates (base decimation rate and hybrid passthrough rate). |
5th February 2016, 12:50 | #16 | Link | |||
Guest
Posts: n/a
|
That's not very fortunate in this case! I guess I'll have to try various obscure methods and hope something gets it right at this point. I have a possible solution, but I'll have a crack at it before I post it here.
Edit: Here's my newest attempt, I actually got pretty close. Pass #1: Quote:
Quote:
Quote:
By loading in the already decimated clip at 120fps the timings would be correct even for the film sections and frames would simply be duplicated. Since deinterlacing this clip is out of the question, I called the original clip back in and attempted to deinterlace that instead and use it to replace the combed frames in the already decimated clip. The frames weren't played at the same times though it seems. Adding StackHorizontal(Step2,IVTC) makes the problem more apparent and I can see why it's going wrong, I'm just not sure how to fix it. Last edited by thecoreyburton; 5th February 2016 at 14:05. |
|||
5th February 2016, 16:25 | #17 | Link |
Registered User
Join Date: Sep 2005
Location: Vancouver
Posts: 600
|
As I recall, the process to create a 120fps CFR file involved using a crazy combination of poorly documented and/or untranslated Japanese tools that may not even be available anymore.
http://forum.doom9.org/showthread.ph...172#post286172 I'm not entirely sure they even handled 60Hz sections by bobbing. Most anime only used pure interlacing on credits, and even the hardcores don't care much about perfectly smooth motion there. |
8th February 2016, 08:35 | #18 | Link |
Guest
Posts: n/a
|
Wow, 2003. Thank you, that's a hell of a lot of digging you did to help me out. I'll get to work on acquiring all those plugins and testing out various methods of getting this to work. It does look like it's designed specifically for 30/24 as opposed to 60/30/24, but depending on how the plugins work there may be a way of incorporating bobbed footage. I'll work with bob in place of QTGMC until I get somewhere substantial I think, to save time.
|
13th February 2016, 23:49 | #19 | Link | |
Registered User
Join Date: Feb 2009
Location: USA
Posts: 676
|
Quote:
So why not take the output from that, and then rewrite the timecodes in V2 format? You can specify which frame ranges should run at what FPS. Any chance of getting a sample of the source file (with all 3 framerates) ? |
|
16th February 2016, 07:08 | #20 | Link |
Guest
Posts: n/a
|
I have several sources with varying rates at varying points, that's part of the problem. Some are simply credit sections which are very easy to do manually, others are not so simple and have many moments flicking back and forth in a short time. Manual selection on some of them would be too tedious. I'll have a flick through the sources and see if I can find a portion that has all 3, or even interlaced and film (so 60/24). There's probably a case like this on music DVD I have, I'd assume.
|
Thread Tools | Search this Thread |
Display Modes | |
|
|