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/QTreeView>
30 #include <QtWidgets/QVBoxLayout>
31 #include <QtWidgets/QWidget>
32 #include "widgets/lineeditclear.h"
39 QWidget *dockWidgetContents;
40 QHBoxLayout *horizontalLayout_21;
41 QVBoxLayout *verticalLayout_2;
43 LineEditClear *presetsSearch;
44 QTreeView *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 QSpacerItem *horizontalSpacer_7;
93 QHBoxLayout *horizontalLayout_10;
94 QComboBox *fieldOrderCombo;
95 QSpacerItem *horizontalSpacer_10;
96 QHBoxLayout *horizontalLayout_18;
97 QComboBox *interpolationCombo;
98 QSpacerItem *horizontalSpacer_22;
100 QHBoxLayout *horizontalLayout_8;
101 QSpinBox *aspectNumSpinner;
103 QSpinBox *aspectDenSpinner;
104 QSpacerItem *horizontalSpacer_8;
106 QCheckBox *previewScaleCheckBox;
107 QCheckBox *parallelCheckbox;
109 QGridLayout *gridLayout_3;
111 QHBoxLayout *horizontalLayout_11;
112 QComboBox *videoCodecCombo;
113 QSpacerItem *horizontalSpacer_11;
115 QHBoxLayout *horizontalLayout_12;
116 QSpinBox *gopSpinner;
118 QSpacerItem *horizontalSpacer_24;
119 QCheckBox *strictGopCheckBox;
120 QSpacerItem *horizontalSpacer_12;
121 QHBoxLayout *videoBitrateLayout;
122 QComboBox *videoBitrateCombo;
123 QLabel *videoBitrateSuffixLabel;
124 QSpacerItem *videoBitrateSpacer;
125 QCheckBox *disableVideoCheckbox;
126 QCheckBox *dualPassCheckbox;
128 QHBoxLayout *horizontalLayout_13;
129 QSpinBox *bFramesSpinner;
130 QSpacerItem *horizontalSpacer_14;
131 QSpacerItem *verticalSpacer;
133 QHBoxLayout *horizontalLayout_15;
134 QSpinBox *videoCodecThreadsSpinner;
136 QSpacerItem *horizontalSpacer_15;
138 QHBoxLayout *horizontalLayout_17;
139 QComboBox *videoRateControlCombo;
140 QSpacerItem *horizontalSpacer_17;
141 QLabel *videoBufferSizeLabel;
142 QHBoxLayout *videoBufferSizeLayout;
143 QDoubleSpinBox *videoBufferSizeSpinner;
144 QLabel *videoBufferSizeSuffixLabel;
145 QSpacerItem *horizontalSpacer_18;
146 QLabel *videoQualityLabel;
147 QHBoxLayout *videoQualityLayout;
148 QSpinBox *videoQualitySpinner;
149 QLabel *videoQualitySuffixLabel;
150 QSpacerItem *horizontalSpacer_19;
151 QLabel *videoBitrateLabel;
153 QGridLayout *gridLayout;
154 QLabel *channelsLabel;
155 QHBoxLayout *ChannelsHorizontalLayout;
156 QComboBox *audioChannelsCombo;
157 QSpacerItem *channelsHorizontalSpacer;
158 QHBoxLayout *horizontalLayout_4;
159 QComboBox *sampleRateCombo;
161 QSpacerItem *horizontalSpacer_6;
164 QHBoxLayout *horizontalLayout_6;
165 QComboBox *audioCodecCombo;
166 QSpacerItem *horizontalSpacer_3;
167 QLabel *audioBitrateLabel;
168 QHBoxLayout *audioBitrateLayout;
169 QComboBox *audioBitrateCombo;
170 QLabel *audioBitrateSuffixLabel;
171 QSpacerItem *horizontalSpacer_4;
172 QCheckBox *disableAudioCheckbox;
173 QSpacerItem *verticalSpacer_3;
175 QHBoxLayout *horizontalLayout_5;
176 QComboBox *audioRateControlCombo;
177 QSpacerItem *horizontalSpacer_5;
178 QLabel *audioQualityLabel;
179 QHBoxLayout *audioQualityLayout;
180 QSpinBox *audioQualitySpinner;
181 QLabel *audioQualitySuffixLabel;
182 QSpacerItem *horizontalSpacer_20;
184 QGridLayout *gridLayout_4;
185 QPlainTextEdit *advancedTextEdit;
186 QLabel *otherTipLabel;
187 QSpacerItem *verticalSpacer_2;
188 QHBoxLayout *horizontalLayout_2;
189 QPushButton *encodeButton;
190 QPushButton *resetButton;
191 QPushButton *advancedButton;
192 QCheckBox *advancedCheckBox;
193 QPushButton *streamButton;
194 QSpacerItem *horizontalSpacer;
195 QHBoxLayout *stopCaptureLayout;
196 QPushButton *stopCaptureButton;
197 QSpacerItem *stopCaptureSpacer;
199 void setupUi(QDockWidget *EncodeDock)
201 if (EncodeDock->objectName().isEmpty())
202 EncodeDock->setObjectName(QString::fromUtf8(
"EncodeDock"));
203 EncodeDock->resize(778, 644);
204 EncodeDock->setMinimumSize(QSize(442, 202));
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 QTreeView(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 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
516 horizontalLayout_7->addItem(horizontalSpacer_7);
519 gridLayout_2->addLayout(horizontalLayout_7, 0, 1, 1, 2);
521 horizontalLayout_10 =
new QHBoxLayout();
522 horizontalLayout_10->setObjectName(QString::fromUtf8(
"horizontalLayout_10"));
523 fieldOrderCombo =
new QComboBox(widget);
524 fieldOrderCombo->addItem(QString());
525 fieldOrderCombo->addItem(QString());
526 fieldOrderCombo->setObjectName(QString::fromUtf8(
"fieldOrderCombo"));
527 fieldOrderCombo->setEnabled(
false);
529 horizontalLayout_10->addWidget(fieldOrderCombo);
531 horizontalSpacer_10 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
533 horizontalLayout_10->addItem(horizontalSpacer_10);
536 gridLayout_2->addLayout(horizontalLayout_10, 5, 1, 1, 2);
538 horizontalLayout_18 =
new QHBoxLayout();
539 horizontalLayout_18->setObjectName(QString::fromUtf8(
"horizontalLayout_18"));
540 interpolationCombo =
new QComboBox(widget);
541 interpolationCombo->addItem(QString());
542 interpolationCombo->addItem(QString());
543 interpolationCombo->addItem(QString());
544 interpolationCombo->addItem(QString());
545 interpolationCombo->setObjectName(QString::fromUtf8(
"interpolationCombo"));
547 horizontalLayout_18->addWidget(interpolationCombo);
549 horizontalSpacer_22 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
551 horizontalLayout_18->addItem(horizontalSpacer_22);
554 gridLayout_2->addLayout(horizontalLayout_18, 7, 1, 1, 2);
556 label_10 =
new QLabel(widget);
557 label_10->setObjectName(QString::fromUtf8(
"label_10"));
558 label_10->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
560 gridLayout_2->addWidget(label_10, 3, 0, 1, 1);
562 horizontalLayout_8 =
new QHBoxLayout();
563 horizontalLayout_8->setSpacing(2);
564 horizontalLayout_8->setObjectName(QString::fromUtf8(
"horizontalLayout_8"));
565 aspectNumSpinner =
new QSpinBox(widget);
566 aspectNumSpinner->setObjectName(QString::fromUtf8(
"aspectNumSpinner"));
567 aspectNumSpinner->setMinimum(1);
568 aspectNumSpinner->setMaximum(8192);
569 aspectNumSpinner->setValue(16);
571 horizontalLayout_8->addWidget(aspectNumSpinner);
573 label_16 =
new QLabel(widget);
574 label_16->setObjectName(QString::fromUtf8(
"label_16"));
576 horizontalLayout_8->addWidget(label_16);
578 aspectDenSpinner =
new QSpinBox(widget);
579 aspectDenSpinner->setObjectName(QString::fromUtf8(
"aspectDenSpinner"));
580 aspectDenSpinner->setMinimum(1);
581 aspectDenSpinner->setMaximum(8192);
582 aspectDenSpinner->setValue(9);
584 horizontalLayout_8->addWidget(aspectDenSpinner);
586 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
588 horizontalLayout_8->addItem(horizontalSpacer_8);
591 gridLayout_2->addLayout(horizontalLayout_8, 1, 1, 1, 2);
593 label_4 =
new QLabel(widget);
594 label_4->setObjectName(QString::fromUtf8(
"label_4"));
595 label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
597 gridLayout_2->addWidget(label_4, 7, 0, 1, 1);
599 previewScaleCheckBox =
new QCheckBox(widget);
600 previewScaleCheckBox->setObjectName(QString::fromUtf8(
"previewScaleCheckBox"));
602 gridLayout_2->addWidget(previewScaleCheckBox, 10, 1, 1, 2);
604 parallelCheckbox =
new QCheckBox(widget);
605 parallelCheckbox->setObjectName(QString::fromUtf8(
"parallelCheckbox"));
606 parallelCheckbox->setChecked(
true);
608 gridLayout_2->addWidget(parallelCheckbox, 11, 1, 1, 2);
611 gridLayout_6->addWidget(widget, 1, 0, 1, 1);
613 tabWidget->addTab(modeTab, QString());
614 videoTab =
new QWidget();
615 videoTab->setObjectName(QString::fromUtf8(
"videoTab"));
616 gridLayout_3 =
new QGridLayout(videoTab);
617 gridLayout_3->setObjectName(QString::fromUtf8(
"gridLayout_3"));
618 gridLayout_3->setVerticalSpacing(3);
619 label_17 =
new QLabel(videoTab);
620 label_17->setObjectName(QString::fromUtf8(
"label_17"));
621 label_17->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
623 gridLayout_3->addWidget(label_17, 3, 0, 1, 1);
625 horizontalLayout_11 =
new QHBoxLayout();
626 horizontalLayout_11->setObjectName(QString::fromUtf8(
"horizontalLayout_11"));
627 videoCodecCombo =
new QComboBox(videoTab);
628 videoCodecCombo->setObjectName(QString::fromUtf8(
"videoCodecCombo"));
630 horizontalLayout_11->addWidget(videoCodecCombo);
632 horizontalSpacer_11 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
634 horizontalLayout_11->addItem(horizontalSpacer_11);
637 gridLayout_3->addLayout(horizontalLayout_11, 3, 1, 1, 1);
639 label_18 =
new QLabel(videoTab);
640 label_18->setObjectName(QString::fromUtf8(
"label_18"));
641 label_18->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
643 gridLayout_3->addWidget(label_18, 9, 0, 1, 1);
645 horizontalLayout_12 =
new QHBoxLayout();
646 horizontalLayout_12->setObjectName(QString::fromUtf8(
"horizontalLayout_12"));
647 gopSpinner =
new QSpinBox(videoTab);
648 gopSpinner->setObjectName(QString::fromUtf8(
"gopSpinner"));
649 gopSpinner->setMaximum(999);
650 gopSpinner->setValue(100);
652 horizontalLayout_12->addWidget(gopSpinner);
654 label_19 =
new QLabel(videoTab);
655 label_19->setObjectName(QString::fromUtf8(
"label_19"));
657 horizontalLayout_12->addWidget(label_19);
659 horizontalSpacer_24 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
661 horizontalLayout_12->addItem(horizontalSpacer_24);
663 strictGopCheckBox =
new QCheckBox(videoTab);
664 strictGopCheckBox->setObjectName(QString::fromUtf8(
"strictGopCheckBox"));
666 horizontalLayout_12->addWidget(strictGopCheckBox);
668 horizontalSpacer_12 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
670 horizontalLayout_12->addItem(horizontalSpacer_12);
673 gridLayout_3->addLayout(horizontalLayout_12, 9, 1, 1, 1);
675 videoBitrateLayout =
new QHBoxLayout();
676 videoBitrateLayout->setObjectName(QString::fromUtf8(
"videoBitrateLayout"));
677 videoBitrateCombo =
new QComboBox(videoTab);
678 videoBitrateCombo->addItem(QString::fromUtf8(
"64k"));
679 videoBitrateCombo->addItem(QString::fromUtf8(
"128k"));
680 videoBitrateCombo->addItem(QString::fromUtf8(
"256k"));
681 videoBitrateCombo->addItem(QString::fromUtf8(
"512k"));
682 videoBitrateCombo->addItem(QString::fromUtf8(
"768k"));
683 videoBitrateCombo->addItem(QString::fromUtf8(
"1M"));
684 videoBitrateCombo->addItem(QString::fromUtf8(
"1200k"));
685 videoBitrateCombo->addItem(QString::fromUtf8(
"1500k"));
686 videoBitrateCombo->addItem(QString::fromUtf8(
"2M"));
687 videoBitrateCombo->addItem(QString::fromUtf8(
"2500k"));
688 videoBitrateCombo->addItem(QString::fromUtf8(
"3M"));
689 videoBitrateCombo->addItem(QString::fromUtf8(
"4M"));
690 videoBitrateCombo->addItem(QString::fromUtf8(
"5M"));
691 videoBitrateCombo->addItem(QString::fromUtf8(
"6M"));
692 videoBitrateCombo->addItem(QString::fromUtf8(
"8M"));
693 videoBitrateCombo->addItem(QString::fromUtf8(
"10M"));
694 videoBitrateCombo->addItem(QString::fromUtf8(
"12M"));
695 videoBitrateCombo->addItem(QString::fromUtf8(
"14M"));
696 videoBitrateCombo->addItem(QString::fromUtf8(
"16M"));
697 videoBitrateCombo->addItem(QString::fromUtf8(
"18M"));
698 videoBitrateCombo->addItem(QString::fromUtf8(
"20M"));
699 videoBitrateCombo->addItem(QString::fromUtf8(
"25M"));
700 videoBitrateCombo->addItem(QString::fromUtf8(
"30M"));
701 videoBitrateCombo->addItem(QString::fromUtf8(
"40M"));
702 videoBitrateCombo->addItem(QString::fromUtf8(
"50M"));
703 videoBitrateCombo->addItem(QString::fromUtf8(
"60M"));
704 videoBitrateCombo->addItem(QString::fromUtf8(
"70M"));
705 videoBitrateCombo->addItem(QString::fromUtf8(
"80M"));
706 videoBitrateCombo->setObjectName(QString::fromUtf8(
"videoBitrateCombo"));
707 videoBitrateCombo->setEditable(
true);
709 videoBitrateLayout->addWidget(videoBitrateCombo);
711 videoBitrateSuffixLabel =
new QLabel(videoTab);
712 videoBitrateSuffixLabel->setObjectName(QString::fromUtf8(
"videoBitrateSuffixLabel"));
714 videoBitrateLayout->addWidget(videoBitrateSuffixLabel);
716 videoBitrateSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
718 videoBitrateLayout->addItem(videoBitrateSpacer);
721 gridLayout_3->addLayout(videoBitrateLayout, 6, 1, 1, 1);
723 disableVideoCheckbox =
new QCheckBox(videoTab);
724 disableVideoCheckbox->setObjectName(QString::fromUtf8(
"disableVideoCheckbox"));
726 gridLayout_3->addWidget(disableVideoCheckbox, 13, 1, 1, 1);
728 dualPassCheckbox =
new QCheckBox(videoTab);
729 dualPassCheckbox->setObjectName(QString::fromUtf8(
"dualPassCheckbox"));
731 gridLayout_3->addWidget(dualPassCheckbox, 12, 1, 1, 1);
733 label_20 =
new QLabel(videoTab);
734 label_20->setObjectName(QString::fromUtf8(
"label_20"));
735 label_20->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
737 gridLayout_3->addWidget(label_20, 10, 0, 1, 1);
739 horizontalLayout_13 =
new QHBoxLayout();
740 horizontalLayout_13->setObjectName(QString::fromUtf8(
"horizontalLayout_13"));
741 bFramesSpinner =
new QSpinBox(videoTab);
742 bFramesSpinner->setObjectName(QString::fromUtf8(
"bFramesSpinner"));
743 bFramesSpinner->setMaximum(8);
745 horizontalLayout_13->addWidget(bFramesSpinner);
747 horizontalSpacer_14 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
749 horizontalLayout_13->addItem(horizontalSpacer_14);
752 gridLayout_3->addLayout(horizontalLayout_13, 10, 1, 1, 1);
754 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
756 gridLayout_3->addItem(verticalSpacer, 14, 1, 1, 1);
758 label_12 =
new QLabel(videoTab);
759 label_12->setObjectName(QString::fromUtf8(
"label_12"));
760 label_12->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
762 gridLayout_3->addWidget(label_12, 11, 0, 1, 1);
764 horizontalLayout_15 =
new QHBoxLayout();
765 horizontalLayout_15->setObjectName(QString::fromUtf8(
"horizontalLayout_15"));
766 videoCodecThreadsSpinner =
new QSpinBox(videoTab);
767 videoCodecThreadsSpinner->setObjectName(QString::fromUtf8(
"videoCodecThreadsSpinner"));
769 horizontalLayout_15->addWidget(videoCodecThreadsSpinner);
771 label_21 =
new QLabel(videoTab);
772 label_21->setObjectName(QString::fromUtf8(
"label_21"));
774 horizontalLayout_15->addWidget(label_21);
776 horizontalSpacer_15 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
778 horizontalLayout_15->addItem(horizontalSpacer_15);
781 gridLayout_3->addLayout(horizontalLayout_15, 11, 1, 1, 1);
783 label_23 =
new QLabel(videoTab);
784 label_23->setObjectName(QString::fromUtf8(
"label_23"));
785 label_23->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
787 gridLayout_3->addWidget(label_23, 5, 0, 1, 1);
789 horizontalLayout_17 =
new QHBoxLayout();
790 horizontalLayout_17->setObjectName(QString::fromUtf8(
"horizontalLayout_17"));
791 videoRateControlCombo =
new QComboBox(videoTab);
792 videoRateControlCombo->addItem(QString());
793 videoRateControlCombo->addItem(QString());
794 videoRateControlCombo->addItem(QString());
795 videoRateControlCombo->addItem(QString());
796 videoRateControlCombo->setObjectName(QString::fromUtf8(
"videoRateControlCombo"));
798 horizontalLayout_17->addWidget(videoRateControlCombo);
800 horizontalSpacer_17 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
802 horizontalLayout_17->addItem(horizontalSpacer_17);
805 gridLayout_3->addLayout(horizontalLayout_17, 5, 1, 1, 1);
807 videoBufferSizeLabel =
new QLabel(videoTab);
808 videoBufferSizeLabel->setObjectName(QString::fromUtf8(
"videoBufferSizeLabel"));
809 videoBufferSizeLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
811 gridLayout_3->addWidget(videoBufferSizeLabel, 7, 0, 1, 1);
813 videoBufferSizeLayout =
new QHBoxLayout();
814 videoBufferSizeLayout->setObjectName(QString::fromUtf8(
"videoBufferSizeLayout"));
815 videoBufferSizeSpinner =
new QDoubleSpinBox(videoTab);
816 videoBufferSizeSpinner->setObjectName(QString::fromUtf8(
"videoBufferSizeSpinner"));
817 videoBufferSizeSpinner->setMaximum(9999.000000000000000);
818 videoBufferSizeSpinner->setValue(224.000000000000000);
820 videoBufferSizeLayout->addWidget(videoBufferSizeSpinner);
822 videoBufferSizeSuffixLabel =
new QLabel(videoTab);
823 videoBufferSizeSuffixLabel->setObjectName(QString::fromUtf8(
"videoBufferSizeSuffixLabel"));
825 videoBufferSizeLayout->addWidget(videoBufferSizeSuffixLabel);
827 horizontalSpacer_18 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
829 videoBufferSizeLayout->addItem(horizontalSpacer_18);
832 gridLayout_3->addLayout(videoBufferSizeLayout, 7, 1, 1, 1);
834 videoQualityLabel =
new QLabel(videoTab);
835 videoQualityLabel->setObjectName(QString::fromUtf8(
"videoQualityLabel"));
836 videoQualityLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
838 gridLayout_3->addWidget(videoQualityLabel, 8, 0, 1, 1);
840 videoQualityLayout =
new QHBoxLayout();
841 videoQualityLayout->setObjectName(QString::fromUtf8(
"videoQualityLayout"));
842 videoQualitySpinner =
new QSpinBox(videoTab);
843 videoQualitySpinner->setObjectName(QString::fromUtf8(
"videoQualitySpinner"));
844 videoQualitySpinner->setMinimum(0);
845 videoQualitySpinner->setMaximum(100);
846 videoQualitySpinner->setValue(50);
848 videoQualityLayout->addWidget(videoQualitySpinner);
850 videoQualitySuffixLabel =
new QLabel(videoTab);
851 videoQualitySuffixLabel->setObjectName(QString::fromUtf8(
"videoQualitySuffixLabel"));
853 videoQualityLayout->addWidget(videoQualitySuffixLabel);
855 horizontalSpacer_19 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
857 videoQualityLayout->addItem(horizontalSpacer_19);
860 gridLayout_3->addLayout(videoQualityLayout, 8, 1, 1, 1);
862 videoBitrateLabel =
new QLabel(videoTab);
863 videoBitrateLabel->setObjectName(QString::fromUtf8(
"videoBitrateLabel"));
864 videoBitrateLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
866 gridLayout_3->addWidget(videoBitrateLabel, 6, 0, 1, 1);
868 tabWidget->addTab(videoTab, QString());
869 audioTab =
new QWidget();
870 audioTab->setObjectName(QString::fromUtf8(
"audioTab"));
871 gridLayout =
new QGridLayout(audioTab);
872 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
873 gridLayout->setVerticalSpacing(3);
874 channelsLabel =
new QLabel(audioTab);
875 channelsLabel->setObjectName(QString::fromUtf8(
"channelsLabel"));
876 channelsLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
878 gridLayout->addWidget(channelsLabel, 1, 0, 1, 1);
880 ChannelsHorizontalLayout =
new QHBoxLayout();
881 ChannelsHorizontalLayout->setObjectName(QString::fromUtf8(
"ChannelsHorizontalLayout"));
882 audioChannelsCombo =
new QComboBox(audioTab);
883 audioChannelsCombo->addItem(QString());
884 audioChannelsCombo->addItem(QString());
885 audioChannelsCombo->addItem(QString());
886 audioChannelsCombo->setObjectName(QString::fromUtf8(
"audioChannelsCombo"));
888 ChannelsHorizontalLayout->addWidget(audioChannelsCombo);
890 channelsHorizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
892 ChannelsHorizontalLayout->addItem(channelsHorizontalSpacer);
895 gridLayout->addLayout(ChannelsHorizontalLayout, 1, 1, 1, 1);
897 horizontalLayout_4 =
new QHBoxLayout();
898 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
899 sampleRateCombo =
new QComboBox(audioTab);
900 sampleRateCombo->addItem(QString::fromUtf8(
"8000"));
901 sampleRateCombo->addItem(QString::fromUtf8(
"12000"));
902 sampleRateCombo->addItem(QString::fromUtf8(
"16000"));
903 sampleRateCombo->addItem(QString::fromUtf8(
"22050"));
904 sampleRateCombo->addItem(QString::fromUtf8(
"32000"));
905 sampleRateCombo->addItem(QString::fromUtf8(
"44100"));
906 sampleRateCombo->addItem(QString::fromUtf8(
"48000"));
907 sampleRateCombo->addItem(QString::fromUtf8(
"96000"));
908 sampleRateCombo->setObjectName(QString::fromUtf8(
"sampleRateCombo"));
909 sampleRateCombo->setEditable(
true);
911 horizontalLayout_4->addWidget(sampleRateCombo);
913 label_9 =
new QLabel(audioTab);
914 label_9->setObjectName(QString::fromUtf8(
"label_9"));
916 horizontalLayout_4->addWidget(label_9);
918 horizontalSpacer_6 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
920 horizontalLayout_4->addItem(horizontalSpacer_6);
923 gridLayout->addLayout(horizontalLayout_4, 2, 1, 1, 1);
925 label_8 =
new QLabel(audioTab);
926 label_8->setObjectName(QString::fromUtf8(
"label_8"));
927 label_8->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
929 gridLayout->addWidget(label_8, 2, 0, 1, 1);
931 label_3 =
new QLabel(audioTab);
932 label_3->setObjectName(QString::fromUtf8(
"label_3"));
933 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
935 gridLayout->addWidget(label_3, 3, 0, 1, 1);
937 horizontalLayout_6 =
new QHBoxLayout();
938 horizontalLayout_6->setObjectName(QString::fromUtf8(
"horizontalLayout_6"));
939 audioCodecCombo =
new QComboBox(audioTab);
940 audioCodecCombo->setObjectName(QString::fromUtf8(
"audioCodecCombo"));
942 horizontalLayout_6->addWidget(audioCodecCombo);
944 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
946 horizontalLayout_6->addItem(horizontalSpacer_3);
949 gridLayout->addLayout(horizontalLayout_6, 3, 1, 1, 1);
951 audioBitrateLabel =
new QLabel(audioTab);
952 audioBitrateLabel->setObjectName(QString::fromUtf8(
"audioBitrateLabel"));
953 audioBitrateLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
955 gridLayout->addWidget(audioBitrateLabel, 6, 0, 1, 1);
957 audioBitrateLayout =
new QHBoxLayout();
958 audioBitrateLayout->setObjectName(QString::fromUtf8(
"audioBitrateLayout"));
959 audioBitrateCombo =
new QComboBox(audioTab);
960 audioBitrateCombo->addItem(QString::fromUtf8(
"16k"));
961 audioBitrateCombo->addItem(QString::fromUtf8(
"32k"));
962 audioBitrateCombo->addItem(QString::fromUtf8(
"48k"));
963 audioBitrateCombo->addItem(QString::fromUtf8(
"64k"));
964 audioBitrateCombo->addItem(QString::fromUtf8(
"96k"));
965 audioBitrateCombo->addItem(QString::fromUtf8(
"128k"));
966 audioBitrateCombo->addItem(QString::fromUtf8(
"192k"));
967 audioBitrateCombo->addItem(QString::fromUtf8(
"220k"));
968 audioBitrateCombo->addItem(QString::fromUtf8(
"256k"));
969 audioBitrateCombo->addItem(QString::fromUtf8(
"384k"));
970 audioBitrateCombo->addItem(QString::fromUtf8(
"448k"));
971 audioBitrateCombo->addItem(QString::fromUtf8(
"512k"));
972 audioBitrateCombo->addItem(QString::fromUtf8(
"1M"));
973 audioBitrateCombo->setObjectName(QString::fromUtf8(
"audioBitrateCombo"));
974 audioBitrateCombo->setEditable(
true);
976 audioBitrateLayout->addWidget(audioBitrateCombo);
978 audioBitrateSuffixLabel =
new QLabel(audioTab);
979 audioBitrateSuffixLabel->setObjectName(QString::fromUtf8(
"audioBitrateSuffixLabel"));
981 audioBitrateLayout->addWidget(audioBitrateSuffixLabel);
983 horizontalSpacer_4 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
985 audioBitrateLayout->addItem(horizontalSpacer_4);
988 gridLayout->addLayout(audioBitrateLayout, 6, 1, 1, 1);
990 disableAudioCheckbox =
new QCheckBox(audioTab);
991 disableAudioCheckbox->setObjectName(QString::fromUtf8(
"disableAudioCheckbox"));
993 gridLayout->addWidget(disableAudioCheckbox, 8, 1, 1, 1);
995 verticalSpacer_3 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
997 gridLayout->addItem(verticalSpacer_3, 9, 0, 1, 1);
999 label_7 =
new QLabel(audioTab);
1000 label_7->setObjectName(QString::fromUtf8(
"label_7"));
1001 label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
1003 gridLayout->addWidget(label_7, 4, 0, 1, 1);
1005 horizontalLayout_5 =
new QHBoxLayout();
1006 horizontalLayout_5->setObjectName(QString::fromUtf8(
"horizontalLayout_5"));
1007 audioRateControlCombo =
new QComboBox(audioTab);
1008 audioRateControlCombo->addItem(QString());
1009 audioRateControlCombo->addItem(QString());
1010 audioRateControlCombo->addItem(QString());
1011 audioRateControlCombo->setObjectName(QString::fromUtf8(
"audioRateControlCombo"));
1013 horizontalLayout_5->addWidget(audioRateControlCombo);
1015 horizontalSpacer_5 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
1017 horizontalLayout_5->addItem(horizontalSpacer_5);
1020 gridLayout->addLayout(horizontalLayout_5, 4, 1, 1, 1);
1022 audioQualityLabel =
new QLabel(audioTab);
1023 audioQualityLabel->setObjectName(QString::fromUtf8(
"audioQualityLabel"));
1024 audioQualityLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
1026 gridLayout->addWidget(audioQualityLabel, 7, 0, 1, 1);
1028 audioQualityLayout =
new QHBoxLayout();
1029 audioQualityLayout->setObjectName(QString::fromUtf8(
"audioQualityLayout"));
1030 audioQualitySpinner =
new QSpinBox(audioTab);
1031 audioQualitySpinner->setObjectName(QString::fromUtf8(
"audioQualitySpinner"));
1032 audioQualitySpinner->setMinimum(0);
1033 audioQualitySpinner->setMaximum(100);
1034 audioQualitySpinner->setValue(50);
1036 audioQualityLayout->addWidget(audioQualitySpinner);
1038 audioQualitySuffixLabel =
new QLabel(audioTab);
1039 audioQualitySuffixLabel->setObjectName(QString::fromUtf8(
"audioQualitySuffixLabel"));
1041 audioQualityLayout->addWidget(audioQualitySuffixLabel);
1043 horizontalSpacer_20 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
1045 audioQualityLayout->addItem(horizontalSpacer_20);
1048 gridLayout->addLayout(audioQualityLayout, 7, 1, 1, 1);
1050 tabWidget->addTab(audioTab, QString());
1051 otherTab =
new QWidget();
1052 otherTab->setObjectName(QString::fromUtf8(
"otherTab"));
1053 gridLayout_4 =
new QGridLayout(otherTab);
1054 gridLayout_4->setObjectName(QString::fromUtf8(
"gridLayout_4"));
1055 advancedTextEdit =
new QPlainTextEdit(otherTab);
1056 advancedTextEdit->setObjectName(QString::fromUtf8(
"advancedTextEdit"));
1058 gridLayout_4->addWidget(advancedTextEdit, 1, 0, 1, 1);
1060 otherTipLabel =
new QLabel(otherTab);
1061 otherTipLabel->setObjectName(QString::fromUtf8(
"otherTipLabel"));
1062 otherTipLabel->setWordWrap(
true);
1064 gridLayout_4->addWidget(otherTipLabel, 0, 0, 1, 1);
1066 tabWidget->addTab(otherTab, QString());
1068 verticalLayout_3->addWidget(tabWidget);
1070 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
1072 verticalLayout_3->addItem(verticalSpacer_2);
1074 scrollArea->setWidget(scrollAreaWidgetContents);
1076 verticalLayout->addWidget(scrollArea);
1078 horizontalLayout_2 =
new QHBoxLayout();
1079 horizontalLayout_2->setSpacing(6);
1080 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
1081 encodeButton =
new QPushButton(dockWidgetContents);
1082 encodeButton->setObjectName(QString::fromUtf8(
"encodeButton"));
1084 horizontalLayout_2->addWidget(encodeButton);
1086 resetButton =
new QPushButton(dockWidgetContents);
1087 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
1089 horizontalLayout_2->addWidget(resetButton);
1091 advancedButton =
new QPushButton(dockWidgetContents);
1092 advancedButton->setObjectName(QString::fromUtf8(
"advancedButton"));
1093 advancedButton->setCheckable(
true);
1095 horizontalLayout_2->addWidget(advancedButton);
1097 advancedCheckBox =
new QCheckBox(dockWidgetContents);
1098 advancedCheckBox->setObjectName(QString::fromUtf8(
"advancedCheckBox"));
1100 horizontalLayout_2->addWidget(advancedCheckBox);
1102 streamButton =
new QPushButton(dockWidgetContents);
1103 streamButton->setObjectName(QString::fromUtf8(
"streamButton"));
1105 horizontalLayout_2->addWidget(streamButton);
1107 horizontalSpacer =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
1109 horizontalLayout_2->addItem(horizontalSpacer);
1112 verticalLayout->addLayout(horizontalLayout_2);
1114 stopCaptureLayout =
new QHBoxLayout();
1115 stopCaptureLayout->setSpacing(6);
1116 stopCaptureLayout->setObjectName(QString::fromUtf8(
"stopCaptureLayout"));
1117 stopCaptureButton =
new QPushButton(dockWidgetContents);
1118 stopCaptureButton->setObjectName(QString::fromUtf8(
"stopCaptureButton"));
1120 stopCaptureLayout->addWidget(stopCaptureButton);
1122 stopCaptureSpacer =
new QSpacerItem(40, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
1124 stopCaptureLayout->addItem(stopCaptureSpacer);
1127 verticalLayout->addLayout(stopCaptureLayout);
1130 horizontalLayout_21->addLayout(verticalLayout);
1132 horizontalLayout_21->setStretch(0, 3);
1133 horizontalLayout_21->setStretch(1, 4);
1134 EncodeDock->setWidget(dockWidgetContents);
1135 QWidget::setTabOrder(fromCombo, hwencodeCheckBox);
1136 QWidget::setTabOrder(hwencodeCheckBox, hwencodeButton);
1137 QWidget::setTabOrder(hwencodeButton, formatCombo);
1138 QWidget::setTabOrder(formatCombo, tabWidget);
1139 QWidget::setTabOrder(tabWidget, widthSpinner);
1140 QWidget::setTabOrder(widthSpinner, heightSpinner);
1141 QWidget::setTabOrder(heightSpinner, aspectNumSpinner);
1142 QWidget::setTabOrder(aspectNumSpinner, aspectDenSpinner);
1143 QWidget::setTabOrder(aspectDenSpinner, fpsSpinner);
1144 QWidget::setTabOrder(fpsSpinner, fpsComboBox);
1145 QWidget::setTabOrder(fpsComboBox, scanModeCombo);
1146 QWidget::setTabOrder(scanModeCombo, fieldOrderCombo);
1147 QWidget::setTabOrder(fieldOrderCombo, deinterlacerCombo);
1148 QWidget::setTabOrder(deinterlacerCombo, interpolationCombo);
1149 QWidget::setTabOrder(interpolationCombo, previewScaleCheckBox);
1150 QWidget::setTabOrder(previewScaleCheckBox, parallelCheckbox);
1151 QWidget::setTabOrder(parallelCheckbox, encodeButton);
1152 QWidget::setTabOrder(encodeButton, resetButton);
1153 QWidget::setTabOrder(resetButton, advancedButton);
1154 QWidget::setTabOrder(advancedButton, advancedCheckBox);
1155 QWidget::setTabOrder(advancedCheckBox, streamButton);
1156 QWidget::setTabOrder(streamButton, stopCaptureButton);
1157 QWidget::setTabOrder(stopCaptureButton, presetsSearch);
1158 QWidget::setTabOrder(presetsSearch, presetsTree);
1159 QWidget::setTabOrder(presetsTree, addPresetButton);
1160 QWidget::setTabOrder(addPresetButton, removePresetButton);
1161 QWidget::setTabOrder(removePresetButton, scrollArea);
1162 QWidget::setTabOrder(scrollArea, videoCodecCombo);
1163 QWidget::setTabOrder(videoCodecCombo, videoRateControlCombo);
1164 QWidget::setTabOrder(videoRateControlCombo, videoBitrateCombo);
1165 QWidget::setTabOrder(videoBitrateCombo, videoBufferSizeSpinner);
1166 QWidget::setTabOrder(videoBufferSizeSpinner, videoQualitySpinner);
1167 QWidget::setTabOrder(videoQualitySpinner, gopSpinner);
1168 QWidget::setTabOrder(gopSpinner, strictGopCheckBox);
1169 QWidget::setTabOrder(strictGopCheckBox, bFramesSpinner);
1170 QWidget::setTabOrder(bFramesSpinner, videoCodecThreadsSpinner);
1171 QWidget::setTabOrder(videoCodecThreadsSpinner, dualPassCheckbox);
1172 QWidget::setTabOrder(dualPassCheckbox, disableVideoCheckbox);
1173 QWidget::setTabOrder(disableVideoCheckbox, audioChannelsCombo);
1174 QWidget::setTabOrder(audioChannelsCombo, sampleRateCombo);
1175 QWidget::setTabOrder(sampleRateCombo, audioCodecCombo);
1176 QWidget::setTabOrder(audioCodecCombo, audioRateControlCombo);
1177 QWidget::setTabOrder(audioRateControlCombo, audioBitrateCombo);
1178 QWidget::setTabOrder(audioBitrateCombo, audioQualitySpinner);
1179 QWidget::setTabOrder(audioQualitySpinner, disableAudioCheckbox);
1180 QWidget::setTabOrder(disableAudioCheckbox, advancedTextEdit);
1182 retranslateUi(EncodeDock);
1184 tabWidget->setCurrentIndex(0);
1185 scanModeCombo->setCurrentIndex(1);
1186 deinterlacerCombo->setCurrentIndex(3);
1187 interpolationCombo->setCurrentIndex(1);
1188 videoBitrateCombo->setCurrentIndex(8);
1189 sampleRateCombo->setCurrentIndex(6);
1190 audioBitrateCombo->setCurrentIndex(5);
1191 encodeButton->setDefault(
true);
1194 QMetaObject::connectSlotsByName(EncodeDock);
1197 void retranslateUi(QDockWidget *EncodeDock)
1199 EncodeDock->setWindowTitle(QCoreApplication::translate(
"EncodeDock",
"Export",
nullptr));
1200 label_6->setText(QCoreApplication::translate(
"EncodeDock",
"<b>Presets</b>",
nullptr));
1201 presetsSearch->setPlaceholderText(QCoreApplication::translate(
"EncodeDock",
"search",
nullptr));
1202 #if QT_CONFIG(tooltip)
1203 addPresetButton->setToolTip(QCoreApplication::translate(
"EncodeDock",
"Add current settings as a new custom preset",
nullptr));
1204 #endif // QT_CONFIG(tooltip)
1205 #if QT_CONFIG(tooltip)
1206 removePresetButton->setToolTip(QCoreApplication::translate(
"EncodeDock",
"Delete currently selected preset",
nullptr));
1207 #endif // QT_CONFIG(tooltip)
1208 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));
1209 label_5->setText(QCoreApplication::translate(
"EncodeDock",
"From",
nullptr));
1210 formatLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Format",
nullptr));
1211 hwencodeCheckBox->setText(QCoreApplication::translate(
"EncodeDock",
"Use hardware encoder",
nullptr));
1212 hwencodeButton->setText(QCoreApplication::translate(
"EncodeDock",
"Configure...",
nullptr));
1213 label_14->setText(QCoreApplication::translate(
"EncodeDock",
"Scan mode",
nullptr));
1214 label_2->setText(QCoreApplication::translate(
"EncodeDock",
"Deinterlacer",
nullptr));
1215 label_22->setText(QCoreApplication::translate(
"EncodeDock",
"Resolution",
nullptr));
1216 label_15->setText(QCoreApplication::translate(
"EncodeDock",
"Field order",
nullptr));
1217 label_13->setText(QCoreApplication::translate(
"EncodeDock",
"Aspect ratio",
nullptr));
1218 scanModeCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Interlaced",
nullptr));
1219 scanModeCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Progressive",
nullptr));
1221 deinterlacerCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"One Field (fast)",
nullptr));
1222 deinterlacerCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Linear Blend (fast)",
nullptr));
1223 deinterlacerCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"YADIF - temporal only (good)",
nullptr));
1224 deinterlacerCombo->setItemText(3, QCoreApplication::translate(
"EncodeDock",
"YADIF - temporal + spatial (best)",
nullptr));
1227 label_11->setText(QCoreApplication::translate(
"EncodeDock",
"x",
nullptr));
1228 fieldOrderCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Bottom Field First",
nullptr));
1229 fieldOrderCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Top Field First",
nullptr));
1231 interpolationCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Nearest Neighbor (fast)",
nullptr));
1232 interpolationCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Bilinear (good)",
nullptr));
1233 interpolationCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"Bicubic (better)",
nullptr));
1234 interpolationCombo->setItemText(3, QCoreApplication::translate(
"EncodeDock",
"Hyper/Lanczos (best)",
nullptr));
1236 label_10->setText(QCoreApplication::translate(
"EncodeDock",
"Frames/sec",
nullptr));
1237 label_16->setText(QCoreApplication::translate(
"EncodeDock",
":",
nullptr));
1238 label_4->setText(QCoreApplication::translate(
"EncodeDock",
"Interpolation",
nullptr));
1239 previewScaleCheckBox->setText(QCoreApplication::translate(
"EncodeDock",
"Use preview scaling",
nullptr));
1240 #if QT_CONFIG(tooltip)
1241 parallelCheckbox->setToolTip(QCoreApplication::translate(
"EncodeDock",
"This enables multiple image processing threads.\n"
1242 "Sometimes, this can be a problem, and you can\n"
1243 "test if turning this off helps. For example, some\n"
1244 "interlaced AVCHD in conjunction with the YADIF\n"
1245 "deinterlacer has been reported as problematic\n"
1246 "with parallel processing enabled.",
nullptr));
1247 #endif // QT_CONFIG(tooltip)
1248 parallelCheckbox->setText(QCoreApplication::translate(
"EncodeDock",
"Parallel processing",
nullptr));
1249 tabWidget->setTabText(tabWidget->indexOf(modeTab), QCoreApplication::translate(
"EncodeDock",
"Video",
nullptr));
1250 label_17->setText(QCoreApplication::translate(
"EncodeDock",
"Codec",
nullptr));
1251 label_18->setText(QCoreApplication::translate(
"EncodeDock",
"GOP",
nullptr));
1252 #if QT_CONFIG(tooltip)
1253 gopSpinner->setToolTip(QCoreApplication::translate(
"EncodeDock",
"GOP = group of pictures, which is the maximum key frame interval",
nullptr));
1254 #endif // QT_CONFIG(tooltip)
1255 label_19->setText(QCoreApplication::translate(
"EncodeDock",
"frames",
nullptr));
1256 #if QT_CONFIG(tooltip)
1257 strictGopCheckBox->setToolTip(QCoreApplication::translate(
"EncodeDock",
"A fixed GOP means that keyframes will\n"
1258 "not be inserted at detected scene changes.",
nullptr));
1259 #endif // QT_CONFIG(tooltip)
1260 strictGopCheckBox->setText(QCoreApplication::translate(
"EncodeDock",
"Fixed",
nullptr));
1262 #if QT_CONFIG(tooltip)
1263 videoBitrateCombo->setToolTip(QCoreApplication::translate(
"EncodeDock",
"The average bit rate",
nullptr));
1264 #endif // QT_CONFIG(tooltip)
1265 videoBitrateSuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"b/s",
nullptr));
1266 disableVideoCheckbox->setText(QCoreApplication::translate(
"EncodeDock",
"Disable video",
nullptr));
1267 dualPassCheckbox->setText(QCoreApplication::translate(
"EncodeDock",
"Dual pass",
nullptr));
1268 label_20->setText(QCoreApplication::translate(
"EncodeDock",
"B frames",
nullptr));
1269 #if QT_CONFIG(tooltip)
1270 bFramesSpinner->setToolTip(QCoreApplication::translate(
"EncodeDock",
"B frames are the bidirectional \"delta\" pictures\n"
1271 "in temporal compression",
nullptr));
1272 #endif // QT_CONFIG(tooltip)
1273 label_12->setText(QCoreApplication::translate(
"EncodeDock",
"Codec threads",
nullptr));
1274 label_21->setText(QCoreApplication::translate(
"EncodeDock",
"(0 = auto)",
nullptr));
1275 label_23->setText(QCoreApplication::translate(
"EncodeDock",
"Rate control",
nullptr));
1276 videoRateControlCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Average Bitrate",
nullptr));
1277 videoRateControlCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Constant Bitrate",
nullptr));
1278 videoRateControlCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"Quality-based VBR",
nullptr));
1279 videoRateControlCombo->setItemText(3, QCoreApplication::translate(
"EncodeDock",
"Constrained VBR",
nullptr));
1281 videoBufferSizeLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Buffer size",
nullptr));
1282 videoBufferSizeSuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"KiB",
nullptr));
1283 videoQualityLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Quality",
nullptr));
1284 videoQualitySpinner->setSuffix(QCoreApplication::translate(
"EncodeDock",
" %",
nullptr));
1285 videoQualitySuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"TextLabel",
nullptr));
1286 videoBitrateLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Bitrate",
nullptr));
1287 tabWidget->setTabText(tabWidget->indexOf(videoTab), QCoreApplication::translate(
"EncodeDock",
"Codec",
nullptr));
1288 channelsLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Channels",
nullptr));
1289 audioChannelsCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"1 (mono)",
nullptr));
1290 audioChannelsCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"2 (stereo)",
nullptr));
1291 audioChannelsCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"6 (5.1)",
nullptr));
1293 #if QT_CONFIG(tooltip)
1294 audioChannelsCombo->setToolTip(QCoreApplication::translate(
"EncodeDock",
"The number of audio channels in the output.",
nullptr));
1295 #endif // QT_CONFIG(tooltip)
1297 label_9->setText(QCoreApplication::translate(
"EncodeDock",
"Hz",
nullptr));
1298 label_8->setText(QCoreApplication::translate(
"EncodeDock",
"Sample rate",
nullptr));
1299 label_3->setText(QCoreApplication::translate(
"EncodeDock",
"Codec",
nullptr));
1300 audioBitrateLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Bitrate",
nullptr));
1302 #if QT_CONFIG(tooltip)
1303 audioBitrateCombo->setToolTip(QCoreApplication::translate(
"EncodeDock",
"The average bit rate",
nullptr));
1304 #endif // QT_CONFIG(tooltip)
1305 audioBitrateSuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"b/s",
nullptr));
1306 disableAudioCheckbox->setText(QCoreApplication::translate(
"EncodeDock",
"Disable audio",
nullptr));
1307 label_7->setText(QCoreApplication::translate(
"EncodeDock",
"Rate control",
nullptr));
1308 audioRateControlCombo->setItemText(0, QCoreApplication::translate(
"EncodeDock",
"Average Bitrate",
nullptr));
1309 audioRateControlCombo->setItemText(1, QCoreApplication::translate(
"EncodeDock",
"Constant Bitrate",
nullptr));
1310 audioRateControlCombo->setItemText(2, QCoreApplication::translate(
"EncodeDock",
"Quality-based VBR",
nullptr));
1312 audioQualityLabel->setText(QCoreApplication::translate(
"EncodeDock",
"Quality",
nullptr));
1313 audioQualitySpinner->setSuffix(QCoreApplication::translate(
"EncodeDock",
" %",
nullptr));
1314 audioQualitySuffixLabel->setText(QCoreApplication::translate(
"EncodeDock",
"TextLabel",
nullptr));
1315 tabWidget->setTabText(tabWidget->indexOf(audioTab), QCoreApplication::translate(
"EncodeDock",
"Audio",
nullptr));
1316 tabWidget->setTabText(tabWidget->indexOf(otherTab), QCoreApplication::translate(
"EncodeDock",
"Other",
nullptr));
1317 encodeButton->setText(QCoreApplication::translate(
"EncodeDock",
"Export File",
nullptr));
1318 #if QT_CONFIG(tooltip)
1319 resetButton->setToolTip(QCoreApplication::translate(
"EncodeDock",
"Reset options to defaults",
nullptr));
1320 #endif // QT_CONFIG(tooltip)
1321 resetButton->setText(QCoreApplication::translate(
"EncodeDock",
"Reset",
nullptr));
1322 advancedButton->setText(QCoreApplication::translate(
"EncodeDock",
"Advanced",
nullptr));
1323 #if QT_CONFIG(tooltip)
1324 advancedCheckBox->setToolTip(QCoreApplication::translate(
"EncodeDock",
"Always start in Advanced mode",
nullptr));
1325 #endif // QT_CONFIG(tooltip)
1326 advancedCheckBox->setText(QString());
1327 streamButton->setText(QCoreApplication::translate(
"EncodeDock",
"Stream",
nullptr));
1328 stopCaptureButton->setText(QCoreApplication::translate(
"EncodeDock",
"Stop Capture",
nullptr));
1334 class EncodeDock:
public Ui_EncodeDock {};
1339 #endif // UI_ENCODEDOCK_H