equal
deleted
inserted
replaced
1427 foreach (const QString & str, files) |
1427 foreach (const QString & str, files) |
1428 { |
1428 { |
1429 QString prefix = str; |
1429 QString prefix = str; |
1430 prefix.chop(7); // remove ".txtout" |
1430 prefix.chop(7); // remove ".txtout" |
1431 videosDir.rename(prefix + ".txtout", prefix + ".txtin"); // rename this file to not open it twice |
1431 videosDir.rename(prefix + ".txtout", prefix + ".txtin"); // rename this file to not open it twice |
1432 HWRecorder* pRecorder = new HWRecorder(config); |
1432 HWRecorder* pRecorder = new HWRecorder(config, prefix); |
1433 pRecorder->EncodeVideo(record, prefix); |
1433 ui.pageVideos->addRecorder(pRecorder); |
|
1434 int numFrames = QFileInfo(videosDir.absoluteFilePath(prefix + ".txtin")).size()/16; |
|
1435 pRecorder->EncodeVideo(record, numFrames); |
1434 } |
1436 } |
1435 } |
1437 } |
1436 |
1438 |
1437 void HWForm::startTraining(const QString & scriptName) |
1439 void HWForm::startTraining(const QString & scriptName) |
1438 { |
1440 { |