fix(growing): correct growing frame rate selection for 59.94 fps
This commit is contained in:
parent
c2d15b4e3a
commit
1f71de494f
1 changed files with 3 additions and 1 deletions
|
|
@ -414,7 +414,9 @@ function deriveGrowingRaster(resolution, framerate, scanHint = null) {
|
||||||
// ffmpeg rate + raw2bmx rate strings for the common broadcast rates.
|
// ffmpeg rate + raw2bmx rate strings for the common broadcast rates.
|
||||||
function rates(fps) {
|
function rates(fps) {
|
||||||
if (fps == null) return { ff: '30000/1001', raw: '30000/1001' }; // 1080i59.94 default
|
if (fps == null) return { ff: '30000/1001', raw: '30000/1001' }; // 1080i59.94 default
|
||||||
if (Math.abs(fps - 59.94) < 0.2 || Math.abs(fps - 29.97) < 0.05)
|
if (Math.abs(fps - 59.94) < 0.2)
|
||||||
|
return { ff: '60000/1001', raw: '60000/1001' };
|
||||||
|
if (Math.abs(fps - 29.97) < 0.05)
|
||||||
return { ff: '30000/1001', raw: '30000/1001' };
|
return { ff: '30000/1001', raw: '30000/1001' };
|
||||||
if (Math.abs(fps - 60) < 0.05) return { ff: '60', raw: '60' };
|
if (Math.abs(fps - 60) < 0.05) return { ff: '60', raw: '60' };
|
||||||
if (Math.abs(fps - 50) < 0.05) return { ff: '25', raw: '25' }; // 1080i50 → 25 fps frames
|
if (Math.abs(fps - 50) < 0.05) return { ff: '25', raw: '25' }; // 1080i50 → 25 fps frames
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue