Log in

View Full Version : Convert VFR to CFR with ffmpegsource2?


lubczyk
30th January 2009, 19:14
I've got this script:

LoadPlugin("FFMS2.dll")

FFVideoSource("AnimeTest.mkv")

I want to convert framerate from vfr to cfr, but I'm not sure how to use fpsnum and fpsden. All the documentation says is:

"fpsnum & fpsden: For VFR -> CFR conversion. Setting fpsnum <= 0 means a 1:1 relation with the encoded frames."

I have no idea what, "Setting fpsnum <= 0 means a 1:1 relation with the encoded frames," means.

Comatose
1st February 2009, 13:13
It means that if fpsnum is 0 or less than 0, it will not do any conversion.

It allows you to specify a fraction: fpsnum is the numerator, and fpsden is the denominator, so if you wanted to achieve 29.97 fps you would specify fpsnum=30000 and fpsden=1001 (try 30000/1001 in a calculator)

lubczyk
1st February 2009, 18:43
It means that if fpsnum is 0 or less than 0, it will not do any conversion.

It allows you to specify a fraction: fpsnum is the numerator, and fpsden is the denominator, so if you wanted to achieve 29.97 fps you would specify fpsnum=30000 and fpsden=1001 (try 30000/1001 in a calculator)

That explains it. Thank you very much!!!