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 Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th August 2019, 21:14   #1  |  Link
znowman
Registered User
 
Join Date: Aug 2019
Posts: 3
MVtools slowing a clip to a specific length

Hi,

Apologies if this has been answered elsewhere, i have looked but cant find anything that helps me out...

I'm trying to slow a clip down from 1.268 seconds to match another clip that is 4.116 seconds, and wondered if it's possible?

I've used MVtools to double or half the framerate, but i still can't figure out how to do the above, can anyone help?

Thanks for reading, and any help is much appreciated.
znowman is offline   Reply With Quote
Old 13th August 2019, 21:38   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 8,046
What are the frame rates of each clip, and framecounts.

I'm heading out of the door in a minute, so cant say much except not to have any great expectations.

I wrote this somewhere (here):= https://forum.doom9.org/showthread.p...40#post1857740

Quote:
It may be possible to up framerate to a non multiple of source whilst keeping all source frames verbatim, where eg source
is 24 FPS and required = 25 FPS, and using,
Src24.ChangeFPS(25) to produce a new clip at 25 FPS with an exact duplicate every 24 source frames and save new source as eg Src25.avi.
Process new source with eg src25.Duplicity2(ThG=0.1,DBase="D:\Src25_Det.DB"), to produce a DBase (perhaps with MaxDupLen=1, perhaps not).
Then use Src25.DropDeadGorgeous("D:\Src25_Det.DB",ScanAhead=12) to interpolate dupe frames achieving 25.0 and with all original
source frames. With a ScanAhead of eg 12, will locate dupes and then backwards scan up to 12 frames before the dupes looking for
frame of greatest movement, insert an interpolated frame prior to that greatest movement frame and shove all following frames along one
to remove the dupe. Might be worth someone experimenting.
Or, you could just use eg Duplicity2(Mode=2,ThG=0.1) to interpolate the exact dupes directly and without DropDeadGorgeous but that might
produce a more rhythmic stutter every 25 frames.
Might be able to make it assist.
Use ChangeFPS() to make same number of frames [with duplicates] and then run through Duplicity2() creating the DBase,
then throught DropDeadGorgeous() to do the Mvtools interpolation stuff.

I the mean time, you could be trying to figure out what ChangeFPS() arg provides the same frame count as target clip.

EDIT: Just using MvTools, you would likely end up with few original frames, at least as above you would keep all source frames.
EDIT: Offhand, cant remember if above ThG=0.1, should better be eg 0.000000000001 or 0.0.

EDIT: Can you post clips on a file host, eg MediaFire.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 13th August 2019 at 21:43.
StainlessS is offline   Reply With Quote
Old 13th August 2019, 23:41   #3  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,263
Just read the documentation for MVTools2. You use MFlowFPS and the key parameters are num and den (numerator and denominator). You have a ratio of 3.24605678233438 between your two clips' lengths. If your original clip is 25 fps, then set the num and den to give you 3.24605678233438 * 25 = 81.15141956.
johnmeyer is offline   Reply With Quote
Old 14th August 2019, 00:19   #4  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 8,046
Yip, but pretty much all output frames will be interpolated.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 26th August 2019, 00:13   #5  |  Link
znowman
Registered User
 
Join Date: Aug 2019
Posts: 3
Thanks for getting back to me about this, and sorry for my late reply...

I did use MFlowFPS but it doesnt like floating point numbers, so i tried to multiply the number accordingly to get rid of the decimal, but this didnt seem to work correctly, i'll give it another go and let you know if it works.

StainlessS, the clips i were using are deleted now, i just cut something random into smaller pieces to see if i could get them to have the same duration, but i'll have a look through the thread you suggest and see if i can gleen anything from it.

Thanks again for the replies.
znowman is offline   Reply With Quote
Old 26th August 2019, 00:46   #6  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,263
Just use two integers that give you the right ratio, very much like 1000/1001 is used to go from 24 fps to 23.976 or from 30 fps to 29.97 fps.
johnmeyer is offline   Reply With Quote
Old 30th August 2019, 20:58   #7  |  Link
znowman
Registered User
 
Join Date: Aug 2019
Posts: 3
Finally had another chance to play around with this and managed to get two clips to the same duration, thanks to your help johnmeyer.

I'll try the suggestions you have made StainlessS for keeping the original frames in tact, but i've not used Duplicity or DropDeadGorgeous before so will have to do a bit of research.
znowman is offline   Reply With Quote
Old 31st August 2019, 08:57   #8  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 8,046
To setup Duplicity2, just tune with the ThB [Block] setting, can almost certainly leave other threshold settings alone,
ie dont touch ThG, ThP, IgP, ThK, maybe set MaxDupLen=3, DBase="D:\MyDBase.DB" or whatever (use same created DB in DropDeadGorgeous).

EDIT: In this case, Duplicity2 just for creating DB for DDG, its DropDeadGorgeous that does the magic.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 31st August 2019 at 09:01.
StainlessS 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 11:11.


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