diff --git a/pylonrecorder.cpp b/pylonrecorder.cpp index b9715c0..5dfccf5 100644 --- a/pylonrecorder.cpp +++ b/pylonrecorder.cpp @@ -289,8 +289,8 @@ void PylonRecorder::fitToWindow() { void PylonRecorder::about() { QMessageBox::about(this, tr("About Pylon Recorder"), tr("

Pylon Recorder
Simple recorder for video grabbing from pylon USB3 monochrome camera." - "Usage: In order to grab image, a camera device needs to be opened, press the connect button to do so. Push the reord button to record conituously.

" - "

videos are stored in the same folder as the tool is. Videos are compressed to mp4." + "Usage: In order to grab image, a camera device needs to be opened, press the connect button to do so. Push the record button to record continuously.

" + "

videos are stored in the same folder as the tool is called from. Videos are compressed to mp4." " As the buffer preassure reaches 100% frames will be lost! You may want to increase the buffer size" " or reduce the framerate.

In order to run you need to install the pylon libraries" " and the mp4 video codec avalable for download at Basler website

" @@ -473,10 +473,10 @@ void PylonRecorder::disconnectCamera() { void PylonRecorder::startRecording() { std::string filename = createFilename(); - std::cerr << filename << std::endl; + //std::cerr << filename << std::endl; fileLabel->setText(QString::fromStdString(filename)); VideoSpecs specs; - specs.fps = 25; + specs.fps = framerateSpinner->value(); specs.filename = filename; ImageSettings settings = pylon->getImageSettings(); specs.width = static_cast(settings.width); @@ -512,6 +512,7 @@ void PylonRecorder::stopRecording() { writer->requestStop(); grabbing = false; stopRequest = true; + grab_stop_action->setEnabled(false); } } @@ -541,9 +542,9 @@ void PylonRecorder::displaySingleFrame() { QImage qimg(static_cast(img.data()), img.width(), img.height(), QImage::Format::Format_Grayscale8); setImage(qimg); - } else { + }/* else { std::cerr << "Error reading last image" << std::endl; - } + }*/ } QColor PylonRecorder::progressColor(int value) {