ffmpeg - do not show cmd window in qt project -
i'm using ffmpeg command in qt gui application (for merging mp3 files 1 file). , when i'm running application results of merging files showing in cmd window. how can hide cmd window users can not see it.
qstring mergemp3filesstr = "ffmpeg -y -i \"concat:"; /*....some part of code*/ mergemp3filesstr+=" \" -c copy d:\\mp3files\\mergedmp3.mp3" system((const char *)mergemp3filesstr.tostdstring().c_str()); , command looking (i'm viewing result qdebug): ffmpeg -y -i "concat:d:\mp3files\a.mp3|d:\mp3files\a.mp3|d:\mp3files\a.mp3 " -c copy d:\mp3files\mergedmp3.mp3
qprocess recommended way external programs, can have better , finer control, , more portable. may check this question, , this more information.
Comments
Post a Comment