playMaker

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

BTJH

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
SRT file Subtitle parser
« on: March 22, 2020, 05: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: 15072
  • Official Playmaker Support
    • View Profile
Re: SRT file Subtitle parser
« Reply #1 on: March 25, 2020, 02: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
    • View Profile
Re: SRT file Subtitle parser
« Reply #2 on: March 26, 2020, 06: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: 15072
  • Official Playmaker Support
    • View Profile
Re: SRT file Subtitle parser
« Reply #3 on: March 29, 2020, 11:28:24 PM »
Hi,

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

Bye,

 Jean