Skip to main content
Bed30321077z973
Inspiring
November 1, 2023
Answered

Script to add automatically caption or modify it.

  • November 1, 2023
  • 1 reply
  • 1534 views

Can you code through extendscript (or other), automatically adding the caption you  desire  for a video (by inputing  both text and time stamps), either adding:

- the full caption for a video,

- or for a part of a video

- or for just one instant

 

 

 

?

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

Correct, there is no API access to captions.

1 reply

Bruce Bullis
Legend
November 1, 2023

While it is possible to import .srt files via app.project.importFiles(), then create trackItems based on the .srt files' projectItem, PPro offers no other caption-related APIs.

Bed30321077z973
Inspiring
November 1, 2023

Ok so trackitems, (https://ppro-scripting.docsforadobe.dev/item/trackitem.html) is  kind of any  "attribute" for a clip.. such as (name, duration..).

So:

1) srt file is imported.
2) analysis of file and string to create values that can be used as track items

Ok then from here you are saying that it is impossible to "communicate with the captions" right? Just so it 100% clear and so I can forget about this idea. (I guess importing manually a srt file can do it instead? with less options to do what you want inside PP)

Bruce Bullis
Bruce BullisCorrect answer
Legend
November 1, 2023

Correct, there is no API access to captions.