playMaker

Author Topic: SRT file Subtitle parser  (Read 1272 times)

BTJH

  • Playmaker Newbie
  • *
  • Posts: 4
SRT file Subtitle parser
« on: March 22, 2020, 08:55:23 PM »
Hi All,
Is it possible to make a subtitle parser/reader on a text object?  Just wondering if PlayMaker could do this?

So when one puts a video in scene, the video will be able to output subtitles from SRT file format.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: SRT file Subtitle parser
« Reply #1 on: March 25, 2020, 05:32:38 AM »
Hi,

 this is not difficult at all, the format is simple enough.

 you can split the srt file by empty lines breaks. you then take the first line as the index, the second line for timing and third line for content.

timing parsing can be done in playmaker as well with string parse actions.

 It's doable in PlayMaker purely. Would be a cool exercice indeed.

Bye,

 Jean

BTJH

  • Playmaker Newbie
  • *
  • Posts: 4
Re: SRT file Subtitle parser
« Reply #2 on: March 26, 2020, 09:18:39 PM »
Thank you Jean.

I will give it a try and see if I can get it done.

Cheers
Ben

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: SRT file Subtitle parser
« Reply #3 on: March 30, 2020, 02:28:24 AM »
Hi,

 Let me know how it goes, ok? You have to tackle this step by step to get overwhelmed.

Bye,

 Jean