Commit 0e7f6e3f8b2a5d425ea105267374db229550edfe
1 parent
23dddcac
Exists in
master
and in
1 other branch
(VLibras-Box) Serviço de Video Com legenda OK
Showing
2 changed files
with
7 additions
and
12 deletions
Show diff stats
main.cpp
@@ -70,8 +70,6 @@ int main(int argc, char* argv[]) { | @@ -70,8 +70,6 @@ int main(int argc, char* argv[]) { | ||
70 | switch((int) atoi(argv[1])){ | 70 | switch((int) atoi(argv[1])){ |
71 | 71 | ||
72 | case 1: | 72 | case 1: |
73 | - //printf("[INFO] Serviço em manutenção!!!\n"); | ||
74 | - //exit(0); | ||
75 | if(argc < 9){ | 73 | if(argc < 9){ |
76 | serviceHelp(1); | 74 | serviceHelp(1); |
77 | hasInvalid(); | 75 | hasInvalid(); |
@@ -97,8 +95,8 @@ int main(int argc, char* argv[]) { | @@ -97,8 +95,8 @@ int main(int argc, char* argv[]) { | ||
97 | serviceREC(argv[1], argv[2], argv[3], argv[4], argv[5], argv[6], argv[7], argv[8]); | 95 | serviceREC(argv[1], argv[2], argv[3], argv[4], argv[5], argv[6], argv[7], argv[8]); |
98 | break; | 96 | break; |
99 | case 3: | 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 | if(argc < 5){ | 100 | if(argc < 5){ |
103 | serviceHelp(3); | 101 | serviceHelp(3); |
104 | hasInvalid(); | 102 | hasInvalid(); |
servico/src/serviceWindowGeneration.cpp
@@ -121,12 +121,8 @@ void ServiceWindowGeneration::notifyEndOfSynchronization() { | @@ -121,12 +121,8 @@ void ServiceWindowGeneration::notifyEndOfSynchronization() { | ||
121 | 121 | ||
122 | void ServiceWindowGeneration::initialize() { | 122 | void ServiceWindowGeneration::initialize() { |
123 | 123 | ||
124 | - cout << "entrei" << endl; | ||
125 | - | ||
126 | setPathLibras(); | 124 | setPathLibras(); |
127 | 125 | ||
128 | - cout << "passei" << endl; | ||
129 | - | ||
130 | if (this->sublanguage == 1) { | 126 | if (this->sublanguage == 1) { |
131 | tradutor->addListener(this); | 127 | tradutor->addListener(this); |
132 | } | 128 | } |
@@ -270,15 +266,16 @@ void ServiceWindowGeneration::createThumbnail(){ | @@ -270,15 +266,16 @@ void ServiceWindowGeneration::createThumbnail(){ | ||
270 | .append(PATH_API).append(getUserId()); | 266 | .append(PATH_API).append(getUserId()); |
271 | }else{ | 267 | }else{ |
272 | try{ | 268 | try{ |
269 | + cout << "entrei" << endl; | ||
273 | char* pPath = new char[256]; | 270 | char* pPath = new char[256]; |
274 | pPath = reader->getAttributeValue("STORAGE"); | 271 | pPath = reader->getAttributeValue("STORAGE"); |
275 | - command.append(pPath).append("/").append(getUserId()); | 272 | + command.append(pPath).append("/").append(getUserId()).append(".mp4"); |
276 | }catch(RuntimeException &ex){ | 273 | }catch(RuntimeException &ex){ |
277 | printf("%s\n", ex.getMessage().c_str()); | 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 | command.append(".png"); | 280 | command.append(".png"); |
284 | system(command.c_str()); | 281 | system(command.c_str()); |