I have some 23.976 fps footage and the UI of After Effects says correctly that its 23.976 and e.g. codec info of VLC player says that its 23.976000.
However, if I use AE scripting, AVItem.frameRate gives me the value 23.9759979248047
Is this a bug or am I missing something?
After Effects math behind the scenes is very inconsistant I've noticed with each scripting venture that takes me deeper into the abyss. Some results truncating to different fixed decimal places. If you added ".toFixed(3)" it should result in the "6" at the end. If you pull that same footage into FCP it'll probably say 23.98. None of the softwares are on the same page with this FPS.
thank you for the reply. This fixed the problem.
I was mainly wondering whether there is a fundamental reason (something like 23.9759979248047 being the actual correct, precise number). Good to know that its just a rounding error.
Europe, Middle East and Africa