Talk:ShowFrameNumber
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) (ShowSMPTE: integral or drop-frame framerates only) |
Raffriff42 (Talk | contribs) (ShowSMPTE: fps argument) |
||
Line 1: | Line 1: | ||
=====ShowSMPTE: integral or drop-frame framerates only===== | =====ShowSMPTE: integral or drop-frame framerates only===== | ||
− | + | On reading text-overlay.cpp <code>ShowSMPTE::ShowSMPTE</code>, it looks like the framerate must be an integer (±0.001) or be in drop-frame range (eg, 23.975 - 23.977); framerates like 24.25 will be rounded to <code>int(24.25+0.5)==24.0</code> and the time calculation will be off. This can't be right! | |
## (source 24fps) | ## (source 24fps) | ||
ShowTime(y=50) ## top center | ShowTime(y=50) ## top center | ||
Line 12: | Line 12: | ||
ShowTime(y=50) | ShowTime(y=50) | ||
ShowSMPTE ## time is wrong | ShowSMPTE ## time is wrong | ||
− | |||
[[User:Raffriff42|Raffriff42]] 04:08, 29 December 2015 (CET) | [[User:Raffriff42|Raffriff42]] 04:08, 29 December 2015 (CET) | ||
+ | |||
+ | =====ShowSMPTE: fps argument===== | ||
+ | I don't quite get the '''fps''' argument; is it to force a different framerate for timecode display purposes? For example, to show 24fps film frames on a 30fps video clip?<br> | ||
+ | [[User:Raffriff42|Raffriff42]] 04:17, 29 December 2015 (CET) | ||
[[Category:Talk]] | [[Category:Talk]] |
Revision as of 04:17, 29 December 2015
ShowSMPTE: integral or drop-frame framerates only
On reading text-overlay.cpp ShowSMPTE::ShowSMPTE
, it looks like the framerate must be an integer (±0.001) or be in drop-frame range (eg, 23.975 - 23.977); framerates like 24.25 will be rounded to int(24.25+0.5)==24.0
and the time calculation will be off. This can't be right!
## (source 24fps) ShowTime(y=50) ## top center ShowSMPTE ## time is correct
AssumeFPS(24000, 1001) ShowTime(y=50) ShowSMPTE ## time is correct
AssumeFPS(24.25) ## any number not an integer ±0.001 or listed in drop-frame table ShowTime(y=50) ShowSMPTE ## time is wrong
Raffriff42 04:08, 29 December 2015 (CET)
ShowSMPTE: fps argument
I don't quite get the fps argument; is it to force a different framerate for timecode display purposes? For example, to show 24fps film frames on a 30fps video clip?
Raffriff42 04:17, 29 December 2015 (CET)