Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMediaPlayer and QGraphicsVideoItem: unable to seek for a video file without audio thread
Qt 6.11 is out! See what's new in the release blog

QMediaPlayer and QGraphicsVideoItem: unable to seek for a video file without audio thread

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.7k Views 1 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.
  • E Offline
    E Offline
    ElboyQt
    wrote on last edited by
    #1

    Hello!

    I use QMediaPlayer and QGraphicsVideoItem for video output. When i try to seek for a video without audio thread video position isn't changed. Then i go to source code of DirectShow and notice that the method IMediaSeeking::setPosition() returns -2147467263(E_FAIL).

    Win7 Professional SP1, Qt 5.3.1

    Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you have gstreamer for Windows, installed somewhere ?

      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
      • E Offline
        E Offline
        ElboyQt
        wrote on last edited by
        #3

        I changed the topic and described my problem globally.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It even changes the problem completely.

          When you say video without audio thread to you mean video without a sound track ?

          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
          • E Offline
            E Offline
            ElboyQt
            wrote on last edited by
            #5

            Yes, media file with just one video thread.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              Hi I had same problem with videosurface, I guess there is a bug from somewhere when you switch from wmf to directx engine. I solved in this manner:
              When you scroll or set direct position do
              play->stop, change setOutputVideo(QVideoWidget reference) ,player->setPosition
              and when release slider do
              player->setOutPutVideo(QVideoGraphics or VideoSurface), player->play()

              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
              • Unsolved