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. Video play using gstreamer / directshow /vlc
QtWS25 Last Chance

Video play using gstreamer / directshow /vlc

Scheduled Pinned Locked Moved Unsolved General and Desktop
gstreamervlcdirectshowmediaplayer
6 Posts 3 Posters 1.2k 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.
  • T Offline
    T Offline
    The Qt Mayssa
    wrote on 7 Mar 2024, 15:47 last edited by
    #1

    Hello, I'm working on a C++/QML application that is working on linux and windows.
    The main iea is to display a video in Qml using QMEDIAPLAYER.
    Video Lecture uses the Api:
    ON linux : gstreamer that i have installed
    On windows : directShow by default ( installed k-lite for the codecs )
    so my question is the next: what's the difference between the directshow Api and gstreamer ? should i compile gstreamer on windows to have the same behavior on linux ?

    And What about the option of using vlc in c++ to use the object in QML?

    C 1 Reply Last reply 7 Mar 2024, 18:14
    0
    • T The Qt Mayssa
      7 Mar 2024, 15:47

      Hello, I'm working on a C++/QML application that is working on linux and windows.
      The main iea is to display a video in Qml using QMEDIAPLAYER.
      Video Lecture uses the Api:
      ON linux : gstreamer that i have installed
      On windows : directShow by default ( installed k-lite for the codecs )
      so my question is the next: what's the difference between the directshow Api and gstreamer ? should i compile gstreamer on windows to have the same behavior on linux ?

      And What about the option of using vlc in c++ to use the object in QML?

      C Offline
      C Offline
      ChrisW67
      wrote on 7 Mar 2024, 18:14 last edited by
      #2

      @The-Qt-Mayssa said in Video play using gstreamer / directshow /vlc:

      what's the difference between the directshow Api and gstreamer ?

      One API is the invention of Microsoft for use on Windows (and deprecated), the other is open source with cross-platform support. Directshow is guaranteed to be present on any modern Windows machine and thus the default there. GStreamer is often present, or trivially installable, on Linux machines. They both provide facilities for manipulating video and audio.

      should i compile gstreamer on windows to have the same behavior on linux ?

      Not without a compelling reason for spending the time and effort.
      From the perspective of QMediaPlayer it is largely irrelevant which backend is in use: they all provide sufficient capability.

      There are prebuilt Gstreamer runtime binaries for Windows in any case.

      And What about the option of using vlc in c++ to use the object in QML?

      You are thrashing around looking for a solution. What is the problem?

      T 1 Reply Last reply 11 Mar 2024, 08:15
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 7 Mar 2024, 18:30 last edited by
        #3

        Hi,

        In addition to @ChrisW67, the latest Qt 6 uses now by default ffmpeg on all platforms.

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

        T 1 Reply Last reply 11 Mar 2024, 10:19
        0
        • C ChrisW67
          7 Mar 2024, 18:14

          @The-Qt-Mayssa said in Video play using gstreamer / directshow /vlc:

          what's the difference between the directshow Api and gstreamer ?

          One API is the invention of Microsoft for use on Windows (and deprecated), the other is open source with cross-platform support. Directshow is guaranteed to be present on any modern Windows machine and thus the default there. GStreamer is often present, or trivially installable, on Linux machines. They both provide facilities for manipulating video and audio.

          should i compile gstreamer on windows to have the same behavior on linux ?

          Not without a compelling reason for spending the time and effort.
          From the perspective of QMediaPlayer it is largely irrelevant which backend is in use: they all provide sufficient capability.

          There are prebuilt Gstreamer runtime binaries for Windows in any case.

          And What about the option of using vlc in c++ to use the object in QML?

          You are thrashing around looking for a solution. What is the problem?

          T Offline
          T Offline
          The Qt Mayssa
          wrote on 11 Mar 2024, 08:15 last edited by
          #4

          @ChrisW67 said in Video play using gstreamer / directshow /vlc:

          rashing around looking for a solu
          Thank you for this answer! Let me me talk about my application:

          • it's cross platform application to work on windows as the linux( raspberry pi ) .
          • i need to show the user what's the rpi is going to display with my widgets ( video streaming , pause , play...) So this option is possible on his windows PC . (the reason why i needed the same behavior)
            PS: the gstreamer can't give me a smooth display with high resolution videos .
          1 Reply Last reply
          0
          • S SGaist
            7 Mar 2024, 18:30

            Hi,

            In addition to @ChrisW67, the latest Qt 6 uses now by default ffmpeg on all platforms.

            T Offline
            T Offline
            The Qt Mayssa
            wrote on 11 Mar 2024, 10:19 last edited by
            #5

            @SGaist we are talking about using ffmpeg when using mediaplayr in qml right ?
            Do you think that they solved the problem when i diplay two videos in the same time , i get the error like buffer occupied and can't set audio !
            In addition, gstreamer is freezing sometimes the video and i don't have a smooth display.. is it a known problem ?

            S 1 Reply Last reply 11 Mar 2024, 21:54
            0
            • T The Qt Mayssa
              11 Mar 2024, 10:19

              @SGaist we are talking about using ffmpeg when using mediaplayr in qml right ?
              Do you think that they solved the problem when i diplay two videos in the same time , i get the error like buffer occupied and can't set audio !
              In addition, gstreamer is freezing sometimes the video and i don't have a smooth display.. is it a known problem ?

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 11 Mar 2024, 21:54 last edited by
              #6

              @The-Qt-Mayssa both widgets and qml are concerned.

              For the rest I don't know. You need to do some testing since you have the various systems at hand.

              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

              4/6

              11 Mar 2024, 08:15

              • Login

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