blob: 66e2d810fe97bdc8dce3b718f13828c8645f522e (
plain) (
blame)
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
|
#ifndef ENCODEMP4JOB_H
#define ENCODEMP4JOB_H
#include "job.h"
#include "video.h"
#include <QTime>
#include <QMap>
#include <QProcess>
class EncodeMP4Job : public Job
{
Q_OBJECT
public:
EncodeMP4Job(Video *video);
~EncodeMP4Job();
Video::Jobs jobType() const;
protected:
bool executeJob();
QWidget* gui();
private:
QProcess *m_process;
QString m_encodePath;
private slots:
void finished(int exitCode, QProcess::ExitStatus exitStats);
void readyRead();
void error();
public slots:
void kill();
signals:
void encodeProgress(int currentTask, int totalTasks, float percent, float currentFps, float avgFps, QTime timeRemaining);
};
#endif // ENCODEMP4JOB_H
|