Commit 0e7f6e3f8b2a5d425ea105267374db229550edfe

Authored by Wesnydy Ribeiro
1 parent 23dddcac
Exists in master and in 1 other branch devel

(VLibras-Box) Serviço de Video Com legenda OK

main.cpp
... ... @@ -70,8 +70,6 @@ int main(int argc, char* argv[]) {
70 70 switch((int) atoi(argv[1])){
71 71  
72 72 case 1:
73   - //printf("[INFO] Serviço em manutenção!!!\n");
74   - //exit(0);
75 73 if(argc < 9){
76 74 serviceHelp(1);
77 75 hasInvalid();
... ... @@ -97,8 +95,8 @@ int main(int argc, char* argv[]) {
97 95 serviceREC(argv[1], argv[2], argv[3], argv[4], argv[5], argv[6], argv[7], argv[8]);
98 96 break;
99 97 case 3:
100   - //printf("[INFO] Serviço em manutenção!!!\n");
101   - //exit(0);
  98 + printf("[INFO] Serviço em manutenção!!!\n");
  99 + exit(0);
102 100 if(argc < 5){
103 101 serviceHelp(3);
104 102 hasInvalid();
... ...
servico/src/serviceWindowGeneration.cpp
... ... @@ -121,12 +121,8 @@ void ServiceWindowGeneration::notifyEndOfSynchronization() {
121 121  
122 122 void ServiceWindowGeneration::initialize() {
123 123  
124   - cout << "entrei" << endl;
125   -
126 124 setPathLibras();
127 125  
128   - cout << "passei" << endl;
129   -
130 126 if (this->sublanguage == 1) {
131 127 tradutor->addListener(this);
132 128 }
... ... @@ -270,15 +266,16 @@ void ServiceWindowGeneration::createThumbnail(){
270 266 .append(PATH_API).append(getUserId());
271 267 }else{
272 268 try{
  269 + cout << "entrei" << endl;
273 270 char* pPath = new char[256];
274 271 pPath = reader->getAttributeValue("STORAGE");
275   - command.append(pPath).append("/").append(getUserId());
  272 + command.append(pPath).append("/").append(getUserId()).append(".mp4");
276 273 }catch(RuntimeException &ex){
277 274 printf("%s\n", ex.getMessage().c_str());
278 275 }
279   -
280   - command.append(PATH_CONTENTS).append(user_id).append(".mp4")
281   - .append(" -vcodec png -vframes 1 -an -f rawvideo -y -vf scale=200:200 ");
  276 + command.append(" -vcodec png -vframes 1 -an -f rawvideo -y -vf scale=200:200 ")
  277 + .append(" -v quiet ")
  278 + .append(PATH_CONTENTS).append(getUserId());
282 279 }
283 280 command.append(".png");
284 281 system(command.c_str());
... ...