Guest User

Noob

a guest
Feb 15th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <mlt++/Mlt.h>
  2. using namespace Mlt;
  3.  
  4. int main(int argc, char **argv) {
  5.     Factory::init();
  6.     Profile profile;
  7.     Playlist list;
  8.     for (int i = 1; i < argc; i++) {
  9.         Producer p(profile, argv[i]);
  10.         if (p.is_valid())
  11.             list.append(p);
  12.     }
  13.     Consumer c(profile, NULL, "sdl");
  14.     c.connect(list);
  15.     c.run();
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment