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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 22nd April 2018, 16:49   #1  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,412
Is there a complete decimate function? bit depths, chroma subsampling ?

Is there a more complete decimation function that supports other bit depths, chroma subsampling somewhere?

vapoursynth's vdecimate is limited (missing some modes and functions of tdecimate)

avisynth's tdecimate, decomb decimate work in 8bit YV12 or YUY2 only

Or is there a way to calc the metrics on a YV12/YUY2 clip and apply to another clip in the native pixel format?



Or I would like to request a tdecimate mod which supports other bit depths/sampling/pixel types
poisondeathray is offline   Reply With Quote
Old 22nd April 2018, 17:09   #2  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,770
Use clip2 in vdecimate. Done. Maybe I should add other formats too some day...
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 22nd April 2018, 17:24   #3  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,412
Quote:
Originally Posted by Myrsloik View Post
Use clip2 in vdecimate. Done. Maybe I should add other formats too some day...
But there is no cycleR parameter in vdecimate, or other usage modes

For example, if you needed some other ratios, not just 1 in N decimation
poisondeathray is offline   Reply With Quote
Old 22nd April 2018, 20:05   #4  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,412
I guess a workaround for M in N decimate would be to run vdecimate a few times , with each iteration changing the value for cycle N-1
poisondeathray is offline   Reply With Quote
Old 22nd April 2018, 20:22   #5  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,770
Quote:
Originally Posted by poisondeathray View Post
I guess a workaround for M in N decimate would be to run vdecimate a few times , with each iteration changing the value for cycle N-1
That would be one naive way to do it, yes. One of the two main reasons I haven't bothered with M in N is that I've never really needed it myself and I don't have sample material to even try it on.

The other being that some people will want some kind of cyclic decimation with the dropped frames evenly spaced out, some will want most similar frames dropped and some want enormous cycles. It's almost easier to dump the difference and scenechange metrics from vdecimate and calculating which frames to drop from that then. Use a bit of python scripting and get the best results on your source!
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 22nd April 2018, 20:27   #6  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,412
Quote:
Originally Posted by Myrsloik View Post
It's almost easier to dump the difference and scenechange metrics from vdecimate and calculating which frames to drop from that then. Use a bit of python scripting and get the best results on your source!
This is not so easy for python noobs (ie. me )

But I'm curious and willing to learn

Do you have any practical usage examples ?
poisondeathray is offline   Reply With Quote
Old 23rd April 2018, 12:30   #7  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,364
Quote:
Originally Posted by Myrsloik View Post
It's almost easier to dump the difference and scenechange metrics from vdecimate and calculating which frames to drop from that then.
Isn't that what mode 2 + 2-pass processing in TDecimate actually does?
__________________
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 23rd April 2018, 19:33   #8  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Ikea Chair
Posts: 1,770
Quote:
Originally Posted by Boulder View Post
Isn't that what mode 2 + 2-pass processing in TDecimate actually does?
I guess it more or less does that. For some reason I've never really liked that 2 pass stuff.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 24th April 2018, 06:22   #9  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,364
Quote:
Originally Posted by Myrsloik View Post
I guess it more or less does that. For some reason I've never really liked that 2 pass stuff.
I've found out that for example with MacGyver NTSC DVDs, it's the only way to get at least close to a non-stuttering output. The telecine pattern is a bit random probably due to the editing made back in the 80s. A normal IVTC looks mostly fine but when you notice the incorrect dupes or frame drops, you cannot unsee it anymore.
__________________
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
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 00:52.


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