我在Qt GUI應用程序中使用ffmpeg命令(用於將mp3文件合併到一個文件中)。當我運行我的應用程序合併文件顯示在cmd窗口的結果。如何隱藏用戶無法看到的cmd窗口。在qt項目中不顯示cmd窗口
QString mergeMp3FilesStr = "ffmpeg -y -i \"concat:";
/*....some part of code*/
mergeMp3FilesStr+=" \" -c copy D:\\Mp3Files\\mergedMp3.mp3"
system((const char *)mergeMp3FilesStr.toStdString().c_str());
And so command is looking like this (I'm viewing result with QDebug):
ffmpeg -y -i "concat:D:\Mp3Files\a.mp3|D:\Mp3Files\a.mp3|D:\Mp3Files\a.mp3 " -c copy D:\Mp3Files\mergedMp3.mp3
你可以展示更多關於如何啓動ffmpeg命令的代碼? – 2013-05-09 02:02:02
感謝您的回覆。 我已經編輯了我的問題並添加了部分代碼。 – Heghine 2013-05-09 18:40:19