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. QtMultimedia support custom video format
Forum Updated to NodeBB v4.3 + New Features

QtMultimedia support custom video format

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtmultimediavideoformat
4 Posts 2 Posters 690 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.
  • D Offline
    D Offline
    Dmitry87
    wrote on 11 Sept 2022, 12:09 last edited by
    #1

    Hi all,
    I have a proprietary video format with custom container structure and video codec. I can currently unpack each frame of the video format into QImage. I need to add support of this format to Qt Multimedia, so that it could be played using this QML type: https://doc.qt.io/qt-5/qml-qtmultimedia-mediaplayer.html
    I found this short instruction, without any details though: https://forum.qt.io/topic/82803/adding-custom-video-format-to-qt-using-qtmultimedia
    Is there an instruction/example how support for custom video format can be added to QtMultimedia?
    I'll appreciate any tips.
    Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Sept 2022, 19:04 last edited by
      #2

      Hi,

      Since you have a codec, does it integrate with your OS multimedia framework ?

      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
      • D Offline
        D Offline
        Dmitry87
        wrote on 11 Sept 2022, 20:17 last edited by Dmitry87 9 Dec 2022, 08:26
        #3

        Hello SGaist,
        The format has own file extension and internally represented as a set of images with jpg-like compression. The code that I have extracts the images and creates RGB888 QImage for each frame. In current condition it can't be used as a system-wide decoder or something.
        Is it possible to add this format to Qt Multimedia without using system-specific layers, to make it cross-platform?
        I'd like to specify it like this and use the item interfaces to manipulate the video:

            MediaPlayer {
                id: playMusic
                source: "c:/video.msv"
            }
        
        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Sept 2022, 17:27 last edited by
          #4

          I am currently unsure that you can achieve that this way.
          If memory serves well, you can create a custom QMediaObject that you can attach to VideoOutput. It could be an alternative.

          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/4

          13 Sept 2022, 17:27

          • Login

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