@@ -144,9 +144,9 @@ EncodeGUI::EncodeGUI(QWidget *parent) : QMainWindow(parent)
144144 bsldr_264 ();
145145 profile_gb264 ();
146146 hdwr_265 ();
147- hdwr_265d ();
148147 SampleVid ();
149148 mode_265 ();
149+ hdwr_265d ();
150150 mode_vpx ();
151151 downmix_cb ();
152152 mode_theora ();
@@ -192,12 +192,13 @@ EncodeGUI::EncodeGUI(QWidget *parent) : QMainWindow(parent)
192192 GPUFinished ();
193193 CheckEncoders ();
194194 GetProcessor ();
195- LoadSysSetting ();
196195
197196 Updater ();
198197
199198 connect (ui.AutoDelSourceCB , SIGNAL (stateChanged (int )), this , SLOT (DelSource ()));
200199 connect (ui.SCThresholdNUD , SIGNAL (valueChanged (int )), this , SLOT (ScNUD ()));
200+
201+ LoadSysSetting ();
201202}
202203
203204void EncodeGUI::CheckEncoders () {
@@ -507,28 +508,33 @@ void EncodeGUI::RegexFinished() {
507508 }
508509 else {
509510 tool_interp ();
510- ui.InterpolationCB ->setChecked (true );
511- ui.InterpolationCB ->setChecked (false );
511+
512+ if (CHECKED (ui.ColorSpaceCB )) {
513+ if (VideoInfo::GetMatrix ().contains (" ?" ) || VideoInfo::GetMatrix ().contains (" unknown" )) {
514+ VideoInfo::SetMatrix (" bt709" );
515+ WriteLog (" Color matrix for the selected source is unknown, assuming BT709." , false , false , false );
516+ }
517+ if (VideoInfo::GetTransfer ().contains (" ?" ) || VideoInfo::GetTransfer ().contains (" unknown" )) {
518+ VideoInfo::SetTransfer (" bt709" );
519+ WriteLog (" Color transfer for the selected source is unknown, assuming BT709." , false , false , false );
520+ }
521+ if (VideoInfo::GetPrimaries ().contains (" ?" ) || VideoInfo::GetPrimaries ().contains (" unknown" )) {
522+ VideoInfo::SetPrimaries (" bt709" );
523+ WriteLog (" Color primaries for the selected source is unknown, assuming BT709." , false , false , false );
524+ }
525+ }
526+
527+ if (!ui.InterpolationCB ->isChecked ()) {
528+ ui.InterpolationCB ->setChecked (true );
529+ ui.InterpolationCB ->setChecked (false );
530+ }
512531
513532 if (AudioInfo::TotalStreams () != 0 ) {
514- SET_ENABLED (ui.AudioTrackDD );
533+ if (CHECKED (ui.GetVidInfoCB ))
534+ SET_ENABLED (ui.AudioTrackDD );
535+
515536 SET_ENABLED (ui.AudioCB );
516537 ui.AudioCB ->setChecked (true );
517-
518- if (CHECKED (ui.ColorSpaceCB )) {
519- if (VideoInfo::GetMatrix ().contains (" ?" ) || VideoInfo::GetMatrix ().contains (" unknown" )) {
520- VideoInfo::SetMatrix (" bt709" );
521- WriteLog (" Color matrix for the selected source is unknown, assuming BT709." , false , false , false );
522- }
523- if (VideoInfo::GetTransfer ().contains (" ?" ) || VideoInfo::GetTransfer ().contains (" unknown" )) {
524- VideoInfo::SetTransfer (" bt709" );
525- WriteLog (" Color transfer for the selected source is unknown, assuming BT709." , false , false , false );
526- }
527- if (VideoInfo::GetPrimaries ().contains (" ?" ) || VideoInfo::GetPrimaries ().contains (" unknown" )) {
528- VideoInfo::SetPrimaries (" bt709" );
529- WriteLog (" Color primaries for the selected source is unknown, assuming BT709." , false , false , false );
530- }
531- }
532538 }
533539 if (SubtitleInfo::TotalStreams () != 0 ) {
534540 SET_ENABLED (ui.SubtitlesDD );
@@ -591,9 +597,10 @@ void EncodeGUI::RegexFinished() {
591597 InterpFactor ();
592598 }
593599
600+ SetAudioInfo ();
601+
594602 if (CHECKED (ui.GetVidInfoCB )) {
595603 SetVideoInfo ();
596- SetAudioInfo ();
597604
598605 connect (ui.AudioTrackDD , SIGNAL (currentIndexChanged (int )), this , SLOT (audio_track ()));
599606 }
@@ -1181,6 +1188,10 @@ void EncodeGUI::OpenJobLogs() {
11811188 QDesktopServices::openUrl (QUrl (QString (" file:///" ) + QDir::toNativeSeparators (QDir::homePath () + QString (" \\ AppData\\ Local\\ EncodeGUI\\ job-%1" ).arg (job.at (selectedJob)))));
11821189}
11831190
1191+ void EncodeGUI::OpenOutput () {
1192+ QDesktopServices::openUrl (QUrl (QString (" file:///" ) + QDir::toNativeSeparators (QFileInfo (outputList.at (selectedJob)).absolutePath ())));
1193+ }
1194+
11841195void EncodeGUI::UpdateProgress () {
11851196 ui.progressBar ->setMaximum (100 );
11861197
0 commit comments