connect(m_configCapture.kcfg_video4adevice, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
connect(m_configCapture.kcfg_video4vformat, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
connect(m_configCapture.kcfg_video4aformat, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
- connect(m_configCapture.kcfg_video4vencoding, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
- connect(m_configCapture.kcfg_video4aencoding, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
connect(m_configCapture.kcfg_video4size, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
connect(m_configCapture.kcfg_video4rate, SIGNAL(editingFinished()), this, SLOT(rebuildVideo4Commands()));
//HACK: check dvgrab version, because only dvgrab >= 3.3 supports
// --timestamp option without bug
- double dvgrabVersion = 0;
-
- QProcess *versionCheck = new QProcess;
- versionCheck->setProcessChannelMode(QProcess::MergedChannels);
- versionCheck->start("dvgrab", QStringList() << "--version");
- if (versionCheck->waitForFinished()) {
- QString version = QString(versionCheck->readAll()).simplified();
- if (version.contains(' ')) version = version.section(' ', -1);
- dvgrabVersion = version.toDouble();
- kDebug() << "// FOUND DVGRAB VERSION: " << dvgrabVersion;
- }
- if (versionCheck) delete versionCheck;
- if (dvgrabVersion < 3.3) {
- KdenliveSettings::setFirewiretimestamp(false);
- m_configCapture.kcfg_firewiretimestamp->setEnabled(false);
+ if (KdenliveSettings::dvgrab_path().isEmpty() || !QFile::exists(KdenliveSettings::dvgrab_path())) {
+ QString dvgrabpath = KStandardDirs::findExe("dvgrab");
+ KdenliveSettings::setDvgrab_path(dvgrabpath);
}
- QString rmdpath = KStandardDirs::findExe("recordmydesktop");
- if (rmdpath.isEmpty()) {
- KdenliveSettings::setRmd_path(QString());
- m_configCapture.rmd_info->setText(i18n("Recordmydesktop utility not found, please install it for screen grabs"));
- } else {
+
+ double dvgrabVersion = 0;
+ if (!KdenliveSettings::dvgrab_path().isEmpty()) {
+ QProcess *versionCheck = new QProcess;
+ versionCheck->setProcessChannelMode(QProcess::MergedChannels);
+ versionCheck->start("dvgrab", QStringList() << "--version");
+ if (versionCheck->waitForFinished()) {
+ QString version = QString(versionCheck->readAll()).simplified();
+ if (version.contains(' ')) version = version.section(' ', -1);
+ dvgrabVersion = version.toDouble();
+
+ kDebug() << "// FOUND DVGRAB VERSION: " << dvgrabVersion;
+ }
+ if (versionCheck) delete versionCheck;
+ if (dvgrabVersion < 3.3) {
+ KdenliveSettings::setFirewiretimestamp(false);
+ m_configCapture.kcfg_firewiretimestamp->setEnabled(false);
+ }
+ m_configCapture.dvgrab_info->setText(i18n("dvgrab version %1 at %2", dvgrabVersion, KdenliveSettings::dvgrab_path()));
+ } else m_configCapture.dvgrab_info->setText(i18n("<b>dvgrab utility not found, please install it for firewire capture</b>"));
+
+ if (KdenliveSettings::rmd_path().isEmpty() || !QFile::exists(KdenliveSettings::rmd_path())) {
+ QString rmdpath = KStandardDirs::findExe("recordmydesktop");
KdenliveSettings::setRmd_path(rmdpath);
- m_configCapture.rmd_info->setText(i18n("Recordmydesktop found at: %1", rmdpath));
}
+ if (KdenliveSettings::rmd_path().isEmpty()) m_configCapture.rmd_info->setText(i18n("<b>Recordmydesktop utility not found, please install it for screen grabs</b>"));
+ else m_configCapture.rmd_info->setText(i18n("Recordmydesktop found at: %1", KdenliveSettings::rmd_path()));
}
KdenliveSettingsDialog::~KdenliveSettingsDialog() {}
QString captureCommand;
if (!m_configCapture.kcfg_video4adevice->text().isEmpty()) captureCommand = "-f " + m_configCapture.kcfg_video4aformat->text() + " -i " + m_configCapture.kcfg_video4adevice->text();
- captureCommand += " -f " + m_configCapture.kcfg_video4vformat->text() + " -s " + m_configCapture.kcfg_video4size->text() + " -r " + QString::number(m_configCapture.kcfg_video4rate->value()) + " -i " + m_configCapture.kcfg_video4vdevice->text() + " -f " + m_configCapture.kcfg_video4vencoding->text();
+ captureCommand += " -f " + m_configCapture.kcfg_video4vformat->text() + " -s " + m_configCapture.kcfg_video4size->text() + " -r " + QString::number(m_configCapture.kcfg_video4rate->value()) + " -i " + m_configCapture.kcfg_video4vdevice->text();
m_configCapture.kcfg_video4capture->setText(captureCommand);
-
- QString playbackCommand;
- playbackCommand = "-f " + m_configCapture.kcfg_video4vencoding->text();
- m_configCapture.kcfg_video4playback->setText(playbackCommand);
}
KdenliveSettings::setRmd_alsadevicename(value);
}
+ value = m_configCapture.kcfg_rmd_audio_freq->itemText(m_configCapture.kcfg_rmd_audio_freq->currentIndex());
+ kDebug() << "// AUDIO FREQ VALUE: " << value << ", CURRENT: " << KdenliveSettings::rmd_freq() << ", IX: " << m_configCapture.kcfg_rmd_audio_freq->currentIndex();
+ if (value != KdenliveSettings::rmd_freq()) {
+ kDebug() << "// SETTING AUDIO FREQ TO: " << value;
+ KdenliveSettings::setRmd_freq(value);
+ }
+
value = m_configSdl.kcfg_audio_driver->itemData(m_configSdl.kcfg_audio_driver->currentIndex()).toString();
if (value != KdenliveSettings::audiodrivername()) {
KdenliveSettings::setAudiodrivername(value);