Skip to content

Instantly share code, notes, and snippets.

@pliablepixels
Created June 6, 2016 23:14
Show Gist options
  • Save pliablepixels/c4ff905456b2543034b026e4aab55195 to your computer and use it in GitHub Desktop.
Save pliablepixels/c4ff905456b2543034b026e4aab55195 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"
//
//
int main( int argc, const char *argv[] )
{
debugInitialise( "easy-1", "", 5 );
Info( "Starting" );
ffmpegInit();
Application app;
NetworkAVInput input( "input", "rtsp://170.93.143.139:1935/rtplive/0b01b57900060075004d823633235daa" );
app.addThread( &input );
Listener listener;
app.addThread( &listener );
HttpController httpController( "watch", 9292 );
listener.addController( &httpController );
app.run();
}
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment