Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Choppy video playback

Choppy video playback

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 294 Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 9 Jul 2024, 16:09 last edited by A Former User 7 Sept 2024, 20:08
    #1

    Hello, I've been testing out QML media player with the example code provided here (https://doc.qt.io/qt-5/qml-qtmultimedia-videooutput.html) except I've added this line to the MediaPlayer so it plays audio

    audioOutput: AudioOutput {}
    

    And I've made it play upon the click of a button (not auto play) with a little bit of code to ensure it does not play twice if the button is clicking repeatedly. I've done this by making sure the PlayingState of the playing variable is false when re-playing the video

    In case it matters, the video I'm playing is this one and it has .mp4 extension. It's 15.2 MB
    https://youtu.be/4mw9seG_unI

    The audio and video playback is very choppy. Hopefully my description of the problem makes sense. Maybe the best analogy is you'd think I was playing a resource-intensive video game on a potato PC with how bad the audio sounds and video looks
    Any ideas as to how to make it play more smoothly?

    Failing this, are there any alternate ways of implementing videos I could try?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Jul 2024, 18:28 last edited by
      #4

      Can you test a release build ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 9 Jul 2024, 16:16 last edited by
        #2

        Hi,

        Which version of Qt are you using ?
        On which platform ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        ? 1 Reply Last reply 9 Jul 2024, 16:18
        0
        • S SGaist
          9 Jul 2024, 16:16

          Hi,

          Which version of Qt are you using ?
          On which platform ?

          ? Offline
          ? Offline
          A Former User
          wrote on 9 Jul 2024, 16:18 last edited by
          #3

          @SGaist

          I'm using Qt 6.7.2 on Windows 11 OS

          Compiling to
          Android_Qt_6_7_2_Clang_x86_64-Debug

          For device
          Galaxy Nexus

          For OS version
          Android 13.0

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 9 Jul 2024, 18:28 last edited by
            #4

            Can you test a release build ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on 9 Jul 2024, 18:45 last edited by
              #5

              Sure, I'll begin the download now

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on 9 Jul 2024, 19:56 last edited by A Former User 7 Sept 2024, 20:10
                #6

                Seems like a big improvement

                If anybody has any other suggestions to improve playback performance let me know but I'll consider that fixed at least for smaller size videos since that's like drastically better already

                1 Reply Last reply
                0
                • System has marked this topic as solved on 9 Jul 2024, 20:09
                • System has marked this topic as solved on 9 Jul 2024, 20:09

                2/6

                9 Jul 2024, 16:16

                topic:navigator.unread, 4
                • Login

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