v1.5.t14
Added another debug clause for opencv videoio so it will provide even more debug information. Going back to implicitly defining FFMPEG as the videoio for opencv, turns out FFMPEG is the only real stable option to use when it comes to reading video files with opencv. Any other option would just severely limit codec and container support.
This commit is contained in:
parent
2e10d31ab6
commit
4667cf2e96
|
@ -4,6 +4,7 @@ if [ ! -d "/opt/mow" ]; then
|
|||
fi
|
||||
cp ./.build-mow/mow /opt/mow/bin
|
||||
printf "#!/bin/sh\n" > /opt/mow/run
|
||||
printf "export OPENCV_LOG_LEVEL=DEBUG\n" >> /opt/mow/run
|
||||
printf "export OPENCV_VIDEOIO_DEBUG=1\n" >> /opt/mow/run
|
||||
printf "/opt/mow/bin \$1 \$2 \$3\n" >> /opt/mow/run
|
||||
chmod +x /opt/mow/run
|
||||
|
|
|
@ -35,7 +35,7 @@ using namespace cv;
|
|||
using namespace std;
|
||||
using namespace std::filesystem;
|
||||
|
||||
#define APP_VER "1.5.t13"
|
||||
#define APP_VER "1.5.t14"
|
||||
#define APP_NAME "Motion Watch"
|
||||
|
||||
struct shared_t
|
||||
|
|
|
@ -102,7 +102,7 @@ bool moDetect(const string &buffFile, Mat &vidThumb, shared_t *share)
|
|||
|
||||
auto mod = false;
|
||||
|
||||
VideoCapture capture(buffFile.c_str());
|
||||
VideoCapture capture(buffFile.c_str(), CAP_FFMPEG);
|
||||
|
||||
if (capture.isOpened())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user