17 #ifndef MOVIEEXPORTER_H
18 #define MOVIEEXPORTER_H
23 #include <QTemporaryDir>
24 #include "pencilerror.h"
35 QSize exportSize{ 0, 0 };
36 QString strCameraName;
47 std::function<
void(
float)> progress );
50 void cancel() { mCanceled =
true; }
53 Status assembleAudio(
const Object* obj, QString ffmpegPath, std::function<
void(
float )> progress );
54 Status generateImageSequence(
const Object* obj, std::function<
void(
float)> progress );
55 Status combineVideoAndAudio( QString ffmpegPath, QString strOutputFile );
57 Status twoPassEncoding( QString ffmpeg, QString strOutputFile );
58 Status convertVideoAgain( QString ffmpeg, QString strIn, QString strOut );
59 Status convertToGif( QString ffmpeg, QString strIn, QString strOut );
61 Status executeFFMpegCommand( QString strCmd );
64 QTemporaryDir mTempDir;
67 bool mCanceled =
false;
70 #endif // MOVIEEXPORTER_H