9 #ifndef UI_ENCODEDOCK_H
10 #define UI_ENCODEDOCK_H
12 #include <QtCore/QVariant>
13 #include <QtGui/QIcon>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QCheckBox>
16 #include <QtWidgets/QComboBox>
17 #include <QtWidgets/QDockWidget>
18 #include <QtWidgets/QDoubleSpinBox>
19 #include <QtWidgets/QGridLayout>
20 #include <QtWidgets/QHBoxLayout>
21 #include <QtWidgets/QHeaderView>
22 #include <QtWidgets/QLabel>
23 #include <QtWidgets/QPlainTextEdit>
24 #include <QtWidgets/QPushButton>
25 #include <QtWidgets/QScrollArea>
26 #include <QtWidgets/QSpacerItem>
27 #include <QtWidgets/QSpinBox>
28 #include <QtWidgets/QTabWidget>
29 #include <QtWidgets/QVBoxLayout>
30 #include <QtWidgets/QWidget>
31 #include "widgets/exportpresetstreeview.h"
32 #include "widgets/lineeditclear.h"
39 QWidget *dockWidgetContents;
40 QHBoxLayout *horizontalLayout_21;
41 QVBoxLayout *verticalLayout_2;
43 LineEditClear *presetsSearch;
44 ExportPresetsTreeView *presetsTree;
45 QHBoxLayout *horizontalLayout;
46 QPushButton *addPresetButton;
47 QPushButton *removePresetButton;
48 QSpacerItem *horizontalSpacer_2;
49 QVBoxLayout *verticalLayout;
50 QScrollArea *scrollArea;
51 QWidget *scrollAreaWidgetContents;
52 QVBoxLayout *verticalLayout_3;
54 QGridLayout *gridLayout_5;
56 QHBoxLayout *horizontalLayout_14;
57 QComboBox *formatCombo;
58 QSpacerItem *horizontalSpacer_13;
60 QHBoxLayout *horizontalLayout_19;
62 QSpacerItem *horizontalSpacer_23;
63 QHBoxLayout *horizontalLayout_20;
64 QCheckBox *hwencodeCheckBox;
65 QPushButton *hwencodeButton;
66 QSpacerItem *horizontalSpacer_25;
67 QTabWidget *tabWidget;
69 QGridLayout *gridLayout_6;
71 QGridLayout *gridLayout_2;
77 QHBoxLayout *horizontalLayout_9;
78 QComboBox *scanModeCombo;
79 QSpacerItem *horizontalSpacer_9;
80 QHBoxLayout *horizontalLayout_3;
81 QComboBox *deinterlacerCombo;
82 QSpacerItem *horizontalSpacer_21;
83 QSpacerItem *verticalSpacer_4;
84 QHBoxLayout *horizontalLayout_16;
85 QDoubleSpinBox *fpsSpinner;
86 QComboBox *fpsComboBox;
87 QSpacerItem *horizontalSpacer_16;
88 QHBoxLayout *horizontalLayout_7;
89 QSpinBox *widthSpinner;
91 QSpinBox *heightSpinner;
92 QComboBox *resolutionComboBox;
93 QSpacerItem *horizontalSpacer_7;
94 QHBoxLayout *horizontalLayout_10;
95 QComboBox *fieldOrderCombo;
96 QSpacerItem *horizontalSpacer_10;
97 QHBoxLayout *horizontalLayout_18;
98 QComboBox *interpolationCombo;
99 QSpacerItem *horizontalSpacer_22;
101 QHBoxLayout *horizontalLayout_8;
102 QSpinBox *aspectNumSpinner;
104 QSpinBox *aspectDenSpinner;
105 QSpacerItem *horizontalSpacer_8;
107 QCheckBox *previewScaleCheckBox;
108 QCheckBox *parallelCheckbox;
110 QGridLayout *gridLayout_3;
112 QHBoxLayout *horizontalLayout_11;
113 QComboBox *videoCodecCombo;
114 QSpacerItem *horizontalSpacer_11;
116 QHBoxLayout *horizontalLayout_12;
117 QSpinBox *gopSpinner;
119 QSpacerItem *horizontalSpacer_24;
120 QCheckBox *strictGopCheckBox;
121 QSpacerItem *horizontalSpacer_12;
122 QHBoxLayout *videoBitrateLayout;
123 QComboBox *videoBitrateCombo;
124 QLabel *videoBitrateSuffixLabel;
125 QSpacerItem *videoBitrateSpacer;
126 QCheckBox *disableVideoCheckbox;
127 QCheckBox *dualPassCheckbox;
129 QHBoxLayout *horizontalLayout_13;
130 QSpinBox *bFramesSpinner;
131 QSpacerItem *horizontalSpacer_14;
132 QSpacerItem *verticalSpacer;
134 QHBoxLayout *horizontalLayout_15;
135 QSpinBox *videoCodecThreadsSpinner;
137 QSpacerItem *horizontalSpacer_15;
139 QHBoxLayout *horizontalLayout_17;
140 QComboBox *videoRateControlCombo;
141 QSpacerItem *horizontalSpacer_17;
142 QLabel *videoBufferSizeLabel;
143 QHBoxLayout *videoBufferSizeLayout;
144 QDoubleSpinBox *videoBufferSizeSpinner;
145 QLabel *videoBufferSizeSuffixLabel;
146 QSpacerItem *horizontalSpacer_18;
147 QLabel *videoQualityLabel;
148 QHBoxLayout *videoQualityLayout;
149 QSpinBox *videoQualitySpinner;
150 QLabel *videoQualitySuffixLabel;
151 QSpacerItem *horizontalSpacer_19;
152 QLabel *videoBitrateLabel;
154 QGridLayout *gridLayout;
155 QLabel *channelsLabel;
156 QHBoxLayout *ChannelsHorizontalLayout;
157 QComboBox *audioChannelsCombo;
158 QSpacerItem *channelsHorizontalSpacer;
159 QHBoxLayout *horizontalLayout_4;
160 QComboBox *sampleRateCombo;
162 QSpacerItem *horizontalSpacer_6;
165 QHBoxLayout *horizontalLayout_6;
166 QComboBox *audioCodecCombo;
167 QSpacerItem *horizontalSpacer_3;
168 QLabel *audioBitrateLabel;
169 QHBoxLayout *audioBitrateLayout;
170 QComboBox *audioBitrateCombo;
171 QLabel *audioBitrateSuffixLabel;
172 QSpacerItem *horizontalSpacer_4;
173 QCheckBox *disableAudioCheckbox;
174 QSpacerItem *verticalSpacer_3;
176 QHBoxLayout *horizontalLayout_5;
177 QComboBox *audioRateControlCombo;
178 QSpacerItem *horizontalSpacer_5;
179 QLabel *audioQualityLabel;
180 QHBoxLayout *audioQualityLayout;
181 QSpinBox *audioQualitySpinner;
182 QLabel *audioQualitySuffixLabel;
183 QSpacerItem *horizontalSpacer_20;
185 QGridLayout *gridLayout_4;
186 QPlainTextEdit *advancedTextEdit;
187 QLabel *otherTipLabel;
188 QSpacerItem *verticalSpacer_2;
189 QHBoxLayout *horizontalLayout_2;
190 QPushButton *encodeButton;
191 QPushButton *resetButton;
192 QPushButton *advancedButton;
193 QCheckBox *advancedCheckBox;
194 QPushButton *streamButton;
195 QSpacerItem *horizontalSpacer;
196 QHBoxLayout *stopCaptureLayout;
197 QPushButton *stopCaptureButton;
198 QSpacerItem *stopCaptureSpacer;
200 void setupUi(QDockWidget *EncodeDock)
202 if (EncodeDock->objectName().isEmpty())
203 EncodeDock->setObjectName(QString::fromUtf8(
"EncodeDock"));
204 EncodeDock->resize(778, 644);
206 QString iconThemeName = QString::fromUtf8(
"media-record");
207 if (QIcon::hasThemeIcon(iconThemeName)) {
208 icon = QIcon::fromTheme(iconThemeName);
210 icon.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/media-record.png"), QSize(), QIcon::Normal, QIcon::Off);
212 EncodeDock->setWindowIcon(icon);
213 dockWidgetContents =
new QWidget();
214 dockWidgetContents->setObjectName(QString::fromUtf8(
"dockWidgetContents"));
215 horizontalLayout_21 =
new QHBoxLayout(dockWidgetContents);
216 horizontalLayout_21->setSpacing(0);
217 horizontalLayout_21->setObjectName(QString::fromUtf8(
"horizontalLayout_21"));
218 horizontalLayout_21->setContentsMargins(0, 0, 0, 0);
219 verticalLayout_2 =
new QVBoxLayout();
220 verticalLayout_2->setSpacing(0);
221 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
222 label_6 =
new QLabel(dockWidgetContents);
223 label_6->setObjectName(QString::fromUtf8(
"label_6"));
224 label_6->setTextFormat(Qt::RichText);
225 label_6->setAlignment(Qt::AlignCenter);
227 verticalLayout_2->addWidget(label_6);
229 presetsSearch =
new LineEditClear(dockWidgetContents);
230 presetsSearch->setObjectName(QString::fromUtf8(
"presetsSearch"));
232 verticalLayout_2->addWidget(presetsSearch);
234 presetsTree =
new ExportPresetsTreeView(dockWidgetContents);
235 presetsTree->setObjectName(QString::fromUtf8(
"presetsTree"));
236 presetsTree->setEditTriggers(QAbstractItemView::NoEditTriggers);
237 presetsTree->setProperty(
"showDropIndicator", QVariant(
false));
238 presetsTree->setAlternatingRowColors(
true);
239 presetsTree->header()->setVisible(
false);
240 presetsTree->header()->setDefaultSectionSize(57);
242 verticalLayout_2->addWidget(presetsTree);
244 horizontalLayout =
new QHBoxLayout();
245 horizontalLayout->setSpacing(6);
246 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
247 addPresetButton =
new QPushButton(dockWidgetContents);
248 addPresetButton->setObjectName(QString::fromUtf8(
"addPresetButton"));
250 iconThemeName = QString::fromUtf8(
"list-add");
251 if (QIcon::hasThemeIcon(iconThemeName)) {
252 icon1 = QIcon::fromTheme(iconThemeName);
254 icon1.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/list-add.png"), QSize(), QIcon::Normal, QIcon::Off);
256 addPresetButton->setIcon(icon1);
258 horizontalLayout->addWidget(addPresetButton);
260 removePresetButton =
new QPushButton(dockWidgetContents);
261 removePresetButton->setObjectName(QString::fromUtf8(
"removePresetButton"));
262 removePresetButton->setEnabled(
false);
264 iconThemeName = QString::fromUtf8(
"list-remove");
265 if (QIcon::hasThemeIcon(iconThemeName)) {
266 icon2 = QIcon::fromTheme(iconThemeName);
268 icon2.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/list-remove.png"), QSize(), QIcon::Normal, QIcon::Off);
270 removePresetButton->setIcon(icon2);
272 horizontalLayout->addWidget(removePresetButton);
274 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
276 horizontalLayout->addItem(horizontalSpacer_2);
279 verticalLayout_2->addLayout(horizontalLayout);
282 horizontalLayout_21->addLayout(verticalLayout_2);
284 verticalLayout =
new QVBoxLayout();
285 verticalLayout->setSpacing(0);
286 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
287 scrollArea =
new QScrollArea(dockWidgetContents);
288 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
289 scrollArea->setFrameShape(QFrame::NoFrame);
290 scrollArea->setWidgetResizable(
true);
291 scrollAreaWidgetContents =
new QWidget();
292 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
293 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 429, 646));
294 verticalLayout_3 =
new QVBoxLayout(scrollAreaWidgetContents);
295 verticalLayout_3->setSpacing(3);
296 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
297 verticalLayout_3->setContentsMargins(6, 6, 6, 0);
298 helpLabel =
new QLabel(scrollAreaWidgetContents);
299 helpLabel->setObjectName(QString::fromUtf8(
"helpLabel"));
300 helpLabel->setTextFormat(Qt::RichText);
301 helpLabel->setWordWrap(
true);
303 verticalLayout_3->addWidget(helpLabel);
305 gridLayout_5 =
new QGridLayout();
306 gridLayout_5->setObjectName(QString::fromUtf8(
"gridLayout_5"));
307 gridLayout_5->setVerticalSpacing(3);
308 label_5 =
new QLabel(scrollAreaWidgetContents);
309 label_5->setObjectName(QString::fromUtf8(
"label_5"));
310 label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
312 gridLayout_5->addWidget(label_5, 2, 0, 1, 1);
314 horizontalLayout_14 =
new QHBoxLayout();
315 horizontalLayout_14->setObjectName(QString::fromUtf8(
"horizontalLayout_14"));
316 formatCombo =
new QComboBox(scrollAreaWidgetContents);
317 formatCombo->setObjectName(QString::fromUtf8(
"formatCombo"));
319 horizontalLayout_14->addWidget(formatCombo);
321 horizontalSpacer_13 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
323 horizontalLayout_14->addItem(horizontalSpacer_13);
326 gridLayout_5->addLayout(horizontalLayout_14, 5, 1, 1, 1);
328 formatLabel =
new QLabel(scrollAreaWidgetContents);
329 formatLabel->setObjectName(QString::fromUtf8(
"formatLabel"));
330 formatLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
332 gridLayout_5->addWidget(formatLabel, 5, 0, 1, 1);
334 horizontalLayout_19 =
new QHBoxLayout();
335 horizontalLayout_19->setObjectName(QString::fromUtf8(
"horizontalLayout_19"));
336 fromCombo =
new QComboBox(scrollAreaWidgetContents);
337 fromCombo->setObjectName(QString::fromUtf8(
"fromCombo"));
338 fromCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents);
340 horizontalLayout_19->addWidget(fromCombo);
342 horizontalSpacer_23 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
344 horizontalLayout_19->addItem(horizontalSpacer_23);
347 gridLayout_5->addLayout(horizontalLayout_19, 2, 1, 1, 1);
349 horizontalLayout_20 =
new QHBoxLayout();
350 horizontalLayout_20->setObjectName(QString::fromUtf8(
"horizontalLayout_20"));
351 hwencodeCheckBox =
new QCheckBox(scrollAreaWidgetContents);
352 hwencodeCheckBox->setObjectName(QString::fromUtf8(
"hwencodeCheckBox"));
354 horizontalLayout_20->addWidget(hwencodeCheckBox);
356 hwencodeButton =
new QPushButton(scrollAreaWidgetContents);
357 hwencodeButton->setObjectName(QString::fromUtf8(
"hwencodeButton"));
359 horizontalLayout_20->addWidget(hwencodeButton);
361 horizontalSpacer_25 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
363 horizontalLayout_20->addItem(horizontalSpacer_25);
366 gridLayout_5->addLayout(horizontalLayout_20, 4, 1, 1, 1);
369 verticalLayout_3->addLayout(gridLayout_5);
371 tabWidget =
new QTabWidget(scrollAreaWidgetContents);
372 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
373 tabWidget->setUsesScrollButtons(
false);
374 tabWidget->setDocumentMode(
false);
375 modeTab =
new QWidget();
376 modeTab->setObjectName(QString::fromUtf8(
"modeTab"));
377 gridLayout_6 =
new QGridLayout(modeTab);
378 gridLayout_6->setObjectName(QString::fromUtf8(
"gridLayout_6"));
379 gridLayout_6->setContentsMargins(0, 0, 0, 0);
380 widget =
new QWidget(modeTab);
381 widget->setObjectName(QString::fromUtf8(
"widget"));
382 gridLayout_2 =
new QGridLayout(widget);
383 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
384 gridLayout_2->setVerticalSpacing(3);
385 label_14 =
new QLabel(widget);
386 label_14->setObjectName(QString::fromUtf8(
"label_14"));
387 label_14->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
389 gridLayout_2->addWidget(label_14, 4, 0, 1, 1);
391 label_2 =
new QLabel(widget);
392 label_2->setObjectName(QString::fromUtf8(
"label_2"));
393 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
395 gridLayout_2->addWidget(label_2, 6, 0, 1, 1);
397 label_22 =
new QLabel(widget);
398 label_22->setObjectName(QString::fromUtf8(
"label_22"));
399 label_22->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
401 gridLayout_2->addWidget(label_22, 0, 0, 1, 1);
403 label_15 =
new QLabel(widget);
404 label_15->setObjectName(QString::fromUtf8(
"label_15"));
405 label_15->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
407 gridLayout_2->addWidget(label_15, 5, 0, 1, 1);
409 label_13 =
new QLabel(widget);
410 label_13->setObjectName(QString::fromUtf8(
"label_13"));
411 label_13->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
413 gridLayout_2->addWidget(label_13, 1, 0, 1, 1);
415 horizontalLayout_9 =
new QHBoxLayout();
416 horizontalLayout_9->setSpacing(2);
417 horizontalLayout_9->setObjectName(QString::fromUtf8(
"horizontalLayout_9"));
418 scanModeCombo =
new QComboBox(widget);
419 scanModeCombo->addItem(QString());
420 scanModeCombo->addItem(QString());
421 scanModeCombo->setObjectName(QString::fromUtf8(
"scanModeCombo"));
423 horizontalLayout_9->addWidget(scanModeCombo);
425 horizontalSpacer_9 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
427 horizontalLayout_9->addItem(horizontalSpacer_9);
430 gridLayout_2->addLayout(horizontalLayout_9, 4, 1, 1, 2);
432 horizontalLayout_3 =
new QHBoxLayout();
433 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
434 deinterlacerCombo =
new QComboBox(widget);
435 deinterlacerCombo->addItem(QString());
436 deinterlacerCombo->addItem(QString());
437 deinterlacerCombo->addItem(QString());
438 deinterlacerCombo->addItem(QString());
439 deinterlacerCombo->setObjectName(QString::fromUtf8(
"deinterlacerCombo"));
441 horizontalLayout_3->addWidget(deinterlacerCombo);
443 horizontalSpacer_21 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
445 horizontalLayout_3->addItem(horizontalSpacer_21);
448 gridLayout_2->addLayout(horizontalLayout_3, 6, 1, 1, 2);
450 verticalSpacer_4 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
452 gridLayout_2->addItem(verticalSpacer_4, 12, 1, 1, 1);
454 horizontalLayout_16 =
new QHBoxLayout();
455 horizontalLayout_16->setObjectName(QString::fromUtf8(
"horizontalLayout_16"));
456 fpsSpinner =
new QDoubleSpinBox(widget);
457 fpsSpinner->setObjectName(QString::fromUtf8(
"fpsSpinner"));
458 fpsSpinner->setDecimals(6);
459 fpsSpinner->setMinimum(1.000000000000000);
460 fpsSpinner->setMaximum(1000.000000000000000);
461 fpsSpinner->setValue(25.000000000000000);
463 horizontalLayout_16->addWidget(fpsSpinner);
465 fpsComboBox =
new QComboBox(widget);
466 fpsComboBox->addItem(QString::fromUtf8(
""));
467 fpsComboBox->addItem(QString::fromUtf8(
"23.976024"));
468 fpsComboBox->addItem(QString::fromUtf8(
"24"));
469 fpsComboBox->addItem(QString::fromUtf8(
"25"));
470 fpsComboBox->addItem(QString::fromUtf8(
"29.970030"));
471 fpsComboBox->addItem(QString::fromUtf8(
"30"));
472 fpsComboBox->addItem(QString::fromUtf8(
"48"));
473 fpsComboBox->addItem(QString::fromUtf8(
"50"));
474 fpsComboBox->addItem(QString::fromUtf8(
"59.940060"));
475 fpsComboBox->addItem(QString::fromUtf8(
"60"));
476 fpsComboBox->setObjectName(QString::fromUtf8(
"fpsComboBox"));
477 fpsComboBox->setMaximumSize(QSize(20, 16777215));
479 horizontalLayout_16->addWidget(fpsComboBox);
481 horizontalSpacer_16 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
483 horizontalLayout_16->addItem(horizontalSpacer_16);
486 gridLayout_2->addLayout(horizontalLayout_16, 3, 1, 1, 2);
488 horizontalLayout_7 =
new QHBoxLayout();
489 horizontalLayout_7->setSpacing(2);
490 horizontalLayout_7->setObjectName(QString::fromUtf8(
"horizontalLayout_7"));
491 widthSpinner =
new QSpinBox(widget);
492 widthSpinner->setObjectName(QString::fromUtf8(
"widthSpinner"));
493 widthSpinner->setMinimum(16);
494 widthSpinner->setMaximum(8192);
495 widthSpinner->setSingleStep(2);
496 widthSpinner->setValue(1280);
498 horizontalLayout_7->addWidget(widthSpinner);
500 label_11 =
new QLabel(widget);
501 label_11->setObjectName(QString::fromUtf8(
"label_11"));
503 horizontalLayout_7->addWidget(label_11);
505 heightSpinner =
new QSpinBox(widget);
506 heightSpinner->setObjectName(QString::fromUtf8(
"heightSpinner"));
507 heightSpinner->setMinimum(1);
508 heightSpinner->setMaximum(8192);
509 heightSpinner->setSingleStep(2);
510 heightSpinner->setValue(720);
512 horizontalLayout_7->addWidget(heightSpinner);
514 resolutionComboBox =
new QComboBox(widget);
515 resolutionComboBox->addItem(QString::fromUtf8(
"1280 x 720 (HD)"));
516 resolutionComboBox->addItem(QString::fromUtf8(
"1920 x 1080 (FHD)"));
517 resolutionComboBox->addItem(QString::fromUtf8(
"2048 x 1080 (DCI 2K)"));
518 resolutionComboBox->addItem(QString::fromUtf8(
"2560 x 1440 (QHD 2K)"));
519 resolutionComboBox->addItem(QString::fromUtf8(
"2704 x 1520 (2.7K)"));
520 resolutionComboBox->addItem(QString::fromUtf8(
"3840 x 2160 (UHD 4K)"));
521 resolutionComboBox->addItem(QString::fromUtf8(
"4096 x 2160 (DCI 4K)"));
522 resolutionComboBox->addItem(QString::fromUtf8(
"5120 x 2880 (5K)"));
523 resolutionComboBox->setObjectName(QString::fromUtf8(
"resolutionComboBox"));
524 resolutionComboBox->setMaximumSize(QSize(20, 16777215));
526 horizontalLayout_7->addWidget(resolutionComboBox);
528 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
530 horizontalLayout_7->addItem(horizontalSpacer_7);
533 gridLayout_2->addLayout(horizontalLayout_7, 0, 1, 1, 2);
535 horizontalLayout_10 =
new QHBoxLayout();
536 horizontalLayout_10->setObjectName(QString::fromUtf8(
"horizontalLayout_10"));
537 fieldOrderCombo =
new QComboBox(widget);
538 fieldOrderCombo->addItem(QString());
539 fieldOrderCombo->addItem(QString());
540 fieldOrderCombo->setObjectName(QString::fromUtf8(
"fieldOrderCombo"));
541 fieldOrderCombo->setEnabled(
false);
543 horizontalLayout_10->addWidget(fieldOrderCombo);
545 horizontalSpacer_10 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
547 horizontalLayout_10->addItem(horizontalSpacer_10);
550 gridLayout_2->addLayout(horizontalLayout_10, 5, 1, 1, 2);
552 horizontalLayout_18 =
new QHBoxLayout();
553 horizontalLayout_18->setObjectName(QString::fromUtf8(
"horizontalLayout_18"));
554 interpolationCombo =
new QComboBox(widget);
555 interpolationCombo->addItem(QString());
556 interpolationCombo->addItem(QString());
557 interpolationCombo->addItem(QString());
558 interpolationCombo->addItem(QString::fromUtf8(
"Lanczos (best)"));
559 interpolationCombo->setObjectName(QString::fromUtf8(
"interpolationCombo"));
561 horizontalLayout_18->addWidget(interpolationCombo);
563 horizontalSpacer_22 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
565 horizontalLayout_18->addItem(horizontalSpacer_22);
568 gridLayout_2->addLayout(horizontalLayout_18, 7, 1, 1, 2);
570 label_10 =
new QLabel(widget);
571 label_10->setObjectName(QString::fromUtf8(
"label_10"));
572 label_10->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
574 gridLayout_2->addWidget(label_10, 3, 0, 1, 1);
576 horizontalLayout_8 =
new QHBoxLayout();
577 horizontalLayout_8->setSpacing(2);
578 horizontalLayout_8->setObjectName(QString::fromUtf8(
"horizontalLayout_8"));
579 aspectNumSpinner =
new QSpinBox(widget);
580 aspectNumSpinner->setObjectName(QString::fromUtf8(
"aspectNumSpinner"));
581 aspectNumSpinner->setMinimum(1);
582 aspectNumSpinner->setMaximum(8192);
583 aspectNumSpinner->setValue(16);
585 horizontalLayout_8->addWidget(aspectNumSpinner);
587 label_16 =
new QLabel(widget);
588 label_16->setObjectName(QString::fromUtf8(
"label_16"));
590 horizontalLayout_8->addWidget(label_16);
592 aspectDenSpinner =
new QSpinBox(widget);
593 aspectDenSpinner->setObjectName(QString::fromUtf8(
"aspectDenSpinner"));
594 aspectDenSpinner->setMinimum(1);
595 aspectDenSpinner->setMaximum(8192);
596 aspectDenSpinner->setValue(9);
598 horizontalLayout_8->addWidget(aspectDenSpinner);
600 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
602 horizontalLayout_8->addItem(horizontalSpacer_8);
605 gridLayout_2->addLayout(horizontalLayout_8, 1, 1, 1, 2);
607 label_4 =
new QLabel(widget);
608 label_4->setObjectName(QString::fromUtf8(
"label_4"));
609 label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
611 gridLayout_2->addWidget(label_4, 7, 0, 1, 1);
613 previewScaleCheckBox =
new QCheckBox(widget);
614 previewScaleCheckBox->setObjectName(QString::fromUtf8(
"previewScaleCheckBox"));
616 gridLayout_2->addWidget(previewScaleCheckBox, 10, 1, 1, 2);
618 parallelCheckbox =
new QCheckBox(widget);
619 parallelCheckbox->setObjectName(QString::fromUtf8(
"parallelCheckbox"));
620 parallelCheckbox->setChecked(
true);
622 gridLayout_2->addWidget(parallelCheckbox, 11, 1, 1, 2);
625 gridLayout_6->addWidget(widget, 1, 0, 1, 1);
627 tabWidget->addTab(modeTab, QString());
628 videoTab =
new QWidget();
629 videoTab->setObjectName(QString::fromUtf8(
"videoTab"));
630 gridLayout_3 =
new QGridLayout(videoTab);
631 gridLayout_3->setObjectName(QString::fromUtf8(
"gridLayout_3"));
632 gridLayout_3->setVerticalSpacing(3);
633 label_17 =
new QLabel(videoTab);
634 label_17->setObjectName(QString::fromUtf8(
"label_17"));
635 label_17->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
637 gridLayout_3->addWidget(label_17, 3, 0, 1, 1);
639 horizontalLayout_11 =
new QHBoxLayout();
640 horizontalLayout_11->setObjectName(QString::fromUtf8(
"horizontalLayout_11"));
641 videoCodecCombo =
new QComboBox(videoTab);
642 videoCodecCombo->setObjectName(QString::fromUtf8(
"videoCodecCombo"));
644 horizontalLayout_11->addWidget(videoCodecCombo);
646 horizontalSpacer_11 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
648 horizontalLayout_11->addItem(horizontalSpacer_11);
651 gridLayout_3->addLayout(horizontalLayout_11, 3, 1, 1, 1);
653 label_18 =
new QLabel(videoTab);
654 label_18->setObjectName(QString::fromUtf8(
"label_18"));
655 label_18->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
657 gridLayout_3->addWidget(label_18, 9, 0, 1, 1);
659 horizontalLayout_12 =
new QHBoxLayout();
660 horizontalLayout_12->setObjectName(QString::fromUtf8(
"horizontalLayout_12"));
661 gopSpinner =
new QSpinBox(videoTab);
662 gopSpinner->setObjectName(QString::fromUtf8(
"gopSpinner"));
663 gopSpinner->setMaximum(999);
664 gopSpinner->setValue(100);
666 horizontalLayout_12->addWidget(gopSpinner);
668 label_19 =
new QLabel(videoTab);
669 label_19->setObjectName(QString::fromUtf8(
"label_19"));
671 horizontalLayout_12->addWidget(label_19);
673 horizontalSpacer_24 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
675 horizontalLayout_12->addItem(horizontalSpacer_24);
677 strictGopCheckBox =
new QCheckBox(videoTab);
678 strictGopCheckBox->setObjectName(QString::fromUtf8(
"strictGopCheckBox"));
680 horizontalLayout_12->addWidget(strictGopCheckBox);
682 horizontalSpacer_12 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
684 horizontalLayout_12->addItem(horizontalSpacer_12);
687 gridLayout_3->addLayout(horizontalLayout_12, 9, 1, 1, 1);
689 videoBitrateLayout =
new QHBoxLayout();
690 videoBitrateLayout->setObjectName(QString::fromUtf8(
"videoBitrateLayout"));
691 videoBitrateCombo =
new QComboBox(videoTab);
692 videoBitrateCombo->addItem(QString::fromUtf8(
"64k"));
693 videoBitrateCombo->addItem(QString::fromUtf8(
"128k"));
694 videoBitrateCombo->addItem(QString::fromUtf8(
"256k"));
695 videoBitrateCombo->addItem(QString::fromUtf8(
"512k"));
696 videoBitrateCombo->addItem(QString::fromUtf8(
"768k"));
697 videoBitrateCombo->addItem(QString::fromUtf8(
"1M"));
698 videoBitrateCombo->addItem(QString::fromUtf8(
"1200k"));
699 videoBitrateCombo->addItem(QString::fromUtf8(
"1500k"));
700 videoBitrateCombo->addItem(QString::fromUtf8(
"2M"));
701 videoBitrateCombo->addItem(QString::fromUtf8(
"2500k"));
702 videoBitrateCombo->addItem(QString::fromUtf8(
"3M"));
703 videoBitrateCombo->addItem(QString::fromUtf8(
"4M"));
704 videoBitrateCombo->addItem(QString::fromUtf8(
"5M"));
705 videoBitrateCombo->addItem(QString::fromUtf8(
"6M"));
706 videoBitrateCombo->addItem(QString::fromUtf8(
"8M"));
707 videoBitrateCombo->addItem(QString::fromUtf8(
"10M"));
708 videoBitrateCombo->addItem(QString::fromUtf8(
"12M"));
709 videoBitrateCombo->addItem(QString::fromUtf8(
"14M"));
710 videoBitrateCombo->addItem(QString::fromUtf8(
"16M"));
711 videoBitrateCombo->addItem(QString::fromUtf8(
"18M"));
712 videoBitrateCombo->addItem(QString::fromUtf8(
"20M"));
713 videoBitrateCombo->addItem(QString::fromUtf8(
"25M"));
714 videoBitrateCombo->addItem(QString::fromUtf8(
"30M"));
715 videoBitrateCombo->addItem(QString::fromUtf8(
"40M"));
716 videoBitrateCombo->addItem(QString::fromUtf8(
"50M"));
717 videoBitrateCombo->addItem(QString::fromUtf8(
"60M"));
718 videoBitrateCombo->addItem(QString::fromUtf8(
"70M"));
719 videoBitrateCombo->addItem(QString::fromUtf8(
"80M"));
720 videoBitrateCombo->setObjectName(QString::fromUtf8(
"videoBitrateCombo"));
721 videoBitrateCombo->setEditable(
true);
723 videoBitrateLayout->addWidget(videoBitrateCombo);
725 videoBitrateSuffixLabel =
new QLabel(videoTab);
726 videoBitrateSuffixLabel->setObjectName(QString::fromUtf8(
"videoBitrateSuffixLabel"));
728 videoBitrateLayout->addWidget(videoBitrateSuffixLabel);
730 videoBitrateSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
732 videoBitrateLayout->addItem(videoBitrateSpacer);
735 gridLayout_3->addLayout(videoBitrateLayout, 6, 1, 1, 1);
737 disableVideoCheckbox =
new QCheckBox(videoTab);
738 disableVideoCheckbox->setObjectName(QString::fromUtf8(
"disableVideoCheckbox"));
740 gridLayout_3->addWidget(disableVideoCheckbox, 13, 1, 1, 1);
742 dualPassCheckbox =
new QCheckBox(videoTab);
743 dualPassCheckbox->setObjectName(QString::fromUtf8(
"dualPassCheckbox"));
745 gridLayout_3->addWidget(dualPassCheckbox, 12, 1, 1, 1);
747 label_20 =
new QLabel(videoTab);
748 label_20->setObjectName(QString::fromUtf8(
"label_20"));
749 label_20->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
751 gridLayout_3->addWidget(label_20, 10, 0, 1, 1);
753 horizontalLayout_13 =
new QHBoxLayout();
754 horizontalLayout_13->setObjectName(QString::fromUtf8(
"horizontalLayout_13"));
755 bFramesSpinner =
new QSpinBox(videoTab);
756 bFramesSpinner->setObjectName(QString::fromUtf8(
"bFramesSpinner"));
757 bFramesSpinner->setMaximum(8);
759 horizontalLayout_13->addWidget(bFramesSpinner);
761 horizontalSpacer_14 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
763 horizontalLayout_13->addItem(horizontalSpacer_14);
766 gridLayout_3->addLayout(horizontalLayout_13, 10, 1, 1, 1);
768 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
770 gridLayout_3->addItem(verticalSpacer, 14, 1, 1, 1);
772 label_12 =
new QLabel(videoTab);
773 label_12->setObjectName(QString::fromUtf8(
"label_12"));
774 label_12->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
776 gridLayout_3->addWidget(label_12, 11, 0, 1, 1);
778 horizontalLayout_15 =
new QHBoxLayout();
779 horizontalLayout_15->setObjectName(QString::fromUtf8(
"horizontalLayout_15"));
780 videoCodecThreadsSpinner =
new QSpinBox(videoTab);
781 videoCodecThreadsSpinner->setObjectName(QString::fromUtf8(
"videoCodecThreadsSpinner"));
783 horizontalLayout_15->addWidget(videoCodecThreadsSpinner);
785 label_21 =
new QLabel(videoTab);
786 label_21->setObjectName(QString::fromUtf8(
"label_21"));
788 horizontalLayout_15->addWidget(label_21);
790 horizontalSpacer_15 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
792 horizontalLayout_15->addItem(horizontalSpacer_15);
795 gridLayout_3->addLayout(horizontalLayout_15, 11, 1, 1, 1);
797 label_23 =
new QLabel(videoTab);
798 label_23->setObjectName(QString::fromUtf8(
"label_23"));
799 label_23->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
801 gridLayout_3->addWidget(label_23, 5, 0, 1, 1);
803 horizontalLayout_17 =
new QHBoxLayout();
804 horizontalLayout_17->setObjectName(QString::fromUtf8(
"horizontalLayout_17"));
805 videoRateControlCombo =
new QComboBox(videoTab);
806 videoRateControlCombo->addItem(QString());
807 videoRateControlCombo->addItem(QString());
808 videoRateControlCombo->addItem(QString());
809 videoRateControlCombo->addItem(QString());
810 videoRateControlCombo->setObjectName(QString::fromUtf8(
"videoRateControlCombo"));
812 horizontalLayout_17->addWidget(videoRateControlCombo);
814 horizontalSpacer_17 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
816 horizontalLayout_17->addItem(horizontalSpacer_17);
819 gridLayout_3->addLayout(horizontalLayout_17, 5, 1, 1, 1);
821 videoBufferSizeLabel =
new QLabel(videoTab);
822 videoBufferSizeLabel->setObjectName(QString::fromUtf8(
"videoBufferSizeLabel"));
823 videoBufferSizeLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
825 gridLayout_3->addWidget(videoBufferSizeLabel, 7, 0, 1, 1);
827 videoBufferSizeLayout =
new QHBoxLayout();
828 videoBufferSizeLayout->setObjectName(QString::fromUtf8(
"videoBufferSizeLayout"));
829 videoBufferSizeSpinner =
new QDoubleSpinBox(videoTab);
830 videoBufferSizeSpinner->setObjectName(QString::fromUtf8(
"videoBufferSizeSpinner"));
831 videoBufferSizeSpinner->setMaximum(9999.000000000000000);
832 videoBufferSizeSpinner->setValue(224.000000000000000);
834 videoBufferSizeLayout->addWidget(videoBufferSizeSpinner);
836 videoBufferSizeSuffixLabel =
new QLabel(videoTab);
837 videoBufferSizeSuffixLabel->setObjectName(QString::fromUtf8(
"videoBufferSizeSuffixLabel"));
839 videoBufferSizeLayout->addWidget(videoBufferSizeSuffixLabel);
841 horizontalSpacer_18 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
843 videoBufferSizeLayout->addItem(horizontalSpacer_18);
846 gridLayout_3->addLayout(videoBufferSizeLayout, 7, 1, 1, 1);
848 videoQualityLabel =
new QLabel(videoTab);
849 videoQualityLabel->setObjectName(QString::fromUtf8(
"videoQualityLabel"));
850 videoQualityLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
852 gridLayout_3->addWidget(videoQualityLabel, 8, 0, 1, 1);
854 videoQualityLayout =
new QHBoxLayout();
855 videoQualityLayout->setObjectName(QString::fromUtf8(
"videoQualityLayout"));
856 videoQualitySpinner =
new QSpinBox(videoTab);
857 videoQualitySpinner->setObjectName(QString::fromUtf8(
"videoQualitySpinner"));
858 videoQualitySpinner->setMinimum(0);
859 videoQualitySpinner->setMaximum(100);
860 videoQualitySpinner->setValue(50);
862 videoQualityLayout->addWidget(videoQualitySpinner);
864 videoQualitySuffixLabel =
new QLabel(videoTab);
865 videoQualitySuffixLabel->setObjectName(QString::fromUtf8(
"videoQualitySuffixLabel"));
867 videoQualityLayout->addWidget(videoQualitySuffixLabel);
869 horizontalSpacer_19 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
871 videoQualityLayout->addItem(horizontalSpacer_19);
874 gridLayout_3->addLayout(videoQualityLayout, 8, 1, 1, 1);
876 videoBitrateLabel =
new QLabel(videoTab);
877 videoBitrateLabel->setObjectName(QString::fromUtf8(
"videoBitrateLabel"));
878 videoBitrateLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
880 gridLayout_3->addWidget(videoBitrateLabel, 6, 0, 1, 1);
882 tabWidget->addTab(videoTab, QString());
883 audioTab =
new QWidget();
884 audioTab->setObjectName(QString::fromUtf8(
"audioTab"));
885 gridLayout =
new QGridLayout(audioTab);
886 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
887 gridLayout->setVerticalSpacing(3);
888 channelsLabel =
new QLabel(audioTab);
889 channelsLabel->setObjectName(QString::fromUtf8(
"channelsLabel"));
890 channelsLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
892 gridLayout->addWidget(channelsLabel, 1, 0, 1, 1);
894 ChannelsHorizontalLayout =
new QHBoxLayout();
895 ChannelsHorizontalLayout->setObjectName(QString::fromUtf8(
"ChannelsHorizontalLayout"));
896 audioChannelsCombo =
new QComboBox(audioTab);
897 audioChannelsCombo->addItem(QString());
898 audioChannelsCombo->addItem(QString());
899 audioChannelsCombo->addItem(QString());
900 audioChannelsCombo->setObjectName(QString::fromUtf8(
"audioChannelsCombo"));
902 ChannelsHorizontalLayout->addWidget(audioChannelsCombo);
904 channelsHorizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
906 ChannelsHorizontalLayout->addItem(channelsHorizontalSpacer);
909 gridLayout->addLayout(ChannelsHorizontalLayout, 1, 1, 1, 1);
911 horizontalLayout_4 =
new QHBoxLayout();
912 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
913 sampleRateCombo =
new QComboBox(audioTab);
914 sampleRateCombo->addItem(QString::fromUtf8(
"8000"));
915 sampleRateCombo->addItem(QString::fromUtf8(
"12000"));
916 sampleRateCombo->addItem(QString::fromUtf8(
"16000"));
917 sampleRateCombo->addItem(QString::fromUtf8(
"22050"));
918 sampleRateCombo->addItem(QString::fromUtf8(
"32000"));
919 sampleRateCombo->addItem(QString::fromUtf8(
"44100"));
920 sampleRateCombo->addItem(QString::fromUtf8(
"48000"));
921 sampleRateCombo->addItem(QString::fromUtf8(
"96000"));
922 sampleRateCombo->setObjectName(QString::fromUtf8(
"sampleRateCombo"));
923 sampleRateCombo->setEditable(
true);
925 horizontalLayout_4->addWidget(sampleRateCombo);
927 label_9 =
new QLabel(audioTab);
928 label_9->setObjectName(QString::fromUtf8(
"label_9"));
930 horizontalLayout_4->addWidget(label_9);
932 horizontalSpacer_6 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
934 horizontalLayout_4->addItem(horizontalSpacer_6);
937 gridLayout->addLayout(horizontalLayout_4, 2, 1, 1, 1);
939 label_8 =
new QLabel(audioTab);
940 label_8->setObjectName(QString::fromUtf8(
"label_8"));
941 label_8->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
943 gridLayout->addWidget(label_8, 2, 0, 1, 1);
945 label_3 =
new QLabel(audioTab);
946 label_3->setObjectName(QString::fromUtf8(
"label_3"));
947 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
949 gridLayout->addWidget(label_3, 3, 0, 1, 1);
951 horizontalLayout_6 =
new QHBoxLayout();
952 horizontalLayout_6->setObjectName(QString::fromUtf8(
"horizontalLayout_6"));
953 audioCodecCombo =
new QComboBox(audioTab);
954 audioCodecCombo->setObjectName(QString::fromUtf8(
"audioCodecCombo"));
956 horizontalLayout_6->addWidget(audioCodecCombo);
958 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
960 horizontalLayout_6->addItem(horizontalSpacer_3);
963 gridLayout->addLayout(horizontalLayout_6, 3, 1, 1, 1);
965 audioBitrateLabel =
new QLabel(audioTab);
966 audioBitrateLabel->setObjectName(QString::fromUtf8(
"audioBitrateLabel"));
967 audioBitrateLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
969 gridLayout->addWidget(audioBitrateLabel, 6, 0, 1, 1);
971 audioBitrateLayout =
new QHBoxLayout();
972 audioBitrateLayout->setObjectName(QString::fromUtf8(
"audioBitrateLayout"));
973 audioBitrateCombo =
new QComboBox(audioTab);
974 audioBitrateCombo->addItem(QString::fromUtf8(
"16k"));
975 audioBitrateCombo->addItem(QString::fromUtf8(
"32k"));
976 audioBitrateCombo->addItem(QString::fromUtf8(
"48k"));
977 audioBitrateCombo->addItem(QString::fromUtf8(
"64k"));
978 audioBitrateCombo->addItem(QString::fromUtf8(
"96k"));
979 audioBitrateCombo->addItem(QString::fromUtf8(
"128k"));
980 audioBitrateCombo->addItem(QString::fromUtf8(
"192k"));
981 audioBitrateCombo->addItem(QString::fromUtf8(
"220k"));
982 audioBitrateCombo->addItem(QString::fromUtf8(
"256k"));
983 audioBitrateCombo->addItem(QString::fromUtf8(
"384k"));
984 audioBitrateCombo->addItem(QString::fromUtf8(
"448k"));
985 audioBitrateCombo->addItem(QString::fromUtf8(
"512k"));
986 audioBitrateCombo->addItem(QString::fromUtf8(
"640k"));
987 audioBitrateCombo->addItem(QString::fromUtf8(
"1M"));
988 audioBitrateCombo->setObjectName(QString::fromUtf8(
"audioBitrateCombo"));
989 audioBitrateCombo->setEditable(
true);
991 audioBitrateLayout->addWidget(audioBitrateCombo);
993 audioBitrateSuffixLabel =
new QLabel(audioTab);
994 audioBitrateSuffixLabel->setObjectName(QString::fromUtf8(
"audioBitrateSuffixLabel"));
996 audioBitrateLayout->addWidget(audioBitrateSuffixLabel);
998 horizontalSpacer_4 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
1000 audioBitrateLayout->addItem(horizontalSpacer_4);
1003 gridLayout->addLayout(audioBitrateLayout, 6, 1, 1, 1);
1005 disableAudioCheckbox =
new QCheckBox(audioTab);
1006 disableAudioCheckbox->setObjectName(QString::fromUtf8(
"disableAudioCheckbox"));
1008 gridLayout->addWidget(disableAudioCheckbox, 8, 1, 1, 1);
1010 verticalSpacer_3 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
1012 gridLayout->addItem(verticalSpacer_3, 9, 0, 1, 1);
1014 label_7 =
new QLabel(audioTab);
1015 label_7->setObjectName(QString::fromUtf8(
"label_7"));
1016 label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
1018 gridLayout->addWidget(label_7, 4, 0, 1, 1);
1020 horizontalLayout_5 =
new QHBoxLayout();
1021 horizontalLayout_5->setObjectName(QString::fromUtf8(
"horizontalLayout_5"));
1022 audioRateControlCombo =
new QComboBox(audioTab);
1023 audioRateControlCombo->addItem(QString());
1024 audioRateControlCombo->addItem(QString());
1025 audioRateControlCombo->addItem(QString());
1026 audioRateControlCombo->setObjectName(QString::fromUtf8(
"audioRateControlCombo"));
1028 horizontalLayout_5->addWidget(audioRateControlCombo);
1030 horizontalSpacer_5 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
1032 horizontalLayout_5->addItem(horizontalSpacer_5);
1035 gridLayout->addLayout(horizontalLayout_5, 4, 1, 1, 1);
1037 audioQualityLabel =
new QLabel(audioTab);
1038 audioQualityLabel->setObjectName(QString::fromUtf8(
"audioQualityLabel"));
1039 audioQualityLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
1041 gridLayout->addWidget(audioQualityLabel, 7, 0, 1, 1);
1043 audioQualityLayout =
new QHBoxLayout();
1044 audioQualityLayout->setObjectName(QString::fromUtf8(
"audioQualityLayout"));
1045 audioQualitySpinner =
new QSpinBox(audioTab);
1046 audioQualitySpinner->setObjectName(QString::fromUtf8(
"audioQualitySpinner"));
1047 audioQualitySpinner->setMinimum(0);
1048 audioQualitySpinner->setMaximum(100);
1049 audioQualitySpinner->setValue(50);
1051 audioQualityLayout->addWidget(audioQualitySpinner);
1053 audioQualitySuffixLabel =
new QLabel(audioTab);
1054 audioQualitySuffixLabel->setObjectName(QString::fromUtf8(
"audioQualitySuffixLabel"));
1056 audioQualityLayout->addWidget(audioQualitySuffixLabel);
1058 horizontalSpacer_20 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
1060 audioQualityLayout->addItem(horizontalSpacer_20);
1063 gridLayout->addLayout(audioQualityLayout, 7, 1, 1, 1);
1065 tabWidget->addTab(audioTab, QString());
1066 otherTab =
new QWidget();
1067 otherTab->setObjectName(QString::fromUtf8(
"otherTab"));
1068 gridLayout_4 =
new QGridLayout(otherTab);
1069 gridLayout_4->setObjectName(QString::fromUtf8(
"gridLayout_4"));
1070 advancedTextEdit =
new QPlainTextEdit(otherTab);
1071 advancedTextEdit->setObjectName(QString::fromUtf8(
"advancedTextEdit"));
1073 gridLayout_4->addWidget(advancedTextEdit, 1, 0, 1, 1);
1075 otherTipLabel =
new QLabel(otherTab);
1076 otherTipLabel->setObjectName(QString::fromUtf8(
"otherTipLabel"));
1077 otherTipLabel->setWordWrap(
true);
1079 gridLayout_4->addWidget(otherTipLabel, 0, 0, 1, 1);
1081 tabWidget->addTab(otherTab, QString());
1083 verticalLayout_3->addWidget(tabWidget);
1085 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
1087 verticalLayout_3->addItem(verticalSpacer_2);
1089 scrollArea->setWidget(scrollAreaWidgetContents);
1091 verticalLayout->addWidget(scrollArea);
1093 horizontalLayout_2 =
new QHBoxLayout();
1094 horizontalLayout_2->setSpacing(6);
1095 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
1096 encodeButton =
new QPushButton(dockWidgetContents);
1097 encodeButton->setObjectName(QString::fromUtf8(
"encodeButton"));
1099 horizontalLayout_2->addWidget(encodeButton);
1101 resetButton =
new QPushButton(dockWidgetContents);
1102 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
1104 horizontalLayout_2->addWidget(resetButton);
1106 advancedButton =
new QPushButton(dockWidgetContents);
1107 advancedButton->setObjectName(QString::fromUtf8(
"advancedButton"));
1108 advancedButton->setCheckable(
true);
1110 horizontalLayout_2->addWidget(advancedButton);
1112 advancedCheckBox =
new QCheckBox(dockWidgetContents);
1113 advancedCheckBox->setObjectName(QString::fromUtf8(
"advancedCheckBox"));
1115 horizontalLayout_2->addWidget(advancedCheckBox);
1117 streamButton =
new QPushButton(dockWidgetContents);
1118 streamButton->setObjectName(QString::fromUtf8(
"streamButton"));
1120 horizontalLayout_2->addWidget(streamButton);
1122 horizontalSpacer =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
1124 horizontalLayout_2->addItem(horizontalSpacer);
1127 verticalLayout->addLayout(horizontalLayout_2);
1129 stopCaptureLayout =
new QHBoxLayout();
1130 stopCaptureLayout->setSpacing(6);
1131 stopCaptureLayout->setObjectName(QString::fromUtf8(
"stopCaptureLayout"));
1132 stopCaptureButton =
new QPushButton(dockWidgetContents);
1133 stopCaptureButton->setObjectName(QString::fromUtf8(
"stopCaptureButton"));
1135 stopCaptureLayout->addWidget(stopCaptureButton);
1137 stopCaptureSpacer =
new QSpacerItem(40, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
1139 stopCaptureLayout->addItem(stopCaptureSpacer);
1142 verticalLayout->addLayout(stopCaptureLayout);
1145 horizontalLayout_21->addLayout(verticalLayout);
1147 horizontalLayout_21->setStretch(0, 3);
1148 horizontalLayout_21->setStretch(1, 4);
1149 EncodeDock->setWidget(dockWidgetContents);
1150 QWidget::setTabOrder(fromCombo, hwencodeCheckBox);
1151 QWidget::setTabOrder(hwencodeCheckBox, hwencodeButton);
1152 QWidget::setTabOrder(hwencodeButton, formatCombo);
1153 QWidget::setTabOrder(formatCombo, tabWidget);
1154 QWidget::setTabOrder(tabWidget, widthSpinner);
1155 QWidget::setTabOrder(widthSpinner, heightSpinner);
1156 QWidget::setTabOrder(heightSpinner, resolutionComboBox);
1157 QWidget::setTabOrder(resolutionComboBox, aspectNumSpinner);
1158 QWidget::setTabOrder(aspectNumSpinner, aspectDenSpinner);
1159 QWidget::setTabOrder(aspectDenSpinner, fpsSpinner);
1160 QWidget::setTabOrder(fpsSpinner, fpsComboBox);
1161 QWidget::setTabOrder(fpsComboBox, scanModeCombo);
1162 QWidget::setTabOrder(scanModeCombo, fieldOrderCombo);
1163 QWidget::setTabOrder(fieldOrderCombo, deinterlacerCombo);
1164 QWidget::setTabOrder(deinterlacerCombo, interpolationCombo);
1165 QWidget::setTabOrder(interpolationCombo, previewScaleCheckBox);
1166 QWidget::setTabOrder(previewScaleCheckBox, parallelCheckbox);
1167 QWidget::setTabOrder(parallelCheckbox, encodeButton);
1168 QWidget::setTabOrder(encodeButton, resetButton);
1169 QWidget::setTabOrder(resetButton, advancedButton);
1170 QWidget::setTabOrder(advancedButton, advancedCheckBox);
1171 QWidget::setTabOrder(advancedCheckBox, streamButton);
1172 QWidget::setTabOrder(streamButton, stopCaptureButton);
1173 QWidget::setTabOrder(stopCaptureButton, presetsSearch);
1174 QWidget::setTabOrder(presetsSearch, presetsTree);
1175 QWidget::setTabOrder(presetsTree, addPresetButton);
1176 QWidget::setTabOrder(addPresetButton, removePresetButton);
1177 QWidget::setTabOrder(removePresetButton, scrollArea);
1178 QWidget::setTabOrder(scrollArea, videoCodecCombo);
1179 QWidget::setTabOrder(videoCodecCombo, videoRateControlCombo);
1180 QWidget::setTabOrder(videoRateControlCombo, videoBitrateCombo);
1181 QWidget::setTabOrder(videoBitrateCombo, videoBufferSizeSpinner);
1182 QWidget::setTabOrder(videoBufferSizeSpinner, videoQualitySpinner);
1183 QWidget::setTabOrder(videoQualitySpinner, gopSpinner);
1184 QWidget::setTabOrder(gopSpinner, strictGopCheckBox);
1185 QWidget::setTabOrder(strictGopCheckBox, bFramesSpinner);
1186 QWidget::setTabOrder(bFramesSpinner, videoCodecThreadsSpinner);
1187 QWidget::setTabOrder(videoCodecThreadsSpinner, dualPassCheckbox);
1188 QWidget::setTabOrder(dualPassCheckbox, disableVideoCheckbox);
1189 QWidget::setTabOrder(disableVideoCheckbox, audioChannelsCombo);
1190 QWidget::setTabOrder(audioChannelsCombo, sampleRateCombo);
1191 QWidget::setTabOrder(sampleRateCombo, audioCodecCombo);
1192 QWidget::setTabOrder(audioCodecCombo, audioRateControlCombo);
1193 QWidget::setTabOrder(audioRateControlCombo, audioBitrateCombo);
1194 QWidget::setTabOrder(audioBitrateCombo, audioQualitySpinner);
1195 QWidget::setTabOrder(audioQualitySpinner, disableAudioCheckbox);
1196 QWidget::setTabOrder(disableAudioCheckbox, advancedTextEdit);
1198 retranslateUi(EncodeDock);
1200 tabWidget->setCurrentIndex(0);
1201 scanModeCombo->setCurrentIndex(1);
1202 deinterlacerCombo->setCurrentIndex(3);
1203 interpolationCombo->setCurrentIndex(1);
1204 videoBitrateCombo->setCurrentIndex(8);
1205 sampleRateCombo->setCurrentIndex(6);
1206 audioBitrateCombo->setCurrentIndex(5);
1207 encodeButton->setDefault(
true);
1210 QMetaObject::connectSlotsByName(EncodeDock);
1213 void retranslateUi(QDockWidget *EncodeDock)
1215 EncodeDock->setWindowTitle(QCoreApplication::translate(
"EncodeDock",
"Export",
nullptr));
1216 label_6->setText(QCoreApplication::translate(
"EncodeDock",
"<b>Presets</b>",
nullptr));
1217 presetsSearch->setPlaceholderText(QCoreApplication::translate(
"EncodeDock",
"search",
nullptr));
1218 #if QT_CONFIG(tooltip)
1219 addPresetButton->setToolTip(QCoreApplication::translate(
"EncodeDock",
"Add current settings as a new custom preset",
nullptr));
1221 #if QT_CONFIG(tooltip)
1222 removePresetButton->setToolTip(QCoreApplication::translate(
"EncodeDock",
"Delete currently selected preset",
nullptr));
1224 helpLabel->setText(QCoreApplication::translate(
"EncodeDock",
"<html><head/><body><p align=\"center\"><span style=\" font-weight:600;\">Export Help</span></p><p>The defaults create a H.264/AAC MP4 file, which is suitable for most users and purposes. Choose a <span style=\" font-weight:600;\">Preset</span> at the left before deciding to use the <span style=\" font-weight:600;\">Advanced</span> mode. The <span style=\" font-weight:600;\">Advanced</span> mode does not prevent creating an invalid combination of options!</p></body></html>",
nullptr));
1225 label_5->setText(QCoreApplication::translate(
"EncodeDock",
"From",
nullptr));
1226 formatLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Format",
nullptr));
1227 hwencodeCheckBox->setText(QCoreApplication::translate(
"EncodeDock",
"Use hardware encoder",
nullptr));
1228 hwencodeButton->setText(QCoreApplication::translate(
"EncodeDock",
"Configure...",
nullptr));
1229 label_14->setText(QCoreApplication::translate(
"EncodeDock",
"Scan mode",
nullptr));
1230 label_2->setText(QCoreApplication::translate(
"EncodeDock",
"Deinterlacer",
nullptr));
1231 label_22->setText(QCoreApplication::translate(
"EncodeDock",
"Resolution",
nullptr));
1232 label_15->setText(QCoreApplication::translate(
"EncodeDock",
"Field order",
nullptr));
1233 label_13->setText(QCoreApplication::translate(
"EncodeDock",
"Aspect ratio",
nullptr));
1234 scanModeCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Interlaced",
nullptr));
1235 scanModeCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Progressive",
nullptr));
1237 deinterlacerCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"One Field (fast)",
nullptr));
1238 deinterlacerCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Linear Blend (fast)",
nullptr));
1239 deinterlacerCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"YADIF - temporal only (good)",
nullptr));
1240 deinterlacerCombo->setItemText(3, QCoreApplication::translate(
"EncodeDock",
"YADIF - temporal + spatial (best)",
nullptr));
1243 label_11->setText(QCoreApplication::translate(
"EncodeDock",
"x",
nullptr));
1245 fieldOrderCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Bottom Field First",
nullptr));
1246 fieldOrderCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Top Field First",
nullptr));
1248 interpolationCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Nearest Neighbor (fast)",
nullptr));
1249 interpolationCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Bilinear (good)",
nullptr));
1250 interpolationCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"Bicubic (better)",
nullptr));
1252 label_10->setText(QCoreApplication::translate(
"EncodeDock",
"Frames/sec",
nullptr));
1253 label_16->setText(QCoreApplication::translate(
"EncodeDock",
":",
nullptr));
1254 label_4->setText(QCoreApplication::translate(
"EncodeDock",
"Interpolation",
nullptr));
1255 previewScaleCheckBox->setText(QCoreApplication::translate(
"EncodeDock",
"Use preview scaling",
nullptr));
1256 #if QT_CONFIG(tooltip)
1257 parallelCheckbox->setToolTip(QCoreApplication::translate(
"EncodeDock",
"This enables multiple image processing threads.\n"
1258 "Sometimes, this can be a problem, and you can\n"
1259 "test if turning this off helps. For example, some\n"
1260 "interlaced AVCHD in conjunction with the YADIF\n"
1261 "deinterlacer has been reported as problematic\n"
1262 "with parallel processing enabled.",
nullptr));
1264 parallelCheckbox->setText(QCoreApplication::translate(
"EncodeDock",
"Parallel processing",
nullptr));
1265 tabWidget->setTabText(tabWidget->indexOf(modeTab), QCoreApplication::translate(
"EncodeDock",
"Video",
nullptr));
1266 label_17->setText(QCoreApplication::translate(
"EncodeDock",
"Codec",
nullptr));
1267 label_18->setText(QCoreApplication::translate(
"EncodeDock",
"GOP",
nullptr));
1268 #if QT_CONFIG(tooltip)
1269 gopSpinner->setToolTip(QCoreApplication::translate(
"EncodeDock",
"GOP = group of pictures, which is the maximum key frame interval",
nullptr));
1271 label_19->setText(QCoreApplication::translate(
"EncodeDock",
"frames",
nullptr));
1272 #if QT_CONFIG(tooltip)
1273 strictGopCheckBox->setToolTip(QCoreApplication::translate(
"EncodeDock",
"A fixed GOP means that keyframes will\n"
1274 "not be inserted at detected scene changes.",
nullptr));
1276 strictGopCheckBox->setText(QCoreApplication::translate(
"EncodeDock",
"Fixed",
nullptr));
1278 #if QT_CONFIG(tooltip)
1279 videoBitrateCombo->setToolTip(QCoreApplication::translate(
"EncodeDock",
"The average bit rate",
nullptr));
1281 videoBitrateSuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"b/s",
nullptr));
1282 disableVideoCheckbox->setText(QCoreApplication::translate(
"EncodeDock",
"Disable video",
nullptr));
1283 dualPassCheckbox->setText(QCoreApplication::translate(
"EncodeDock",
"Dual pass",
nullptr));
1284 label_20->setText(QCoreApplication::translate(
"EncodeDock",
"B frames",
nullptr));
1285 #if QT_CONFIG(tooltip)
1286 bFramesSpinner->setToolTip(QCoreApplication::translate(
"EncodeDock",
"B frames are the bidirectional \"delta\" pictures\n"
1287 "in temporal compression",
nullptr));
1289 label_12->setText(QCoreApplication::translate(
"EncodeDock",
"Codec threads",
nullptr));
1290 label_21->setText(QCoreApplication::translate(
"EncodeDock",
"(0 = auto)",
nullptr));
1291 label_23->setText(QCoreApplication::translate(
"EncodeDock",
"Rate control",
nullptr));
1292 videoRateControlCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Average Bitrate",
nullptr));
1293 videoRateControlCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Constant Bitrate",
nullptr));
1294 videoRateControlCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"Quality-based VBR",
nullptr));
1295 videoRateControlCombo->setItemText(3, QCoreApplication::translate(
"EncodeDock",
"Constrained VBR",
nullptr));
1297 videoBufferSizeLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Buffer size",
nullptr));
1298 videoBufferSizeSuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"KiB",
nullptr));
1299 videoQualityLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Quality",
nullptr));
1300 videoQualitySpinner->setSuffix(QCoreApplication::translate(
"EncodeDock",
" %",
nullptr));
1301 videoQualitySuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"TextLabel",
nullptr));
1302 videoBitrateLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Bitrate",
nullptr));
1303 tabWidget->setTabText(tabWidget->indexOf(videoTab), QCoreApplication::translate(
"EncodeDock",
"Codec",
nullptr));
1304 channelsLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Channels",
nullptr));
1305 audioChannelsCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"1 (mono)",
nullptr));
1306 audioChannelsCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"2 (stereo)",
nullptr));
1307 audioChannelsCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"6 (5.1)",
nullptr));
1309 #if QT_CONFIG(tooltip)
1310 audioChannelsCombo->setToolTip(QCoreApplication::translate(
"EncodeDock",
"The number of audio channels in the output.",
nullptr));
1313 label_9->setText(QCoreApplication::translate(
"EncodeDock",
"Hz",
nullptr));
1314 label_8->setText(QCoreApplication::translate(
"EncodeDock",
"Sample rate",
nullptr));
1315 label_3->setText(QCoreApplication::translate(
"EncodeDock",
"Codec",
nullptr));
1316 audioBitrateLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Bitrate",
nullptr));
1318 #if QT_CONFIG(tooltip)
1319 audioBitrateCombo->setToolTip(QCoreApplication::translate(
"EncodeDock",
"The average bit rate",
nullptr));
1321 audioBitrateSuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"b/s",
nullptr));
1322 disableAudioCheckbox->setText(QCoreApplication::translate(
"EncodeDock",
"Disable audio",
nullptr));
1323 label_7->setText(QCoreApplication::translate(
"EncodeDock",
"Rate control",
nullptr));
1324 audioRateControlCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Average Bitrate",
nullptr));
1325 audioRateControlCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Constant Bitrate",
nullptr));
1326 audioRateControlCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"Quality-based VBR",
nullptr));
1328 audioQualityLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Quality",
nullptr));
1329 audioQualitySpinner->setSuffix(QCoreApplication::translate(
"EncodeDock",
" %",
nullptr));
1330 audioQualitySuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"TextLabel",
nullptr));
1331 tabWidget->setTabText(tabWidget->indexOf(audioTab), QCoreApplication::translate(
"EncodeDock",
"Audio",
nullptr));
1332 tabWidget->setTabText(tabWidget->indexOf(otherTab), QCoreApplication::translate(
"EncodeDock",
"Other",
nullptr));
1333 encodeButton->setText(QCoreApplication::translate(
"EncodeDock",
"Export File",
nullptr));
1334 #if QT_CONFIG(tooltip)
1335 resetButton->setToolTip(QCoreApplication::translate(
"EncodeDock",
"Reset options to defaults",
nullptr));
1337 resetButton->setText(QCoreApplication::translate(
"EncodeDock",
"Reset",
nullptr));
1338 advancedButton->setText(QCoreApplication::translate(
"EncodeDock",
"Advanced",
nullptr));
1339 #if QT_CONFIG(tooltip)
1340 advancedCheckBox->setToolTip(QCoreApplication::translate(
"EncodeDock",
"Always start in Advanced mode",
nullptr));
1342 advancedCheckBox->setText(QString());
1343 streamButton->setText(QCoreApplication::translate(
"EncodeDock",
"Stream",
nullptr));
1344 stopCaptureButton->setText(QCoreApplication::translate(
"EncodeDock",
"Stop Capture",
nullptr));
1350 class EncodeDock:
public Ui_EncodeDock {};