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. Qt Multimedia 5 - Video codecs (ffmpeg) - possible?
Forum Update on Monday, May 27th 2025

Qt Multimedia 5 - Video codecs (ffmpeg) - possible?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 8.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.
  • A Offline
    A Offline
    archdove
    wrote on last edited by
    #1

    Hello

    I'm trying to display different multimedia formats inside my applicaiton. I chose qml because it provides me with some fancy icandy i can easaly sell to my chef.

    Since Qt uses gstreamer i assumed that i can play all the video formats i have the codecs installed for. And also i assumed since totem (which uses gstreamer) can play them, there wont be any problems. I was wrong.

    Since i cant tell exactly which codec don't work, i look for a solution for just one of them. One file i can play with mplayer which uses ffmpeg codec to decode. Gstreamer support is installed for this.

    Is there a general solution? Do i have to "load" gstreamer somehow? Add it to the pro file or whatever?

    Is there another way?

    I have a simple qml video tag wight source set to the file. Nothing more.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi!
      Maybe "this":http://qt-project.org/forums/viewthread/27077/ thread can be helpful for you.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        archdove
        wrote on last edited by
        #3

        I found that this does not work:
        gst-launch-0.10 playbin uri=file:///home/sfuser/projects/qt_prototyping/videoPlayer/videoPlayer/media/SFclip2.mpg

        ...while this does:
        gst-launch-1.0 playbin uri=file:///home/sfuser/projects/qt_prototyping/videoPlayer/videoPlayer/media/SFclip2.mpg

        So yea. Qt5 uses gstreamer0.10 which is not able to play my file.

        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