diff --git a/main.cpp b/main.cpp index e17f245..b46992d 100644 --- a/main.cpp +++ b/main.cpp @@ -70,8 +70,6 @@ int main(int argc, char* argv[]) { switch((int) atoi(argv[1])){ case 1: - //printf("[INFO] Serviço em manutenção!!!\n"); - //exit(0); if(argc < 9){ serviceHelp(1); hasInvalid(); @@ -97,8 +95,8 @@ int main(int argc, char* argv[]) { serviceREC(argv[1], argv[2], argv[3], argv[4], argv[5], argv[6], argv[7], argv[8]); break; case 3: - //printf("[INFO] Serviço em manutenção!!!\n"); - //exit(0); + printf("[INFO] Serviço em manutenção!!!\n"); + exit(0); if(argc < 5){ serviceHelp(3); hasInvalid(); diff --git a/servico/src/serviceWindowGeneration.cpp b/servico/src/serviceWindowGeneration.cpp index 2ef65ac..cff36ab 100644 --- a/servico/src/serviceWindowGeneration.cpp +++ b/servico/src/serviceWindowGeneration.cpp @@ -121,12 +121,8 @@ void ServiceWindowGeneration::notifyEndOfSynchronization() { void ServiceWindowGeneration::initialize() { - cout << "entrei" << endl; - setPathLibras(); - cout << "passei" << endl; - if (this->sublanguage == 1) { tradutor->addListener(this); } @@ -270,15 +266,16 @@ void ServiceWindowGeneration::createThumbnail(){ .append(PATH_API).append(getUserId()); }else{ try{ + cout << "entrei" << endl; char* pPath = new char[256]; pPath = reader->getAttributeValue("STORAGE"); - command.append(pPath).append("/").append(getUserId()); + command.append(pPath).append("/").append(getUserId()).append(".mp4"); }catch(RuntimeException &ex){ printf("%s\n", ex.getMessage().c_str()); } - - command.append(PATH_CONTENTS).append(user_id).append(".mp4") - .append(" -vcodec png -vframes 1 -an -f rawvideo -y -vf scale=200:200 "); + command.append(" -vcodec png -vframes 1 -an -f rawvideo -y -vf scale=200:200 ") + .append(" -v quiet ") + .append(PATH_CONTENTS).append(getUserId()); } command.append(".png"); system(command.c_str()); -- libgit2 0.21.2