Now providing audio and video in separate elements within the encoders parts.

This commit is contained in:
Erik Zandvliet 2013-09-12 11:32:24 +02:00
parent f3bed1ab94
commit 59becbb18b

View file

@ -32,15 +32,15 @@ namespace Converter {
while ( !(feof(outFile) || ferror(outFile)) && (getline(&fileBuf, &fileBufLen, outFile) != -1)){ while ( !(feof(outFile) || ferror(outFile)) && (getline(&fileBuf, &fileBufLen, outFile) != -1)){
if (strstr(fileBuf, "aac") || strstr(fileBuf, "AAC")){ if (strstr(fileBuf, "aac") || strstr(fileBuf, "AAC")){
strtok(fileBuf, " \t"); strtok(fileBuf, " \t");
allCodecs["ffmpeg"][strtok(NULL, " \t")] = "aac"; allCodecs["ffmpeg"]["audio"][strtok(NULL, " \t")] = "aac";
} }
if (strstr(fileBuf, "h264") || strstr(fileBuf, "H264")){ if (strstr(fileBuf, "h264") || strstr(fileBuf, "H264")){
strtok(fileBuf, " \t"); strtok(fileBuf, " \t");
allCodecs["ffmpeg"][strtok(NULL, " \t")] = "h264"; allCodecs["ffmpeg"]["video"][strtok(NULL, " \t")] = "h264";
} }
if (strstr(fileBuf, "mp3") || strstr(fileBuf, "MP3")){ if (strstr(fileBuf, "mp3") || strstr(fileBuf, "MP3")){
strtok(fileBuf, " \t"); strtok(fileBuf, " \t");
allCodecs["ffmpeg"][strtok(NULL, " \t")] = "mp3"; allCodecs["ffmpeg"]["audio"][strtok(NULL, " \t")] = "mp3";
} }
} }
fclose( outFile ); fclose( outFile );