1 import net
.sourceforge
.mltpp
.*;
6 System
.loadLibrary("mltpp_java");
9 public static void main (String
[] args
) {
11 // Start the mlt system
14 // Create the producer
15 Producer p
= new Producer( args
[0], null
);
19 p
.set ("eof", "loop");
21 // Create the consumer
22 Consumer c
= new Consumer("sdl", null
);
24 // Turn off the default rescaling
25 c
.set("rescale", "none");
27 // Connect the producer to the consumer
33 // Wait until the user stops the consumer
34 Object o
= new Object();
35 while ( !c
.is_stopped() ) {
39 } catch (InterruptedException e
) {
48 System
.out
.println ("Unable to open " + args
[0]);