Skip to main content
Participant
July 28, 2023
Answered

How can i generate a XML doc for Premiere with my subtitles

  • July 28, 2023
  • 1 reply
  • 2177 views

I want to write a program that generates subtitle XML native sequence files that can be imported into Premiere Pro. Where can I find documentation on the specifications or format requirements for this?

This topic has been closed for replies.

1 reply

Bruce Bullis
Community Manager
Community Manager
July 28, 2023

Could you provide more specifics "subtitle XML native sequence file"? 

 

It sounds like you want .srt files (not an Adobe format), but I might be missing something...

Stan Jones
Community Expert
Community Expert
July 28, 2023

@JC31348615oir3,

 

There is less need for this now that PR has more flexible captioning tools. You can import srt or use transcription to get captions, and convert the captions to regular graphics text (Upgrade Caption to Graphic). But you may have special needs.

 

Here is one tool that was useful before the conversion option was available:

https://apps.microsoft.com/store/detail/subtitle2xml/9N78158BN7XM?hl=en-us&gl=us&activetab=pivot%3Aoverviewtab

 

My relevant comments from an old thread:

 

"The Subtitle2xml tool export will not drag to the PR timeline and will not "open" as such, but should import via Media Encoder and by dragging to the Project Panel. Note that the name of the sequence that appears in the Project Panel for the xml import will be the "name" parameter in the XML file; not the filename you used. (They should be the same if you took the defaults in Subtitle2xml.) I tried to test multiple imports by copying to a new filename. This didn't work until I edited the <name> parameter.

 

There's no magic here; just converting the srt into xml structure that PR will import and, in that process, convert to Essential Graphics type info. PR is encoding caption text (and I assume regular Essential Graphics text, but I don't know that) to base64 hex and storing in the project file."

 

@Bruce Bullis,

 

Is there any documentation for such XML import? Or for creation of an XML for such graphic/text import to PR?

 

Stan

 

Participant
July 28, 2023
That's exactly what I want to do. I do want to create graphics to import
into PR.

When I tried to use Subtitle2xml to convert subtitles, I found that I had
too many documents to convert and needed a program to help me. I noticed
that the subtitle text is encoded in base64 with a JSON schema, but there
are 8 bytes before the marshaled JSON bytes array. I would like to know
more about this protocol.