You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
677 B

  1. #ifndef FFMPEG_QUALITYCHECK_H
  2. #define FFMPEG_QUALITYCHECK_H
  3. #include <QObject>
  4. #include <QProcess>
  5. #include "models.h"
  6. typedef struct ffmpeg_quality_s
  7. {
  8. int program;
  9. //resolution
  10. int width;
  11. int height;
  12. }ffmpeg_quality_t;
  13. class ffmpeg_qualitycheck : public QObject
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit ffmpeg_qualitycheck(QObject *parent = nullptr);
  18. signals:
  19. void finished(QVector<ffmpeg_quality_t>);
  20. public slots:
  21. void start(stream_t);
  22. void cancel();
  23. private slots:
  24. void readyReadStandardOutput();
  25. private:
  26. QProcess *mFFmpegProcess;
  27. QVector<ffmpeg_quality_t> qualities;
  28. int currentProgram;
  29. };
  30. #endif // FFMPEG_QUALITYCHECK_H