Git Product home page Git Product logo

shotdetect's Issues

Compilation Error

I attempted to build but seem to have an error with Hist::calculate() and Video::GetNextFrame().
Here is the output from the attempted build:

..../shotdetect-master/build# make -j 3
[ 12%] Built target logger
[ 25%] Built target option
[ 37%] [ 50%] Building CXX object src/CMakeFiles/shotdetect.dir/biThreshold/hist.cpp.o
Building CXX object src/CMakeFiles/shotdetect.dir/video.cpp.o
/..../shotdetect-master/src/biThreshold/hist.cpp: In member function ‘void Hist::calculate()’:
/..../shotdetect-master/src/biThreshold/hist.cpp:112:61: error: ‘cvCvtPixToPlane’ was not declared in this scope
       cvCvtPixToPlane(hsvframe, h_plane, s_plane, v_plane, 0);
                                                             ^
src/CMakeFiles/shotdetect.dir/build.make:169: recipe for target 'src/CMakeFiles/shotdetect.dir/biThreshold/hist.cpp.o' failed
make[2]: *** [src/CMakeFiles/shotdetect.dir/biThreshold/hist.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/jordan/Desktop/shotdetect-master/src/video.cpp: In member function ‘bool Video::GetNextFrame()’:
/home/jordan/Desktop/shotdetect-master/src/video.cpp:252:32: error: ‘AVFrame’ has no member named ‘av_frame_get_best_effort_timestamp’
     currentTimeStamp = pFrame->av_frame_get_best_effort_timestamp() * av_q2d(pFormatCtx->streams[videoStream]->time_base);
                                ^
src/CMakeFiles/shotdetect.dir/build.make:100: recipe for target 'src/CMakeFiles/shotdetect.dir/video.cpp.o' failed
make[2]: *** [src/CMakeFiles/shotdetect.dir/video.cpp.o] Error 1
CMakeFiles/Makefile2:163: recipe for target 'src/CMakeFiles/shotdetect.dir/all' failed
make[1]: *** [src/CMakeFiles/shotdetect.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.