Skip to content

Commit

Permalink
addSEI and addSPS moved to ini settings
Browse files Browse the repository at this point in the history
At the request of the community. See issues #661 and #666.
  • Loading branch information
jcdr428 committed Feb 17, 2023
1 parent d2d6b80 commit 7446712
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tsMuxerGUI/tsmuxerwindow.cpp
Expand Up @@ -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" ||
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 7446712

Please sign in to comment.