// 转ts
char cmd[1024] = {'\0'};
sprintf(cmd, "ffmpeg -i %s -loglevel quiet -c copy -bsf:v h264_mp4toannexb -f mpegts %s", lastFlvFile.c_str(), lastTsFile.c_str());
system(cmd);// 合并ts
char cmd[1024] = {'\0'};
sprintf(cmd, "ffmpeg -i concat:\"%s|%s\" -loglevel quiet -c copy -absf aac_adtstoasc -movflags faststart %s",
lastTsFile.c_str(), moreLastTsFile.c_str(), resutMP4File.c_str());
system(cmd);