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. |
10th June 2004, 13:09 | #1 | Link |
Registered User
Join Date: Jul 2002
Posts: 587
|
Decimate Gurus I need your help
i have an interesting 59.94 progressive HDTV stream
the problem is there is no static pattern for dupe frames. Normally i would use selecteven() or selectodd() to get down to 29.97 then a Decimate(5) to get to 23.976 and all would be good to go. But this stream is wacko. There is a single frame randomly placed in it every 10 to 40 frames with NO dupe frame. Now what is more wacko still is this single frame does not happen the whole way through. minutes can go by with no single non duped frame then all of the sudden they start up again. if i use selecteven() or selectodd() then 50% of these are cut and i get a jump which of course looks bad. if i use decimate (2) then the 2 frames will NEVER be dupes since the one is always the only one so 50% of the time it gets deleted there too since it is randomly placed. the basic pattern normally is AAABBCCCDD the whole way but this stream is AAABCC or AAABCCC or AABCCC (it randomly changes as it goes) suggestions? |
10th June 2004, 15:15 | #2 | Link |
brainless
Join Date: Mar 2003
Location: Germany
Posts: 3,653
|
please count the unique frames of 240 HDTV-Frames.
are there 100 unique Frames or only 96 Frames? if there are 96 frames, the video contains 24p else if there are 100 frames it contains 25p. I recommend using smartdecimte in this case: for 24p : x=last x.separatefields()selectevery(4,0,3).weave() smartdecimate(24,60,bob=x,weave=x) for 25p : x=last x.separatefields()selectevery(4,0,3).weave() smartdecimate(1250,2997,bob=x,weave=x) does this thread refect your problem? http://neuron2.net/ipw-web/bulletin/...=weird+pattern
__________________
Don't forget the 'c'! Don't PM me for technical support, please. |
11th June 2004, 02:57 | #3 | Link | |
Registered User
Join Date: Jul 2002
Posts: 587
|
Quote:
it is 1280 x 720p at 59.94 FPS so it is a matter of just pattern matching. to knock it down to 24(23.976) yes that thread has some linkage What i have here is more random though. The single non dupes frames can be anywhere and there is no repeat pattern in some areas of the clip. I have a feeling they just appended scenes and didn't do a full compress on the whole thing. it is like you get one pattern on the close up of a face. Then cut to another scene and it all changes. multidecimate did a good job and it kept the stills i wanted. 60+ frames worth for each still photo from a photo album on screen etc... so those can't be fully cut out. i will have to try smartdecimate next thanks Last edited by Zep; 11th June 2004 at 03:01. |
|
12th June 2004, 13:04 | #4 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
I've discovered a great new arbitrary decimation algorithm. It has the following features:
* one-pass operation * specify any decimated framerate * one frame comparison per output frame (!) * preferentially decimates duplicates over singletons * maintains audio sync throughout This should be a good fast solution to Zep's problem and I expect it will make Decimate() obsolete. I've already begun coding. Last edited by Guest; 12th June 2004 at 14:37. |
12th June 2004, 16:51 | #5 | Link | |
Registered User
Join Date: May 2002
Posts: 220
|
Quote:
That would help me clean-up my hybrid analog TV captures and maintain the framerate. |
|
13th June 2004, 01:47 | #6 | Link | |
Registered User
Join Date: Jul 2002
Posts: 587
|
Quote:
I need this BIG time cause I now have tried multidecimate (which does fine but audio sync is hosed to a point I can't fix unless i spend hours sliding around audio chunks) smartdecimate same problem as normal decimate, i.e. the rapid pattern changes confuse it and it too drops singletons as well as AA pairs. (which shocks me that it would drop 2 good frames and cause a jump in motion. however the read me did say if you do not have pattern it would fail so...) This truly is a case where I can't help the function by walking it and getting a pattern because there is none. We truly have to have a super smart decimat to the point where Decimate(23.976) is all that is needed. DG I am very impressed you can pull that off with 1 pass. i was almost certain it would take 2 passes. this is great news! Thanks Last edited by Zep; 13th June 2004 at 01:52. |
|
13th June 2004, 12:54 | #7 | Link |
Moderator
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
|
Zep-
It sounds to me like you were using MultiDecimate in Global Mode. If you use Cycle Based, the audio should stay in synch. And I agree that having Decimate(WhateverFPS), if that's what neuron2 has in mind, is very good news. |
13th June 2004, 13:27 | #8 | Link |
brainless
Join Date: Mar 2003
Location: Germany
Posts: 3,653
|
oh, sounds very good!
It would be really cool, If it could handle weird decimation ratios like 2997/6250 and pattern like those: ABBBCDDDEFFGGHH .... 13131222 or ABBBBCDEEEEFGHHHIIJJKKLL 14114113222 Dideé and me are pulling out our hairs on getting smartdecimte running in large scripts like restore24... smartdecimate is like a small child: one day everything works fine, the other day nothing works, only crashes and weird behaviours...
__________________
Don't forget the 'c'! Don't PM me for technical support, please. |
13th June 2004, 15:10 | #9 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
I have the filter done and now I want to write documentation and do a journal entry. Maybe by tonight I will release it. Don't expect perfection, because it cannot be achieved, as I will explain. But this will be a useful step forward. At least it won't crash or act weirdly.
|
13th June 2004, 16:23 | #10 | Link | |
Registered User
Join Date: Jul 2002
Posts: 587
|
Quote:
A dupe frame staying in here and there is ok but a singleton being cut is BAD news because that is very noticeable. As long as no singletons are cut i think it will good to go. |
|
13th June 2004, 16:30 | #11 | Link | |
Registered User
Join Date: Jul 2002
Posts: 587
|
Quote:
(of course I may have found better parms if I spent more time but I moved on to Global: Protect static scenes) Remove duplicates: Global: Protect static scenes worked well (it did leave a few dupes but only very few) but didn't cut any singletons and that was the main goal. (the secondary was leave the static scenes alone. photos and NO motion for 60+ frames so 60+ dupes in a row etc...) Last edited by Zep; 13th June 2004 at 16:36. |
|
15th June 2004, 01:53 | #12 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
FDecimate 1.0.0
I've made the first release of my new free decimator, FDecimate().
Please be sure to read the help file carefully to understand why free decimation cannot be perfect if you want to keep the audio and video in sync. http://neuron2.net/fdecimate/fdecimate.html |
15th June 2004, 04:07 | #13 | Link | |
Registered User
Join Date: Jul 2002
Posts: 587
|
Re: FDecimate 1.0.0
Quote:
|
|
15th June 2004, 10:50 | #14 | Link | |
I'm afraid we've to stop
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
|
Re: FDecimate 1.0.0
Quote:
Question: is metrics parameter enables debug info or I have to enable it explicitely ?
__________________
Gordian Knot Family: Gordian Knot: website, download Auto Gordian Knot: Website and download, tutorial, FAQ |
|
15th June 2004, 17:51 | #16 | Link | |
I'm afraid we've to stop
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
|
Quote:
__________________
Gordian Knot Family: Gordian Knot: website, download Auto Gordian Knot: Website and download, tutorial, FAQ |
|
15th June 2004, 18:46 | #17 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
Still, if you're going for 24FPS, couldn't FDecimate detect there's not enough duplicates to throw out and do a blend decimation from 30 to 24 (or maybe directly from 120 to 24) a la mode 3 to get down to 24? np: Giardini Di Miṛ - Dancemania (Hits For Broken Hearts And Asses) |
|
15th June 2004, 19:21 | #18 | Link |
Moderator
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
|
Hi-
...but if you're going for 30FPS you'll get studdering on the 24FPS parts due to missing frames... You may or may not get noticeable stuttering during the 24fps parts, but if you do, it surely won't be because of missing frames, but because of the extra duplicate frames. |
15th June 2004, 20:16 | #19 | Link | ||
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
Quote:
I was a little over-excited when I said it would obsolete Decimate(). Last edited by Guest; 15th June 2004 at 20:23. |
||
15th June 2004, 20:22 | #20 | Link | |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|