1 import net.sourceforge.mltpp.*;
6 System.loadLibrary("mltpp_java");
9 public static void main (String[] args) {
11 // Start the mlt system
14 // Set the output profile
15 Profile profile = new Profile( "" );
17 // Create the producer
18 Producer p = new Producer( profile, args[0], null );
22 p.set ("eof", "loop");
24 // Create the consumer
25 Consumer c = new Consumer( profile, "sdl", null);
27 // Turn off the default rescaling
28 c.set("rescale", "none");
30 // Connect the producer to the consumer
36 // Wait until the user stops the consumer
37 Object o = new Object();
38 while ( !c.is_stopped() ) {
42 } catch (InterruptedException e) {
51 System.out.println ("Unable to open " + args[0]);