Video subtitles

0 favourites
  • 7 posts
From the Asset Store
Add SubRip (SRT) subtitles to your videos in Construct 3
  • Hello,

    Is there a way to play subtitles for cinematic videos so that they line up to the parts where they are needed?

    For example, at 0:20 play the first subtitle, then at 0:25 play newer subtitles, and so on.

    I thought this was possible but the last time I looked at it was ~2 years ago. I can't seem to figure out how to do it now.

    Thanks

    Tagged:

  • $30 for a working answer that involves a nice solution. I'd rather not do this the hacky way...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hmm... if I were to take a stab at it I would imagine I'd need a (project) file containing a way to identify the relevant video clip, each subtitle block, the time it should begin, and the duration it should stay visible (and possibly positional information?). This file would need to be created manually and could be parsed on start of layout to load into an array.

    A single text object would display all the subtitles. The text object would have one timer tag to keep track of the total duration of the video, and to trigger loading each subsequent subtitle into the text object. It would also have a separate duration timer tag to clear the previous subtitle upon triggering. A simple incrementing counter variable representing the array index could be used to display each subtitle block in sequence.

    I can put together an example at a later time if this doesn't make sense.

  • Yeah, I was thinking of that as a last resort. I swear I recall seeing somewhere that you can natively track a video's time, so I was thinking of syncing each to that, but I haven't used C3 in over a year now so I forget what the plan was exactly.

    If you want to get in touch and perhaps be paid for a working solution, I'd be happy to work something out, please let me know

    Thanks

  • You're right, there is a Video.PlaybackTime expression to get the current time.

    Here is an example (it's a little big due to high resolution in the original video) dropbox.com/s/ub0s765rbmgky2t/subtitlesexample.c3p

    I changed my idea a bit, this new way should be able to handle if you fast forward or rewind as well. The data you need to provide is start time, end time, and subtitle.

  • Yep, that was it! Would you be interested in expanding on this off-site? I'd be willing to pay more + then provide whatever we come up with to others. Otherwise please send me a PayPal address, I really appreciate your help.

    Thanks

  • Email and paypal are oosyrag at gmail. Let me know if you run into issues, or if there was any particular existing subtitle file format you want to work with, I should be able to adapt it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)