@@ -144,9 +144,9 @@ EncodeGUI::EncodeGUI(QWidget *parent) : QMainWindow(parent)
144
144
bsldr_264 ();
145
145
profile_gb264 ();
146
146
hdwr_265 ();
147
- hdwr_265d ();
148
147
SampleVid ();
149
148
mode_265 ();
149
+ hdwr_265d ();
150
150
mode_vpx ();
151
151
downmix_cb ();
152
152
mode_theora ();
@@ -192,12 +192,13 @@ EncodeGUI::EncodeGUI(QWidget *parent) : QMainWindow(parent)
192
192
GPUFinished ();
193
193
CheckEncoders ();
194
194
GetProcessor ();
195
- LoadSysSetting ();
196
195
197
196
Updater ();
198
197
199
198
connect (ui.AutoDelSourceCB , SIGNAL (stateChanged (int )), this , SLOT (DelSource ()));
200
199
connect (ui.SCThresholdNUD , SIGNAL (valueChanged (int )), this , SLOT (ScNUD ()));
200
+
201
+ LoadSysSetting ();
201
202
}
202
203
203
204
void EncodeGUI::CheckEncoders () {
@@ -507,28 +508,33 @@ void EncodeGUI::RegexFinished() {
507
508
}
508
509
else {
509
510
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
+ }
512
531
513
532
if (AudioInfo::TotalStreams () != 0 ) {
514
- SET_ENABLED (ui.AudioTrackDD );
533
+ if (CHECKED (ui.GetVidInfoCB ))
534
+ SET_ENABLED (ui.AudioTrackDD );
535
+
515
536
SET_ENABLED (ui.AudioCB );
516
537
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
- }
532
538
}
533
539
if (SubtitleInfo::TotalStreams () != 0 ) {
534
540
SET_ENABLED (ui.SubtitlesDD );
@@ -591,9 +597,10 @@ void EncodeGUI::RegexFinished() {
591
597
InterpFactor ();
592
598
}
593
599
600
+ SetAudioInfo ();
601
+
594
602
if (CHECKED (ui.GetVidInfoCB )) {
595
603
SetVideoInfo ();
596
- SetAudioInfo ();
597
604
598
605
connect (ui.AudioTrackDD , SIGNAL (currentIndexChanged (int )), this , SLOT (audio_track ()));
599
606
}
@@ -1181,6 +1188,10 @@ void EncodeGUI::OpenJobLogs() {
1181
1188
QDesktopServices::openUrl (QUrl (QString (" file:///" ) + QDir::toNativeSeparators (QDir::homePath () + QString (" \\ AppData\\ Local\\ EncodeGUI\\ job-%1" ).arg (job.at (selectedJob)))));
1182
1189
}
1183
1190
1191
+ void EncodeGUI::OpenOutput () {
1192
+ QDesktopServices::openUrl (QUrl (QString (" file:///" ) + QDir::toNativeSeparators (QFileInfo (outputList.at (selectedJob)).absolutePath ())));
1193
+ }
1194
+
1184
1195
void EncodeGUI::UpdateProgress () {
1185
1196
ui.progressBar ->setMaximum (100 );
1186
1197
0 commit comments