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);
205 QString iconThemeName = QString::fromUtf8(
"media-record");
206 if (QIcon::hasThemeIcon(iconThemeName)) {
207 icon = QIcon::fromTheme(iconThemeName);
209 icon.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/media-record.png"), QSize(), QIcon::Normal, QIcon::Off);
211 EncodeDock->setWindowIcon(icon);
212 dockWidgetContents =
new QWidget();
213 dockWidgetContents->setObjectName(QString::fromUtf8(
"dockWidgetContents"));
214 horizontalLayout_21 =
new QHBoxLayout(dockWidgetContents);
215 horizontalLayout_21->setSpacing(0);
216 horizontalLayout_21->setObjectName(QString::fromUtf8(
"horizontalLayout_21"));
217 horizontalLayout_21->setContentsMargins(0, 0, 0, 0);
218 verticalLayout_2 =
new QVBoxLayout();
219 verticalLayout_2->setSpacing(0);
220 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
221 label_6 =
new QLabel(dockWidgetContents);
222 label_6->setObjectName(QString::fromUtf8(
"label_6"));
223 label_6->setTextFormat(Qt::RichText);
224 label_6->setAlignment(Qt::AlignCenter);
226 verticalLayout_2->addWidget(label_6);
228 presetsSearch =
new LineEditClear(dockWidgetContents);
229 presetsSearch->setObjectName(QString::fromUtf8(
"presetsSearch"));
231 verticalLayout_2->addWidget(presetsSearch);
233 presetsTree =
new QTreeView(dockWidgetContents);
234 presetsTree->setObjectName(QString::fromUtf8(
"presetsTree"));
235 presetsTree->setEditTriggers(QAbstractItemView::NoEditTriggers);
236 presetsTree->setProperty(
"showDropIndicator", QVariant(
false));
237 presetsTree->setAlternatingRowColors(
true);
238 presetsTree->header()->setVisible(
false);
239 presetsTree->header()->setDefaultSectionSize(57);
241 verticalLayout_2->addWidget(presetsTree);
243 horizontalLayout =
new QHBoxLayout();
244 horizontalLayout->setSpacing(6);
245 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
246 addPresetButton =
new QPushButton(dockWidgetContents);
247 addPresetButton->setObjectName(QString::fromUtf8(
"addPresetButton"));
249 iconThemeName = QString::fromUtf8(
"list-add");
250 if (QIcon::hasThemeIcon(iconThemeName)) {
251 icon1 = QIcon::fromTheme(iconThemeName);
253 icon1.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/list-add.png"), QSize(), QIcon::Normal, QIcon::Off);
255 addPresetButton->setIcon(icon1);
257 horizontalLayout->addWidget(addPresetButton);
259 removePresetButton =
new QPushButton(dockWidgetContents);
260 removePresetButton->setObjectName(QString::fromUtf8(
"removePresetButton"));
261 removePresetButton->setEnabled(
false);
263 iconThemeName = QString::fromUtf8(
"list-remove");
264 if (QIcon::hasThemeIcon(iconThemeName)) {
265 icon2 = QIcon::fromTheme(iconThemeName);
267 icon2.addFile(QString::fromUtf8(
":/icons/oxygen/32x32/actions/list-remove.png"), QSize(), QIcon::Normal, QIcon::Off);
269 removePresetButton->setIcon(icon2);
271 horizontalLayout->addWidget(removePresetButton);
273 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
275 horizontalLayout->addItem(horizontalSpacer_2);
278 verticalLayout_2->addLayout(horizontalLayout);
281 horizontalLayout_21->addLayout(verticalLayout_2);
283 verticalLayout =
new QVBoxLayout();
284 verticalLayout->setSpacing(0);
285 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
286 scrollArea =
new QScrollArea(dockWidgetContents);
287 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
288 scrollArea->setFrameShape(QFrame::NoFrame);
289 scrollArea->setWidgetResizable(
true);
290 scrollAreaWidgetContents =
new QWidget();
291 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
292 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 429, 646));
293 verticalLayout_3 =
new QVBoxLayout(scrollAreaWidgetContents);
294 verticalLayout_3->setSpacing(3);
295 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
296 verticalLayout_3->setContentsMargins(6, 6, 6, 0);
297 helpLabel =
new QLabel(scrollAreaWidgetContents);
298 helpLabel->setObjectName(QString::fromUtf8(
"helpLabel"));
299 helpLabel->setTextFormat(Qt::RichText);
300 helpLabel->setWordWrap(
true);
302 verticalLayout_3->addWidget(helpLabel);
304 gridLayout_5 =
new QGridLayout();
305 gridLayout_5->setObjectName(QString::fromUtf8(
"gridLayout_5"));
306 gridLayout_5->setVerticalSpacing(3);
307 label_5 =
new QLabel(scrollAreaWidgetContents);
308 label_5->setObjectName(QString::fromUtf8(
"label_5"));
309 label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
311 gridLayout_5->addWidget(label_5, 2, 0, 1, 1);
313 horizontalLayout_14 =
new QHBoxLayout();
314 horizontalLayout_14->setObjectName(QString::fromUtf8(
"horizontalLayout_14"));
315 formatCombo =
new QComboBox(scrollAreaWidgetContents);
316 formatCombo->setObjectName(QString::fromUtf8(
"formatCombo"));
318 horizontalLayout_14->addWidget(formatCombo);
320 horizontalSpacer_13 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
322 horizontalLayout_14->addItem(horizontalSpacer_13);
325 gridLayout_5->addLayout(horizontalLayout_14, 5, 1, 1, 1);
327 formatLabel =
new QLabel(scrollAreaWidgetContents);
328 formatLabel->setObjectName(QString::fromUtf8(
"formatLabel"));
329 formatLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
331 gridLayout_5->addWidget(formatLabel, 5, 0, 1, 1);
333 horizontalLayout_19 =
new QHBoxLayout();
334 horizontalLayout_19->setObjectName(QString::fromUtf8(
"horizontalLayout_19"));
335 fromCombo =
new QComboBox(scrollAreaWidgetContents);
336 fromCombo->setObjectName(QString::fromUtf8(
"fromCombo"));
337 fromCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents);
339 horizontalLayout_19->addWidget(fromCombo);
341 horizontalSpacer_23 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
343 horizontalLayout_19->addItem(horizontalSpacer_23);
346 gridLayout_5->addLayout(horizontalLayout_19, 2, 1, 1, 1);
348 horizontalLayout_20 =
new QHBoxLayout();
349 horizontalLayout_20->setObjectName(QString::fromUtf8(
"horizontalLayout_20"));
350 hwencodeCheckBox =
new QCheckBox(scrollAreaWidgetContents);
351 hwencodeCheckBox->setObjectName(QString::fromUtf8(
"hwencodeCheckBox"));
353 horizontalLayout_20->addWidget(hwencodeCheckBox);
355 hwencodeButton =
new QPushButton(scrollAreaWidgetContents);
356 hwencodeButton->setObjectName(QString::fromUtf8(
"hwencodeButton"));
358 horizontalLayout_20->addWidget(hwencodeButton);
360 horizontalSpacer_25 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
362 horizontalLayout_20->addItem(horizontalSpacer_25);
365 gridLayout_5->addLayout(horizontalLayout_20, 4, 1, 1, 1);
368 verticalLayout_3->addLayout(gridLayout_5);
370 tabWidget =
new QTabWidget(scrollAreaWidgetContents);
371 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
372 tabWidget->setUsesScrollButtons(
false);
373 tabWidget->setDocumentMode(
false);
374 modeTab =
new QWidget();
375 modeTab->setObjectName(QString::fromUtf8(
"modeTab"));
376 gridLayout_6 =
new QGridLayout(modeTab);
377 gridLayout_6->setObjectName(QString::fromUtf8(
"gridLayout_6"));
378 gridLayout_6->setContentsMargins(0, 0, 0, 0);
379 widget =
new QWidget(modeTab);
380 widget->setObjectName(QString::fromUtf8(
"widget"));
381 gridLayout_2 =
new QGridLayout(widget);
382 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
383 gridLayout_2->setVerticalSpacing(3);
384 label_14 =
new QLabel(widget);
385 label_14->setObjectName(QString::fromUtf8(
"label_14"));
386 label_14->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
388 gridLayout_2->addWidget(label_14, 4, 0, 1, 1);
390 label_2 =
new QLabel(widget);
391 label_2->setObjectName(QString::fromUtf8(
"label_2"));
392 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
394 gridLayout_2->addWidget(label_2, 6, 0, 1, 1);
396 label_22 =
new QLabel(widget);
397 label_22->setObjectName(QString::fromUtf8(
"label_22"));
398 label_22->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
400 gridLayout_2->addWidget(label_22, 0, 0, 1, 1);
402 label_15 =
new QLabel(widget);
403 label_15->setObjectName(QString::fromUtf8(
"label_15"));
404 label_15->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
406 gridLayout_2->addWidget(label_15, 5, 0, 1, 1);
408 label_13 =
new QLabel(widget);
409 label_13->setObjectName(QString::fromUtf8(
"label_13"));
410 label_13->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
412 gridLayout_2->addWidget(label_13, 1, 0, 1, 1);
414 horizontalLayout_9 =
new QHBoxLayout();
415 horizontalLayout_9->setSpacing(2);
416 horizontalLayout_9->setObjectName(QString::fromUtf8(
"horizontalLayout_9"));
417 scanModeCombo =
new QComboBox(widget);
418 scanModeCombo->addItem(QString());
419 scanModeCombo->addItem(QString());
420 scanModeCombo->setObjectName(QString::fromUtf8(
"scanModeCombo"));
422 horizontalLayout_9->addWidget(scanModeCombo);
424 horizontalSpacer_9 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
426 horizontalLayout_9->addItem(horizontalSpacer_9);
429 gridLayout_2->addLayout(horizontalLayout_9, 4, 1, 1, 2);
431 horizontalLayout_3 =
new QHBoxLayout();
432 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
433 deinterlacerCombo =
new QComboBox(widget);
434 deinterlacerCombo->addItem(QString());
435 deinterlacerCombo->addItem(QString());
436 deinterlacerCombo->addItem(QString());
437 deinterlacerCombo->addItem(QString());
438 deinterlacerCombo->setObjectName(QString::fromUtf8(
"deinterlacerCombo"));
440 horizontalLayout_3->addWidget(deinterlacerCombo);
442 horizontalSpacer_21 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
444 horizontalLayout_3->addItem(horizontalSpacer_21);
447 gridLayout_2->addLayout(horizontalLayout_3, 6, 1, 1, 2);
449 verticalSpacer_4 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
451 gridLayout_2->addItem(verticalSpacer_4, 12, 1, 1, 1);
453 horizontalLayout_16 =
new QHBoxLayout();
454 horizontalLayout_16->setObjectName(QString::fromUtf8(
"horizontalLayout_16"));
455 fpsSpinner =
new QDoubleSpinBox(widget);
456 fpsSpinner->setObjectName(QString::fromUtf8(
"fpsSpinner"));
457 fpsSpinner->setDecimals(6);
458 fpsSpinner->setMinimum(1.000000000000000);
459 fpsSpinner->setMaximum(1000.000000000000000);
460 fpsSpinner->setValue(25.000000000000000);
462 horizontalLayout_16->addWidget(fpsSpinner);
464 fpsComboBox =
new QComboBox(widget);
465 fpsComboBox->addItem(QString::fromUtf8(
""));
466 fpsComboBox->addItem(QString::fromUtf8(
"23.976024"));
467 fpsComboBox->addItem(QString::fromUtf8(
"24"));
468 fpsComboBox->addItem(QString::fromUtf8(
"25"));
469 fpsComboBox->addItem(QString::fromUtf8(
"29.970030"));
470 fpsComboBox->addItem(QString::fromUtf8(
"30"));
471 fpsComboBox->addItem(QString::fromUtf8(
"48"));
472 fpsComboBox->addItem(QString::fromUtf8(
"50"));
473 fpsComboBox->addItem(QString::fromUtf8(
"59.940060"));
474 fpsComboBox->addItem(QString::fromUtf8(
"60"));
475 fpsComboBox->setObjectName(QString::fromUtf8(
"fpsComboBox"));
476 fpsComboBox->setMaximumSize(QSize(20, 16777215));
478 horizontalLayout_16->addWidget(fpsComboBox);
480 horizontalSpacer_16 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
482 horizontalLayout_16->addItem(horizontalSpacer_16);
485 gridLayout_2->addLayout(horizontalLayout_16, 3, 1, 1, 2);
487 horizontalLayout_7 =
new QHBoxLayout();
488 horizontalLayout_7->setSpacing(2);
489 horizontalLayout_7->setObjectName(QString::fromUtf8(
"horizontalLayout_7"));
490 widthSpinner =
new QSpinBox(widget);
491 widthSpinner->setObjectName(QString::fromUtf8(
"widthSpinner"));
492 widthSpinner->setMinimum(16);
493 widthSpinner->setMaximum(8192);
494 widthSpinner->setSingleStep(2);
495 widthSpinner->setValue(1280);
497 horizontalLayout_7->addWidget(widthSpinner);
499 label_11 =
new QLabel(widget);
500 label_11->setObjectName(QString::fromUtf8(
"label_11"));
502 horizontalLayout_7->addWidget(label_11);
504 heightSpinner =
new QSpinBox(widget);
505 heightSpinner->setObjectName(QString::fromUtf8(
"heightSpinner"));
506 heightSpinner->setMinimum(1);
507 heightSpinner->setMaximum(8192);
508 heightSpinner->setSingleStep(2);
509 heightSpinner->setValue(720);
511 horizontalLayout_7->addWidget(heightSpinner);
513 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
515 horizontalLayout_7->addItem(horizontalSpacer_7);
518 gridLayout_2->addLayout(horizontalLayout_7, 0, 1, 1, 2);
520 horizontalLayout_10 =
new QHBoxLayout();
521 horizontalLayout_10->setObjectName(QString::fromUtf8(
"horizontalLayout_10"));
522 fieldOrderCombo =
new QComboBox(widget);
523 fieldOrderCombo->addItem(QString());
524 fieldOrderCombo->addItem(QString());
525 fieldOrderCombo->setObjectName(QString::fromUtf8(
"fieldOrderCombo"));
526 fieldOrderCombo->setEnabled(
false);
528 horizontalLayout_10->addWidget(fieldOrderCombo);
530 horizontalSpacer_10 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
532 horizontalLayout_10->addItem(horizontalSpacer_10);
535 gridLayout_2->addLayout(horizontalLayout_10, 5, 1, 1, 2);
537 horizontalLayout_18 =
new QHBoxLayout();
538 horizontalLayout_18->setObjectName(QString::fromUtf8(
"horizontalLayout_18"));
539 interpolationCombo =
new QComboBox(widget);
540 interpolationCombo->addItem(QString());
541 interpolationCombo->addItem(QString());
542 interpolationCombo->addItem(QString());
543 interpolationCombo->addItem(QString());
544 interpolationCombo->setObjectName(QString::fromUtf8(
"interpolationCombo"));
546 horizontalLayout_18->addWidget(interpolationCombo);
548 horizontalSpacer_22 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
550 horizontalLayout_18->addItem(horizontalSpacer_22);
553 gridLayout_2->addLayout(horizontalLayout_18, 7, 1, 1, 2);
555 label_10 =
new QLabel(widget);
556 label_10->setObjectName(QString::fromUtf8(
"label_10"));
557 label_10->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
559 gridLayout_2->addWidget(label_10, 3, 0, 1, 1);
561 horizontalLayout_8 =
new QHBoxLayout();
562 horizontalLayout_8->setSpacing(2);
563 horizontalLayout_8->setObjectName(QString::fromUtf8(
"horizontalLayout_8"));
564 aspectNumSpinner =
new QSpinBox(widget);
565 aspectNumSpinner->setObjectName(QString::fromUtf8(
"aspectNumSpinner"));
566 aspectNumSpinner->setMinimum(1);
567 aspectNumSpinner->setMaximum(8192);
568 aspectNumSpinner->setValue(16);
570 horizontalLayout_8->addWidget(aspectNumSpinner);
572 label_16 =
new QLabel(widget);
573 label_16->setObjectName(QString::fromUtf8(
"label_16"));
575 horizontalLayout_8->addWidget(label_16);
577 aspectDenSpinner =
new QSpinBox(widget);
578 aspectDenSpinner->setObjectName(QString::fromUtf8(
"aspectDenSpinner"));
579 aspectDenSpinner->setMinimum(1);
580 aspectDenSpinner->setMaximum(8192);
581 aspectDenSpinner->setValue(9);
583 horizontalLayout_8->addWidget(aspectDenSpinner);
585 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
587 horizontalLayout_8->addItem(horizontalSpacer_8);
590 gridLayout_2->addLayout(horizontalLayout_8, 1, 1, 1, 2);
592 label_4 =
new QLabel(widget);
593 label_4->setObjectName(QString::fromUtf8(
"label_4"));
594 label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
596 gridLayout_2->addWidget(label_4, 7, 0, 1, 1);
598 previewScaleCheckBox =
new QCheckBox(widget);
599 previewScaleCheckBox->setObjectName(QString::fromUtf8(
"previewScaleCheckBox"));
601 gridLayout_2->addWidget(previewScaleCheckBox, 10, 1, 1, 2);
603 parallelCheckbox =
new QCheckBox(widget);
604 parallelCheckbox->setObjectName(QString::fromUtf8(
"parallelCheckbox"));
605 parallelCheckbox->setChecked(
true);
607 gridLayout_2->addWidget(parallelCheckbox, 11, 1, 1, 2);
610 gridLayout_6->addWidget(widget, 1, 0, 1, 1);
612 tabWidget->addTab(modeTab, QString());
613 videoTab =
new QWidget();
614 videoTab->setObjectName(QString::fromUtf8(
"videoTab"));
615 gridLayout_3 =
new QGridLayout(videoTab);
616 gridLayout_3->setObjectName(QString::fromUtf8(
"gridLayout_3"));
617 gridLayout_3->setVerticalSpacing(3);
618 label_17 =
new QLabel(videoTab);
619 label_17->setObjectName(QString::fromUtf8(
"label_17"));
620 label_17->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
622 gridLayout_3->addWidget(label_17, 3, 0, 1, 1);
624 horizontalLayout_11 =
new QHBoxLayout();
625 horizontalLayout_11->setObjectName(QString::fromUtf8(
"horizontalLayout_11"));
626 videoCodecCombo =
new QComboBox(videoTab);
627 videoCodecCombo->setObjectName(QString::fromUtf8(
"videoCodecCombo"));
629 horizontalLayout_11->addWidget(videoCodecCombo);
631 horizontalSpacer_11 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
633 horizontalLayout_11->addItem(horizontalSpacer_11);
636 gridLayout_3->addLayout(horizontalLayout_11, 3, 1, 1, 1);
638 label_18 =
new QLabel(videoTab);
639 label_18->setObjectName(QString::fromUtf8(
"label_18"));
640 label_18->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
642 gridLayout_3->addWidget(label_18, 9, 0, 1, 1);
644 horizontalLayout_12 =
new QHBoxLayout();
645 horizontalLayout_12->setObjectName(QString::fromUtf8(
"horizontalLayout_12"));
646 gopSpinner =
new QSpinBox(videoTab);
647 gopSpinner->setObjectName(QString::fromUtf8(
"gopSpinner"));
648 gopSpinner->setMaximum(999);
649 gopSpinner->setValue(100);
651 horizontalLayout_12->addWidget(gopSpinner);
653 label_19 =
new QLabel(videoTab);
654 label_19->setObjectName(QString::fromUtf8(
"label_19"));
656 horizontalLayout_12->addWidget(label_19);
658 horizontalSpacer_24 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
660 horizontalLayout_12->addItem(horizontalSpacer_24);
662 strictGopCheckBox =
new QCheckBox(videoTab);
663 strictGopCheckBox->setObjectName(QString::fromUtf8(
"strictGopCheckBox"));
665 horizontalLayout_12->addWidget(strictGopCheckBox);
667 horizontalSpacer_12 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
669 horizontalLayout_12->addItem(horizontalSpacer_12);
672 gridLayout_3->addLayout(horizontalLayout_12, 9, 1, 1, 1);
674 videoBitrateLayout =
new QHBoxLayout();
675 videoBitrateLayout->setObjectName(QString::fromUtf8(
"videoBitrateLayout"));
676 videoBitrateCombo =
new QComboBox(videoTab);
677 videoBitrateCombo->addItem(QString::fromUtf8(
"64k"));
678 videoBitrateCombo->addItem(QString::fromUtf8(
"128k"));
679 videoBitrateCombo->addItem(QString::fromUtf8(
"256k"));
680 videoBitrateCombo->addItem(QString::fromUtf8(
"512k"));
681 videoBitrateCombo->addItem(QString::fromUtf8(
"768k"));
682 videoBitrateCombo->addItem(QString::fromUtf8(
"1M"));
683 videoBitrateCombo->addItem(QString::fromUtf8(
"1200k"));
684 videoBitrateCombo->addItem(QString::fromUtf8(
"1500k"));
685 videoBitrateCombo->addItem(QString::fromUtf8(
"2M"));
686 videoBitrateCombo->addItem(QString::fromUtf8(
"2500k"));
687 videoBitrateCombo->addItem(QString::fromUtf8(
"3M"));
688 videoBitrateCombo->addItem(QString::fromUtf8(
"4M"));
689 videoBitrateCombo->addItem(QString::fromUtf8(
"5M"));
690 videoBitrateCombo->addItem(QString::fromUtf8(
"6M"));
691 videoBitrateCombo->addItem(QString::fromUtf8(
"8M"));
692 videoBitrateCombo->addItem(QString::fromUtf8(
"10M"));
693 videoBitrateCombo->addItem(QString::fromUtf8(
"12M"));
694 videoBitrateCombo->addItem(QString::fromUtf8(
"14M"));
695 videoBitrateCombo->addItem(QString::fromUtf8(
"16M"));
696 videoBitrateCombo->addItem(QString::fromUtf8(
"18M"));
697 videoBitrateCombo->addItem(QString::fromUtf8(
"20M"));
698 videoBitrateCombo->addItem(QString::fromUtf8(
"25M"));
699 videoBitrateCombo->addItem(QString::fromUtf8(
"30M"));
700 videoBitrateCombo->addItem(QString::fromUtf8(
"40M"));
701 videoBitrateCombo->addItem(QString::fromUtf8(
"50M"));
702 videoBitrateCombo->addItem(QString::fromUtf8(
"60M"));
703 videoBitrateCombo->addItem(QString::fromUtf8(
"70M"));
704 videoBitrateCombo->addItem(QString::fromUtf8(
"80M"));
705 videoBitrateCombo->setObjectName(QString::fromUtf8(
"videoBitrateCombo"));
706 videoBitrateCombo->setEditable(
true);
708 videoBitrateLayout->addWidget(videoBitrateCombo);
710 videoBitrateSuffixLabel =
new QLabel(videoTab);
711 videoBitrateSuffixLabel->setObjectName(QString::fromUtf8(
"videoBitrateSuffixLabel"));
713 videoBitrateLayout->addWidget(videoBitrateSuffixLabel);
715 videoBitrateSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
717 videoBitrateLayout->addItem(videoBitrateSpacer);
720 gridLayout_3->addLayout(videoBitrateLayout, 6, 1, 1, 1);
722 disableVideoCheckbox =
new QCheckBox(videoTab);
723 disableVideoCheckbox->setObjectName(QString::fromUtf8(
"disableVideoCheckbox"));
725 gridLayout_3->addWidget(disableVideoCheckbox, 13, 1, 1, 1);
727 dualPassCheckbox =
new QCheckBox(videoTab);
728 dualPassCheckbox->setObjectName(QString::fromUtf8(
"dualPassCheckbox"));
730 gridLayout_3->addWidget(dualPassCheckbox, 12, 1, 1, 1);
732 label_20 =
new QLabel(videoTab);
733 label_20->setObjectName(QString::fromUtf8(
"label_20"));
734 label_20->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
736 gridLayout_3->addWidget(label_20, 10, 0, 1, 1);
738 horizontalLayout_13 =
new QHBoxLayout();
739 horizontalLayout_13->setObjectName(QString::fromUtf8(
"horizontalLayout_13"));
740 bFramesSpinner =
new QSpinBox(videoTab);
741 bFramesSpinner->setObjectName(QString::fromUtf8(
"bFramesSpinner"));
742 bFramesSpinner->setMaximum(8);
744 horizontalLayout_13->addWidget(bFramesSpinner);
746 horizontalSpacer_14 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
748 horizontalLayout_13->addItem(horizontalSpacer_14);
751 gridLayout_3->addLayout(horizontalLayout_13, 10, 1, 1, 1);
753 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
755 gridLayout_3->addItem(verticalSpacer, 14, 1, 1, 1);
757 label_12 =
new QLabel(videoTab);
758 label_12->setObjectName(QString::fromUtf8(
"label_12"));
759 label_12->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
761 gridLayout_3->addWidget(label_12, 11, 0, 1, 1);
763 horizontalLayout_15 =
new QHBoxLayout();
764 horizontalLayout_15->setObjectName(QString::fromUtf8(
"horizontalLayout_15"));
765 videoCodecThreadsSpinner =
new QSpinBox(videoTab);
766 videoCodecThreadsSpinner->setObjectName(QString::fromUtf8(
"videoCodecThreadsSpinner"));
768 horizontalLayout_15->addWidget(videoCodecThreadsSpinner);
770 label_21 =
new QLabel(videoTab);
771 label_21->setObjectName(QString::fromUtf8(
"label_21"));
773 horizontalLayout_15->addWidget(label_21);
775 horizontalSpacer_15 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
777 horizontalLayout_15->addItem(horizontalSpacer_15);
780 gridLayout_3->addLayout(horizontalLayout_15, 11, 1, 1, 1);
782 label_23 =
new QLabel(videoTab);
783 label_23->setObjectName(QString::fromUtf8(
"label_23"));
784 label_23->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
786 gridLayout_3->addWidget(label_23, 5, 0, 1, 1);
788 horizontalLayout_17 =
new QHBoxLayout();
789 horizontalLayout_17->setObjectName(QString::fromUtf8(
"horizontalLayout_17"));
790 videoRateControlCombo =
new QComboBox(videoTab);
791 videoRateControlCombo->addItem(QString());
792 videoRateControlCombo->addItem(QString());
793 videoRateControlCombo->addItem(QString());
794 videoRateControlCombo->addItem(QString());
795 videoRateControlCombo->setObjectName(QString::fromUtf8(
"videoRateControlCombo"));
797 horizontalLayout_17->addWidget(videoRateControlCombo);
799 horizontalSpacer_17 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
801 horizontalLayout_17->addItem(horizontalSpacer_17);
804 gridLayout_3->addLayout(horizontalLayout_17, 5, 1, 1, 1);
806 videoBufferSizeLabel =
new QLabel(videoTab);
807 videoBufferSizeLabel->setObjectName(QString::fromUtf8(
"videoBufferSizeLabel"));
808 videoBufferSizeLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
810 gridLayout_3->addWidget(videoBufferSizeLabel, 7, 0, 1, 1);
812 videoBufferSizeLayout =
new QHBoxLayout();
813 videoBufferSizeLayout->setObjectName(QString::fromUtf8(
"videoBufferSizeLayout"));
814 videoBufferSizeSpinner =
new QDoubleSpinBox(videoTab);
815 videoBufferSizeSpinner->setObjectName(QString::fromUtf8(
"videoBufferSizeSpinner"));
816 videoBufferSizeSpinner->setMaximum(9999.000000000000000);
817 videoBufferSizeSpinner->setValue(224.000000000000000);
819 videoBufferSizeLayout->addWidget(videoBufferSizeSpinner);
821 videoBufferSizeSuffixLabel =
new QLabel(videoTab);
822 videoBufferSizeSuffixLabel->setObjectName(QString::fromUtf8(
"videoBufferSizeSuffixLabel"));
824 videoBufferSizeLayout->addWidget(videoBufferSizeSuffixLabel);
826 horizontalSpacer_18 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
828 videoBufferSizeLayout->addItem(horizontalSpacer_18);
831 gridLayout_3->addLayout(videoBufferSizeLayout, 7, 1, 1, 1);
833 videoQualityLabel =
new QLabel(videoTab);
834 videoQualityLabel->setObjectName(QString::fromUtf8(
"videoQualityLabel"));
835 videoQualityLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
837 gridLayout_3->addWidget(videoQualityLabel, 8, 0, 1, 1);
839 videoQualityLayout =
new QHBoxLayout();
840 videoQualityLayout->setObjectName(QString::fromUtf8(
"videoQualityLayout"));
841 videoQualitySpinner =
new QSpinBox(videoTab);
842 videoQualitySpinner->setObjectName(QString::fromUtf8(
"videoQualitySpinner"));
843 videoQualitySpinner->setMinimum(0);
844 videoQualitySpinner->setMaximum(100);
845 videoQualitySpinner->setValue(50);
847 videoQualityLayout->addWidget(videoQualitySpinner);
849 videoQualitySuffixLabel =
new QLabel(videoTab);
850 videoQualitySuffixLabel->setObjectName(QString::fromUtf8(
"videoQualitySuffixLabel"));
852 videoQualityLayout->addWidget(videoQualitySuffixLabel);
854 horizontalSpacer_19 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
856 videoQualityLayout->addItem(horizontalSpacer_19);
859 gridLayout_3->addLayout(videoQualityLayout, 8, 1, 1, 1);
861 videoBitrateLabel =
new QLabel(videoTab);
862 videoBitrateLabel->setObjectName(QString::fromUtf8(
"videoBitrateLabel"));
863 videoBitrateLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
865 gridLayout_3->addWidget(videoBitrateLabel, 6, 0, 1, 1);
867 tabWidget->addTab(videoTab, QString());
868 audioTab =
new QWidget();
869 audioTab->setObjectName(QString::fromUtf8(
"audioTab"));
870 gridLayout =
new QGridLayout(audioTab);
871 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
872 gridLayout->setVerticalSpacing(3);
873 channelsLabel =
new QLabel(audioTab);
874 channelsLabel->setObjectName(QString::fromUtf8(
"channelsLabel"));
875 channelsLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
877 gridLayout->addWidget(channelsLabel, 1, 0, 1, 1);
879 ChannelsHorizontalLayout =
new QHBoxLayout();
880 ChannelsHorizontalLayout->setObjectName(QString::fromUtf8(
"ChannelsHorizontalLayout"));
881 audioChannelsCombo =
new QComboBox(audioTab);
882 audioChannelsCombo->addItem(QString());
883 audioChannelsCombo->addItem(QString());
884 audioChannelsCombo->addItem(QString());
885 audioChannelsCombo->setObjectName(QString::fromUtf8(
"audioChannelsCombo"));
887 ChannelsHorizontalLayout->addWidget(audioChannelsCombo);
889 channelsHorizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
891 ChannelsHorizontalLayout->addItem(channelsHorizontalSpacer);
894 gridLayout->addLayout(ChannelsHorizontalLayout, 1, 1, 1, 1);
896 horizontalLayout_4 =
new QHBoxLayout();
897 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
898 sampleRateCombo =
new QComboBox(audioTab);
899 sampleRateCombo->addItem(QString::fromUtf8(
"8000"));
900 sampleRateCombo->addItem(QString::fromUtf8(
"12000"));
901 sampleRateCombo->addItem(QString::fromUtf8(
"16000"));
902 sampleRateCombo->addItem(QString::fromUtf8(
"22050"));
903 sampleRateCombo->addItem(QString::fromUtf8(
"32000"));
904 sampleRateCombo->addItem(QString::fromUtf8(
"44100"));
905 sampleRateCombo->addItem(QString::fromUtf8(
"48000"));
906 sampleRateCombo->addItem(QString::fromUtf8(
"96000"));
907 sampleRateCombo->setObjectName(QString::fromUtf8(
"sampleRateCombo"));
908 sampleRateCombo->setEditable(
true);
910 horizontalLayout_4->addWidget(sampleRateCombo);
912 label_9 =
new QLabel(audioTab);
913 label_9->setObjectName(QString::fromUtf8(
"label_9"));
915 horizontalLayout_4->addWidget(label_9);
917 horizontalSpacer_6 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
919 horizontalLayout_4->addItem(horizontalSpacer_6);
922 gridLayout->addLayout(horizontalLayout_4, 2, 1, 1, 1);
924 label_8 =
new QLabel(audioTab);
925 label_8->setObjectName(QString::fromUtf8(
"label_8"));
926 label_8->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
928 gridLayout->addWidget(label_8, 2, 0, 1, 1);
930 label_3 =
new QLabel(audioTab);
931 label_3->setObjectName(QString::fromUtf8(
"label_3"));
932 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
934 gridLayout->addWidget(label_3, 3, 0, 1, 1);
936 horizontalLayout_6 =
new QHBoxLayout();
937 horizontalLayout_6->setObjectName(QString::fromUtf8(
"horizontalLayout_6"));
938 audioCodecCombo =
new QComboBox(audioTab);
939 audioCodecCombo->setObjectName(QString::fromUtf8(
"audioCodecCombo"));
941 horizontalLayout_6->addWidget(audioCodecCombo);
943 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
945 horizontalLayout_6->addItem(horizontalSpacer_3);
948 gridLayout->addLayout(horizontalLayout_6, 3, 1, 1, 1);
950 audioBitrateLabel =
new QLabel(audioTab);
951 audioBitrateLabel->setObjectName(QString::fromUtf8(
"audioBitrateLabel"));
952 audioBitrateLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
954 gridLayout->addWidget(audioBitrateLabel, 6, 0, 1, 1);
956 audioBitrateLayout =
new QHBoxLayout();
957 audioBitrateLayout->setObjectName(QString::fromUtf8(
"audioBitrateLayout"));
958 audioBitrateCombo =
new QComboBox(audioTab);
959 audioBitrateCombo->addItem(QString::fromUtf8(
"16k"));
960 audioBitrateCombo->addItem(QString::fromUtf8(
"32k"));
961 audioBitrateCombo->addItem(QString::fromUtf8(
"48k"));
962 audioBitrateCombo->addItem(QString::fromUtf8(
"64k"));
963 audioBitrateCombo->addItem(QString::fromUtf8(
"96k"));
964 audioBitrateCombo->addItem(QString::fromUtf8(
"128k"));
965 audioBitrateCombo->addItem(QString::fromUtf8(
"192k"));
966 audioBitrateCombo->addItem(QString::fromUtf8(
"220k"));
967 audioBitrateCombo->addItem(QString::fromUtf8(
"256k"));
968 audioBitrateCombo->addItem(QString::fromUtf8(
"384k"));
969 audioBitrateCombo->addItem(QString::fromUtf8(
"448k"));
970 audioBitrateCombo->addItem(QString::fromUtf8(
"512k"));
971 audioBitrateCombo->addItem(QString::fromUtf8(
"640k"));
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