From fc166ab3ff1a79a34812e246222e8390d8e16a5f Mon Sep 17 00:00:00 2001 From: Mads Bondo Dydensborg Date: Sun, 9 Nov 2008 13:51:08 +0000 Subject: [PATCH] Added debug outputs to recmonitor, in order to allow jmpoure to better debug http://www.kdenlive.org/mantis/view.php?id=315 svn path=/branches/KDE4/; revision=2640 --- src/recmonitor.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index 2f2171cd..a466b4b2 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -335,6 +335,7 @@ void RecMonitor::slotStartCapture(bool play) { captureProcess->setStandardOutputProcess(displayProcess); captureProcess->setWorkingDirectory(KdenliveSettings::capturefolder()); + kDebug() << "Capture: Running dvgrab " << m_captureArgs.join(" "); captureProcess->start("dvgrab", m_captureArgs); if (play) captureProcess->write(" ", 1); m_discAction->setEnabled(true); @@ -343,6 +344,7 @@ void RecMonitor::slotStartCapture(bool play) { m_captureArgs << KdenliveSettings::video4capture().simplified().split(' ') << "-"; m_displayArgs << KdenliveSettings::video4playback().simplified().split(' ') << "-x" << QString::number(ui.video_frame->width()) << "-y" << QString::number(ui.video_frame->height()) << "-"; captureProcess->setStandardOutputProcess(displayProcess); + kDebug() << "Capture: Running ffmpeg " << m_captureArgs.join(" "); captureProcess->start("ffmpeg", m_captureArgs); break; default: @@ -350,6 +352,7 @@ void RecMonitor::slotStartCapture(bool play) { } if (ui.device_selector->currentIndex() != SCREENGRAB) { + kDebug() << "Capture: Running ffplay " << m_captureArgs.join(" "); displayProcess->start("ffplay", m_displayArgs); ui.video_frame->setText(i18n("Initialising...")); } else { @@ -415,12 +418,14 @@ void RecMonitor::slotRecord() { m_captureArgs << "--format" << "hdv" << "-i" << "capture" << "-"; m_displayArgs << "-f" << "mpegts" << "-x" << QString::number(ui.video_frame->width()) << "-y" << QString::number(ui.video_frame->height()) << "-"; captureProcess->setStandardOutputProcess(displayProcess); + kDebug() << "Capture: Running dvgrab " << m_captureArgs.join(" "); captureProcess->start("dvgrab", m_captureArgs); break; case VIDEO4LINUX: m_captureArgs << KdenliveSettings::video4capture().simplified().split(' ') << "-y" << m_captureFile.path() << "-f" << KdenliveSettings::video4vencoding() << "-"; m_displayArgs << KdenliveSettings::video4playback().simplified().split(' ') << "-x" << QString::number(ui.video_frame->width()) << "-y" << QString::number(ui.video_frame->height()) << "-"; captureProcess->setStandardOutputProcess(displayProcess); + kDebug() << "Capture: Running ffmpeg " << m_captureArgs.join(" "); captureProcess->start("ffmpeg", m_captureArgs); break; case SCREENGRAB: @@ -438,8 +443,10 @@ void RecMonitor::slotRecord() { if (KdenliveSettings::screengrabenableaudio() && !KdenliveSettings::useosscapture()) { QStringList alsaArgs = KdenliveSettings::screengrabalsacapture().simplified().split(' '); alsaProcess->setStandardOutputProcess(captureProcess); + kDebug() << "Capture: Running arecord " << alsaArgs.join(" "); alsaProcess->start("arecord", alsaArgs); } + kDebug() << "Capture: Running ffmpeg " << m_captureArgs.join(" "); captureProcess->start("ffmpeg", m_captureArgs); } else { ui.video_frame->setText(i18n("Select region...")); @@ -454,6 +461,7 @@ void RecMonitor::slotRecord() { //ui.video_frame->setScaledContents(false); if (ui.device_selector->currentIndex() != SCREENGRAB) { m_isCapturing = true; + kDebug() << "Capture: Running ffplay " << m_displayArgs.join(" "); displayProcess->start("ffplay", m_displayArgs); ui.video_frame->setText(i18n("Initialising...")); } @@ -487,8 +495,10 @@ void RecMonitor::slotStartGrab(const QRect &rect) { if (KdenliveSettings::screengrabenableaudio() && !KdenliveSettings::useosscapture()) { QStringList alsaArgs = KdenliveSettings::screengrabalsacapture().simplified().split(' '); alsaProcess->setStandardOutputProcess(captureProcess); + kDebug() << "Capture: Running arecord " << alsaArgs.join(" "); alsaProcess->start("arecord", alsaArgs); } + kDebug() << "Capture: Running ffmpeg " << m_captureArgs.join(" "); captureProcess->start("ffmpeg", m_captureArgs); } -- 2.39.2