[Solved] How to merging media files with Qt?
Hi, I’m new to Qt and this forum, please treat me kindly.
I’m working with many media files that need to be merged together (ogg vorbis, for instance).Is there any Qt Class that help me doing so? Like using cat:
- cat file1.ogg file2.ogg > file3.ogg
The result is a file contain sound from the other 2.
Many thanks for those who give me answer!
Be very careful, joining two or more videos as raw files not always works, not all video/audio formats accept a new data stream after it ends, and this method will not work with different formats.
The best way of achieving this, is transcoding the files with, for instance, FFmpeg [ffmpeg.org], you can run FFmpeg through QProcess [qt-project.org].