Skip to main content
goafreak
Participating Frequently
August 1, 2019
Answered

Footage Interpretation frame rate 23.9760 vs 23.98

  • August 1, 2019
  • 1 reply
  • 2162 views

Hi,

If I change the footage interpretation frame rate (with setFootageInterpretation()) of an item to 23.9760, Premiere Pro shows 23.98. Is there a way to avoid the rounding the value?

Chris

This topic has been closed for replies.
Correct answer Bruce Bullis

> ... with the script, it always rounded to 23.98.

That's not the behavior I see, with this; what are we doing differently?

// new project, import just one piece of valid media, then run the following from ESTK:

var currentItem = app.project.rootItem.children[0];

var interp = currentItem.getFootageInterpretation();

if (interp) {

  alert("Original frameRate = " + interp.frameRate + " FPS.");

  interp.frameRate = 23.976;

  currentItem.setFootageInterpretation(interp);

  var safetyInterp = currentItem.getFootageInterpretation();

  alert("Retrieved frameRate = " + safetyInterp.frameRate + " FPS.");

}

Here's a screencast.

1 reply

Bruce Bullis
Legend
August 1, 2019

No; I think that rounding is only in the UI. If you re-open the footage interpretation dialog, the value is 23.976, right?

goafreak
goafreakAuthor
Participating Frequently
August 1, 2019

Unfortunately, no. I know that the input box on the Interpret footage form is rounded to 2 digits, but the display of the framerate on the project panel is always correct. If I set the framerate in the UI, it's correctly saved as 23.976 (although the input box displays 23.98), but with the script, it always rounded to 23.98.

Bruce Bullis
Bruce BullisCorrect answer
Legend
August 1, 2019

> ... with the script, it always rounded to 23.98.

That's not the behavior I see, with this; what are we doing differently?

// new project, import just one piece of valid media, then run the following from ESTK:

var currentItem = app.project.rootItem.children[0];

var interp = currentItem.getFootageInterpretation();

if (interp) {

  alert("Original frameRate = " + interp.frameRate + " FPS.");

  interp.frameRate = 23.976;

  currentItem.setFootageInterpretation(interp);

  var safetyInterp = currentItem.getFootageInterpretation();

  alert("Retrieved frameRate = " + safetyInterp.frameRate + " FPS.");

}

Here's a screencast.