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

Script to add automatically caption or modify it.

Engaged ,
Nov 01, 2023 Nov 01, 2023

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
1.6K
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 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.

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

Correct, there is no API access to captions.

Translate
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.

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

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

Correct, there is no API access to captions.

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

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

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

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

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