• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    SRT File Selection

    How To... ?
    5
    6
    617
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      simon100 last edited by

      Hi Everyone, 

      I have a setup using the SRT Player. Lots of videos selected at Random and played through a projector, is there a way to select the matching SRT file to play in sync on a separate projector/screen? 

      I've no doubt Im overlooking an obvious Actor to make this happen, enjoying having the subtitles be adaptable through the text draw so would like to keep it that way if possible.

      Many thanks

      Simon

      E DusX D 3 Replies Last reply Reply Quote 0
      • E
        electrologos @simon100 last edited by

        @simon100 said:

        <p>Hi Everyone, </p><p>I have a setup using the SRT Player. Lots of videos selected at Random and played through a projector, is there a way to select the matching SRT file to play in sync on a separate projector/screen? </p><p>I've no doubt Im overlooking an obvious Actor to make this happen, enjoying having the subtitles be adaptable through the text draw so would like to keep it that way if possible.</p><p>Many thanks</p><p>Simon</p>

         

        @woland

        thanks

        electrologospatra

        1 Reply Last reply Reply Quote 0
        • DusX
          DusX Tech Staff @simon100 last edited by

          @simon100

          I would suggest the table actor. Something like this:


          Other options exist, like using Data Array, but this seems possibly the most straight forward. 

          Troikatronix Technical Support

          • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
          • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

          Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

          S 1 Reply Last reply Reply Quote 0
          • S
            simon100 @DusX last edited by

            Big thanks @dusx that looks great.  

            Very much appreciated 👍🙏

            1 Reply Last reply Reply Quote 0
            • D
              DillTheKraut @simon100 last edited by

              @simon100

              you could use the "Get media file name" actor combined with the "text formatter". This way you'd always open the srt file with the same file name of the media file.

              By the way, if some one reads this with knowledge; Is there a way to 'invert' the text chopper? To optimize this, it would be great to 'chop off' the .avi or what ever there is. But the "text chopper" actor just leaves the last three chars instead. I feel, this is misleading if one thinks to chop off three chars from the end. But the mouse over help tells otherwise.

              Fred 1 Reply Last reply Reply Quote 1
              • Fred
                Fred @DillTheKraut last edited by Fred

                @dillthekraut I agree the text chopper should be able to do this - seems dumb that it cannot - at any rate this kind of work is better to offload to something a little more standardised than these strange actors. You can use the javascript actor for this easily. Make sure to connect the inputs and outputs of the actor to something that can send and receive text respectively othewise this will not work - the outputs dont automutate to types based on the code for some reason.

                // iz_input 1 "fileName"
                // iz_output 1 "fileNameWithoutExtension"
                function main() {
                    // Get the input file name from the first argument
                    let fileName = arguments[0];
                    
                    // Use JavaScript to get the base name by removing the last segment after the dot
                    let fileNameWithoutExtension = fileName.substring(0, fileName.lastIndexOf('.'));
                    // If there is no dot (i.e., no extension), return the file name as it is
                    if (fileNameWithoutExtension === "") {
                        fileNameWithoutExtension = fileName;
                    }
                    return fileNameWithoutExtension;
                }

                http://www.fredrodrigues.net/
                https://github.com/fred-dev
                OSX 13.6.4 (22G513) MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
                Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post