Skip to content

Instantly share code, notes, and snippets.

@pliablepixels
Created June 6, 2016 19:49
Show Gist options
  • Save pliablepixels/2de84be7fefd98186cc8068d106ab9f4 to your computer and use it in GitHub Desktop.
Save pliablepixels/2de84be7fefd98186cc8068d106ab9f4 to your computer and use it in GitHub Desktop.
#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