Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to handle different values of fps, when your video is x1 fps, your sequence x2 fps, TICKS, etc?

Engaged ,
Feb 04, 2024 Feb 04, 2024

Hello,

So here is my configuration:

- A sequence that has 25 FPS

- A video that has 30 FPS

- and Some Audios

Bed30321077z973_0-1707041458274.png

 

 

Ok then HOW to obtain the FPS value without looking at the UI?

I tried:

Item.getFootageInterpretation().frameRate;

Results:

- Sequences: 2.75404699046078e-8

- (Audios): 2.75404699046078e-8

- Video: 30 FPS (CORRECT).

Bed30321077z973_1-1707041890462.png

 

The problem is as you can see my sequence here is actually 25 FPS (cf screenshot), and I have No method to obtain its actual FPS,

 

or......................... is there?

 

Edit:

I am not sure how the sequence FPS is "set" from the beginning? So I am not sure how to "predict" its value.

TOPICS
SDK
372
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Feb 04, 2024 Feb 04, 2024

It's impossible to comment on the behavior you've described without seeing your ExtendScript code. 

Here is PProPanel successfully getting and setting frame rate.

Translate
Adobe Employee ,
Feb 04, 2024 Feb 04, 2024

It's impossible to comment on the behavior you've described without seeing your ExtendScript code. 

Here is PProPanel successfully getting and setting frame rate.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 04, 2024 Feb 04, 2024
LATEST

I obtain first the items in a collection of project items.

Then get the item in the variable "item", then:

 

 

 

$.writeln("GO!");
if (Item.name=="Sequence 01") {
        var fps = Item.getFootageInterpretation().frameRate; // 
        $.writeln("fps sequ : "+fps); //Will show 2.75404699046078e-8
}
if (Item.name=="myvideoname.mp4") {
        var fps = Item.getFootageInterpretation().frameRate; //
        $.writeln("fps vid : "+fps); //will show 30
}

 

 

 

Bed30321077z973_0-1707056194814.png

Bed30321077z973_1-1707056226947.png

 

Ok thank you for the link, seems much more advanced than anything I was writing, will make sure to back to it, as for now I am closing in a project involving in point and out points, without using the FPS. (When that's finished I will try to use what you showed me "elsewhere", to finish everything up.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines