Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Writing video files programmatically



  • Hi, I was looking through the QT modules and classes, and could not find a way to write video files directly. The closest thing I could see was the QMediaRecorder class, which looks like it can generate video files using different codecs and such, but it requires a QMediaObject.

    Is there a way to write out a simple compressed AVI or something similar in QT? Should I try to subclass QMediaObject and fake some kind of camera? Are there plans for allowing direct video file creation, considering most of the output code seems to already have been written for QMediaRecorder?

    Thanks for your time!



  • Hi,

    if you don't need audio, you could have a look at "QtFFMpegWrapper":http://code.google.com/p/qtffmpegwrapper/



  • I'll give that a go, it looks like the right solution for me, thanks!


Log in to reply