Log in

View Full Version : Combined movies different Frames Per Second FPS


lindylex
5th July 2008, 00:20
I wanted to place to video files together one plays at 59 frame per second (FPS) the other at 29.97. When I place them together I have to match the frames per second. Is there a way to do this with avisyth and not have one become slow motion or the other have to play twice as fast?

This is what I tried below.



aaa = avisource ("C:\Documents and Settings\lex\Desktop\2008_may_25\101CANON\MVI_0287.AVI ", false )
bbb = avisource ("C:\Documents and Settings\lex\Desktop\2008_may_25\101CANON\MVI_0289.AVI ", false )

nnnn = avisource ("C:\Documents and Settings\lex\Desktop\2008_may_25\101CANON\MVI_0338.AVI ", false )
oooo = avisource ("C:\Documents and Settings\lex\Desktop\2008_may_25\101CANON\MVI_0339.AVI ", false )

combineda = aaa + bbb
combinedb = nnnn + oooo

combined=combineda+combinedb.BilinearResize(640,480).assumefps(combineda)

return combined


Thanks Lex

Gavino
5th July 2008, 01:29
Instead of AssumeFPS, try using ChangeFPS (http://avisynth.org/mediawiki/ChangeFPS) or ConvertFPS (http://avisynth.org/mediawiki/ConvertFPS).

lindylex
5th July 2008, 01:34
[ Solution Solved ]

combined=combineda+combinedb.BilinearResize(640,480).SelectEven().assumefps(combineda)

lindylex
5th July 2008, 01:38
Gavino, this works too, thanks.

combined=combineda+combinedb.BilinearResize(640,480).ChangeFPS(combineda)

This does not.

combined=combineda+combinedb.BilinearResize(640,480).ConvertFPS(combineda)

Gavino
5th July 2008, 15:52
SelectEven (or SelectOdd) is the most appropriate solution if you want to obtain exactly half the original frame rate. (In your original post, it was not clear which of the two frame rates (fast or slow) you wanted in your final result.)

In this situation, ChangeFPS has the same effect.
If ConvertFPS does not work (you do not say how it fails), it's probably because your source is interlaced. (See documentation (http://avisynth.org/mediawiki/ConvertFPS))

lindylex
5th July 2008, 16:44
Gavino, it sounds like ConvertFPS is more like what I want to use.

"The output will have (almost) the same duration as clip, but the number of frames will change proportional to the ratio of target and source frame rates."

It did not work because I used the incorrect syntax format.

Thanks, Lex

Gavino
5th July 2008, 20:44
[ConvertFPS] "The output will have (almost) the same duration as clip, but the number of frames will change proportional to the ratio of target and source frame rates."
That's true for ChangeFPS too. (If you think about it, it has to be so from the definition of frame rate.)

The difference lies in how the extra frames are added or removed - ChangeFPS simply duplicates or deletes original frames, while ConvertFPS is more complex, blending frames with the aim of giving smoother motion at the expense of possible reduction in picture quality.

For your specific example (where you are exactly halving the frame rate), I would expect the results to be the same (and equivalent to SelectEven). Can you see any differences?