diff -r 000e4543f204 -r fd707afbc3a2 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Sun Jun 24 20:31:26 2012 +0400 +++ b/QTfrontend/hwform.cpp Sun Jun 24 20:57:02 2012 +0400 @@ -1429,8 +1429,10 @@ QString prefix = str; prefix.chop(7); // remove ".txtout" videosDir.rename(prefix + ".txtout", prefix + ".txtin"); // rename this file to not open it twice - HWRecorder* pRecorder = new HWRecorder(config); - pRecorder->EncodeVideo(record, prefix); + HWRecorder* pRecorder = new HWRecorder(config, prefix); + ui.pageVideos->addRecorder(pRecorder); + int numFrames = QFileInfo(videosDir.absoluteFilePath(prefix + ".txtin")).size()/16; + pRecorder->EncodeVideo(record, numFrames); } }