Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: BTJH on March 22, 2020, 08:55:23 PM

Title: SRT file Subtitle parser
Post by: BTJH 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.
Title: Re: SRT file Subtitle parser
Post by: jeanfabre 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
Title: Re: SRT file Subtitle parser
Post by: BTJH 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
Title: Re: SRT file Subtitle parser
Post by: jeanfabre 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