User Tag List

Results 1 to 10 of 10

Thread: Parsing .SRT Subtitle Files

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,553
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Parsing .SRT Subtitle Files

    Made to help another user, and uploading here just in case it's useful to anyone else:
    https://1drv.ms/u/s!Atq7cUIJ7uextFba...7kr10?e=AiVAt4

    It has not been thoroughly tested, and since CF2.5 seems very limited when it comes to displaying formatted text, it just strips the formatting tags out of the subtitles instead.

  2. #2
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,573
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Awesome!
    I was going to make it but I got very busy with some paid work that I have to finish...
    Love your examples, always so well commented and organized

    The only concern tho is that it's tied to framerate, and SRT files are made for different amounts of frames per second (which I'm not sure if it even specifies?)
    But adding DeltaTime to it would be good.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,553
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NaitorStudios View Post
    The only concern tho is that it's tied to framerate, and SRT files are made for different amounts of frames per second
    That's just so I didn't have to include a movie file in the example. Obviously in actual use, you would just retrieve the current time from whatever media playback object you're using - eg. Video Total Time( "AVI" ) or GetPosition( "Direct Show" ).

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Dec 2013
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yesterday i'm also start to make something similar but i have a little bit of problem to convert the time of subtitles to a time value, this is what i do till now...

    SubsExample.zip

    Off course, the MuddyMole stuff is better than this, but i wanna try to finish in my way just for fun, if someone can help with this i appreciate!

    EDIT
    I found the way to convert the string in to time value, so i'm ok with this

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Dec 2013
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I finish my example, i think it works good but is not commented and maybe is not so easy to understand.

    SubsWidget.zip

    I hope it can be usefull

  6. #6
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,573
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Looks good

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    513
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice example @MuddyMole

    Great works @ciaciosacchetti

    Is it compatible with Android, iOS too?

  8. #8
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Dec 2013
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have to try, but i think yes!
    Monday if i have time i will test for Android

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export ModuleFirefly 3D Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    513
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I'm wondering if mobiles read .srt format or not.

  10. #10
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Dec 2013
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi all, for fun I tried reprogramming the example from scratch and everything works fine. I also added some graphics and added a level with comments (I used google translate, I hope it's understandable).
    Anyway, everything works fine but on android the subtitle text is not visible at the beggining, but it becomes visible if a new subtitle file is loading from the top bar. I hope you can help me to solve this glitch... Hello and happy new year to all!

    SubsWidget_1.0.mfa.zip

Similar Threads

  1. parsing external map fil
    By bad_rick in forum Fusion 2.5
    Replies: 1
    Last Post: 10th October 2016, 10:15 PM
  2. Help with parsing a file
    By macca02 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th October 2013, 10:52 AM
  3. EasyXML object - parsing stupidly huge files
    By JIMJ316 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th June 2012, 11:18 PM
  4. Parsing question...
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th September 2008, 05:05 PM
  5. Parsing
    By ayejes in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 31st March 2008, 08:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •