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?
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.
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.
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. ***