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

Script to add automatically caption or modify it.

Engaged ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

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

 

Bed30321077z973_0-1698849616106.png

 

 

?

TOPICS
SDK

Views

452

Translate

Translate

Report

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 2 Correct answers

Adobe Employee , Nov 01, 2023 Nov 01, 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.

Votes

Translate

Translate
Adobe Employee , Nov 01, 2023 Nov 01, 2023

Correct, there is no API access to captions.

Votes

Translate

Translate
Adobe Employee ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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 ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

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)

Votes

Translate

Translate

Report

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
Adobe Employee ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

Correct, there is no API access to captions.

Votes

Translate

Translate

Report

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 ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

It's very nice to have this type of communication, thank you so much.

Votes

Translate

Translate

Report

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
New Here ,
Aug 27, 2024 Aug 27, 2024

Copy link to clipboard

Copied

if i import .srt files via app.project.importFiles(), then how can i use extend script to drag the srt file to track automatically? 

Votes

Translate

Translate

Report

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
Adobe Employee ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

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