Results 1 to 4 of 4

Thread: What is way to record a .mp4 file in QML?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default What is way to record a .mp4 file in QML?

    QMediaRecorder is a class of Qt. What would be the way to implement the same in QML w.r.t https://doc.qt.io/qt-5/qml-qtmultime...iaplayer.html?

    There is a camera recorder but can we pass a .mp4 file here and let it be recorded?
    https://doc.qt.io/qt-5/qml-qtmultime...arecorder.html

    What is way to record a .mp4 file in QML?

  2. #2
    Join Date
    Jun 2019
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: What is way to record a .mp4 file in QML?

    I had a similar challenge in a project. We tried using QMediaRecorder directly for .mp4 files, but it was kind of tricky. It turned out that using the camera recorder for this purpose in QML wasn't the most straightforward path.

    So, we had to get a bit creative. We ended up dabbling with some lower-level APIs to handle and record the media files. It took some extra coding, but it gave us the control we needed. And for more detailed video editing, we often looked outside of QML for solutions.

    Actually, for advanced video editing, I find tips on *spam link deleted by moderator*, really useful. They have a bunch of tools and guides that might help you out, especially if you're dealing with tricky formats like .mp4.

    Moderator comment: @rwahdan: Do not post links to sites offering non-Qt or commercial applications. Spamming is not tolerated on this forum.
    Last edited by d_stranz; 12th January 2024 at 00:45.

  3. #3
    Join Date
    Dec 2024
    Posts
    1
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: What is way to record a .mp4 file in QML?

    Recording .mp4 files in QML is challenging when using the QMediaRecorder class directly for this purpose, users need to take measures including using lower level APIs to have better control over the recording process.

  4. #4
    Join Date
    Dec 2019
    Posts
    1
    Qt products
    Platforms
    Windows

    Default Re: What is way to record a .mp4 file in QML?

    Yeah, I've hit roadblocks with QMediaRecorder in QML, too. It doesn't give the flexibility I needed for .mp4, especially when trying to control resolution and bitrate. I bypassed it using some C++ integration and GStreamer for more precise handling. It took longer, but I got better results and more consistent output.

    After recording, I usually need to convert or compress videos depending on the platform they're going to. I've been using this website: ***URL removed*** to convert M4V to MP4 and other formats when I need fast results without messing with too many settings.

    *** Moderator note: Posting links to commercial websites is not permitted in this forum. In addition, many so-called "free file converter" websites are being used for malicious purposes to deliver malware. ***
    Last edited by d_stranz; 11th April 2025 at 16:08. Reason: removed URL

Similar Threads

  1. Replies: 1
    Last Post: 29th August 2018, 11:25
  2. Record Speaker Output to a file
    By vinothrajendran in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2014, 09:30
  3. QMediaPlayer record radio stream to file?
    By gadlol in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2013, 16:33
  4. How to record and play an audio file in qml?
    By harish in forum Qt Quick
    Replies: 2
    Last Post: 17th February 2012, 14:42
  5. Replies: 3
    Last Post: 26th March 2010, 04:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.