-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffmpegwidget.h
55 lines (45 loc) · 1.58 KB
/
ffmpegwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef FFMPEGWIDGET_H
#define FFMPEGWIDGET_H
#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QPushButton>
#include <QComboBox>
#include <QLabel>
#include <QPlainTextEdit>
#include <QLineEdit>
#include "ffoptions.h"
#include "filelist.h"
#include "choosefile.h"
class ffmpegWidget : public QWidget
{
Q_OBJECT
public:
explicit ffmpegWidget(ChooseFile* fileTab, QWidget *parent = nullptr);
QGridLayout *topLayout;
QGridLayout *presetLayout, *filterLayout, *finalCommandLayout, *commandLayout;
QHBoxLayout *outputLayout, *viedoLayout, *audioLayout, *miscLayout, *fileChooseLayout;
vector<AbstructOption*> options;
QPushButton *savePreset, *loadPreset, *generateFinalCommand, *applyToChosen;
QComboBox *fileToChoose, *presetToChoose;
FFOptionsCombo *outputFormat, *videoQuailty, *videoCodec, *frameRate, *videoBitRate,
*audioQuality, *audioCodec, *videoRotation, *filter;
FFOptionsCheck *remix, *hardwareAcceleration, *optimizedForWeb, *stero, *noVideo, *noAudio;
QLabel *presetText, *finalCommandText, *fileComboText, *fileNameLabel;
QPlainTextEdit *finalCommand;
QLineEdit *filterLine, *fileName;
QWidget* commandsWidget;
ChooseFile* fileTab;
void loadFromFile(QString Filename = "./defalut.json");
void saveToFile(QString Filename = "./userSaved.json");
int num;
int currentnum;
~ffmpegWidget();
public slots:
void Load();
void save();
void generate();
void apply();
};
#endif // FFMPEGWIDGET_H