Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved How to create a video file with an audio track?

    General and Desktop
    2
    4
    224
    Loading More Posts
    • 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.
    • K
      kitfox last edited by kitfox

      I've been reading the documentation on QMediaRecorder, trying to figure out how I might be able to use it to generate a video file. Most of the documentation for this and related classes seem to presume some sort of streaming is going on, where you're routing data from a camera or an existing video directly to the destination file without many changes.

      I'd like to do something different. I want to generate original image data and combine it with several different audio clips to generate a final composite file. Basically, I'm trying to create a movie editor and want to have the program mix various clips of footage with soundtracks, sound effects and user generated items like floating text. Is there a way to do this?

      Also, I noticed that Qt includes the ffmpeg license agreement as part of its documentation. Does this mean when I use Qt the ffmpeg libraries are already included? Is there a way for me to access them?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        QMediaRecorder take a QMediaObject as parameter. Create your own subclass and provide the adequate controls. You can then generate what you want to record.

        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 Reply Quote 2
        • K
          kitfox last edited by kitfox

          I've been reading through the different data provided by QMediaObject, and the docs of the objects it provides and so on. It seems to be all metadata - I can't find any point where buffers of image or audio data are provided. Do you know of any examples where a QMediaObject provides synthesized data?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            For synthesised data ? No, I don't know any of them.

            However, you can take a look at the various QCamera backneds in Qt sources to see what you need to implement with regards to recording.

            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 Reply Quote 0
            • First post
              Last post