Created
June 6, 2016 19:49
-
-
Save pliablepixels/2de84be7fefd98186cc8068d106ab9f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../base/zmApp.h" | |
#include "../base/zmListener.h" | |
#include "../providers/zmNetworkAVInput.h" | |
#include "../processors/zmMotionDetector.h" | |
#include "../processors/zmQuadVideo.h" | |
#include "../protocols/zmHttpController.h" | |
#include "../libgen/libgenDebug.h" | |
// | |
// Run motion detection on a saved file, provide debug images in quad mode over HTTP | |
// | |
int main( int argc, const char *argv[] ) | |
{ | |
debugInitialise( "example6", "", 5 ); | |
Info( "Starting" ); | |
ffmpegInit(); | |
Application app; | |
NetworkAVInput input( "input", "/tmp/movie.mp4" ); | |
app.addThread( &input ); | |
Listener listener; | |
app.addThread( &listener ); | |
HttpController httpController( "watch", 8080 ); | |
listener.addController( &httpController ); | |
app.run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment