Various compilation scripts & patches for Linux programs.
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.

38 lines
1.4 KiB

7 years ago
  1. --- a/src/frameplayer.cpp
  2. +++ b/src/frameplayer.cpp
  3. @@ -55,7 +55,7 @@
  4. qDebug() << "FramePlayer::openSource new video loaded: " << src;
  5. #if defined(Q_WS_X11)
  6. QString codec = codecName();
  7. - raw = (codec == "MJPG" || codec == "I420" || codec == "YUV4");
  8. + raw = (codec == "MJPG" || codec == "I420" || codec == "YUV4" || codec == "YUV4" || codec == "LIBX264" || codec == "MPEG4" || codec == "MSMPEG4" || codec == "LIBVPX" || codec == "MPEG2VIDEO" || codec == "FFV1");
  9. qDebug() << "codec name: " << codecName();
  10. #endif
  11. @@ -63,14 +63,6 @@
  12. frames = vcap.get(CV_CAP_PROP_FRAME_COUNT);
  13. qDebug() << "total frames: " << frames;
  14. -#if defined(Q_WS_X11)
  15. - if(frames > FRAME_LIMIT && !raw)
  16. - {
  17. - QMessageBox::critical(this, tr("Error"),tr("This file is coded with \"")+codec+tr("\" codec and contains more than ")+QString::number(FRAME_LIMIT)+tr(" frames. This codec is not supported for full-length videos yet, please cut your video or use other codec like motion JPEG or YUV4."));
  18. - close();
  19. - return false;
  20. - }
  21. -#endif
  22. interval = estimateInterval();
  23. if(!interval)
  24. interval = 40;
  25. --- a/src/frameplayer.h
  26. +++ b/src/frameplayer.h
  27. @@ -32,8 +32,6 @@
  28. #include "workspace.h"
  29. #include "ui_frameplayer.h"
  30. -#define FRAME_LIMIT 1800
  31. -
  32. using namespace cv;
  33. class FramePlayer : public QWidget, public Ui::FramePlayerForm