Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Multimedia
  4. How to provide SRT file to QMediaPlayer
Forum Updated to NodeBB v4.3 + New Features

How to provide SRT file to QMediaPlayer

Scheduled Pinned Locked Moved Solved Qt Multimedia
4 Posts 3 Posters 576 Views 2 Watching
  • 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 Offline
    S Offline
    Sikander Rafiq
    wrote on last edited by
    #1

    HI,
    Is there any way to provide SRT file to QMediaPlayer for subtitles. Thanks.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Afaics this is not yet supported.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sikander Rafiq
        wrote on last edited by
        #3

        I have manually added Subtitles support in my QT app. thanks.

        J 1 Reply Last reply
        0
        • S Sikander Rafiq has marked this topic as solved on
        • Nhan NguyenN Nhan Nguyen moved this topic from General and Desktop on
        • S Sikander Rafiq

          I have manually added Subtitles support in my QT app. thanks.

          J Offline
          J Offline
          j77h
          wrote last edited by j77h
          #4

          @Sikander-Rafiq said in How to provide SRT file to QMediaPlayer:

          I have manually added Subtitles support in my QT app

          Would you be so kind as to share some clues about how you did it?

          I'm building a PySide6 app for editing/translating subtitles,
          using libmpv to display the video with subtitles.
          But my app has to save a whole SRT file just to show
          one freshly-edited subtitle (even when the video is paused).

          So I'd be interested to know how to make a text overlay
          that can show text on a video (playing as well as paused).

          I suspect that you used a text overlay, as I could not see any other way to do it, last time I looked (maybe a year ago).

          Edit: I hope you meant Qt (cute), not QT (cue tee),
          as I'm not interested in Apple QuickTime. ;)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved