//调用neroAacEnc.exe STARTUPINFO si={0}; PROCESS_INFORMATION pi={0};//隐藏窗口 si.cb=sizeof(si); si.dwFlags= STARTF_USESHOWWINDOW| STARTF_USESTDHANDLES; si.wShowWindow=SW_HIDE; char *file_exe="neroAacEnc.exe"; if(access(file_exe,0)!=0) { printf("can‘t find AAC.exe\n"); } char cmd[65535]={0}; string PathName("E:\\Project\\ExtractAudio\\ExtractAudio\\"); AudioName=PathName + AudioName; AACName=PathName + AACName; sprintf(cmd,"%s -cbr %d -lc -if \"%s\" -of \"%s\"","neroAacEnc.exe",bitrate,AudioName.c_str(),AACName.c_str()); if(!CreateProcess(NULL,CA2W(cmd),NULL,NULL,FALSE,NULL,NULL,NULL,&si,&pi)) printf("transformer is wrong\n");
wav转aac
时间: 2024-10-31 21:21:14