From 7446712cd16745e2ed75dbbcdcaa60843404f9ec Mon Sep 17 00:00:00 2001 From: jcdr428 <56721609+jcdr428@users.noreply.github.com> Date: Fri, 17 Feb 2023 17:34:02 +0100 Subject: [PATCH] addSEI and addSPS moved to ini settings At the request of the community. See issues #661 and #666. --- tsMuxerGUI/tsmuxerwindow.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tsMuxerGUI/tsmuxerwindow.cpp b/tsMuxerGUI/tsmuxerwindow.cpp index e954f58a..3239cb2f 100644 --- a/tsMuxerGUI/tsmuxerwindow.cpp +++ b/tsMuxerGUI/tsmuxerwindow.cpp @@ -540,12 +540,13 @@ void TsMuxerWindow::onTsMuxerCodecInfoReceived() } codecInfo->descr = "Can't detect codec"; codecInfo->displayName = procStdOutput[i].mid(QString("Stream type: ").length()); - + /* Add SEI and SPS only with AVC and MVC (currently disabled) if (codecInfo->displayName != "H.264" && codecInfo->displayName != "MVC") { codecInfo->addSEIMethod = 0; codecInfo->addSPS = false; } + */ if (codecInfo->displayName == "HEVC") ui->checkBoxV3->setChecked(true); else if (codecInfo->displayName == "H.264" || codecInfo->displayName == "MVC" || @@ -1012,9 +1013,9 @@ void TsMuxerWindow::trackLVItemSelectionChanged() ui->checkBoxLevel->setChecked(codecInfo->checkLevel); ui->comboBoxFPS->setEnabled(ui->checkFPS->isChecked()); ui->comboBoxLevel->setEnabled(ui->checkBoxLevel->isChecked()); - ui->comboBoxSEI->setCurrentIndex(codecInfo->addSEIMethod); + // ui->comboBoxSEI->setCurrentIndex(codecInfo->addSEIMethod); ui->checkBoxSecondaryVideo->setChecked(codecInfo->isSecondary); - ui->checkBoxSPS->setChecked(codecInfo->addSPS); + // ui->checkBoxSPS->setChecked(codecInfo->addSPS); ui->checkBoxRemovePulldown->setChecked(codecInfo->delPulldown == 1); ui->checkBoxRemovePulldown->setEnabled(codecInfo->delPulldown >= 0); @@ -2698,6 +2699,9 @@ void TsMuxerWindow::writeSettings() settings->setValue("language", ui->languageSelectComboBox->currentText()); settings->setValue("windowSize", size()); + settings->setValue("addSEIMethod", ui->comboBoxSEI->currentIndex()); + settings->setValue("addSPS", ui->checkBoxSPS->isChecked()); + settings->endGroup(); settings->beginGroup("subtitles"); @@ -2789,6 +2793,9 @@ bool TsMuxerWindow::readGeneralSettings(const QString &prefix) ui->radioButtonOutoutInInput->setChecked(settings->value("outputToInputFolder").toBool()); ui->radioButtonStoreOutput->setChecked(!ui->radioButtonOutoutInInput->isChecked()); + ui->comboBoxSEI->setCurrentIndex(settings->value("addSEIMethod").toInt()); + ui->checkBoxSPS->setChecked(settings->value("addSPS").toBool()); + settings->endGroup(); return true; }