QtMultimedia support custom video format
-
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. -
Hi,
Since you have a codec, does it integrate with your OS multimedia framework ?
-
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" }
-
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.