3 # Import required modules
6 # Not sure why the mltpp::Factory.init method fails...
7 mltpp
::mlt_factory_init( undef
);
10 $p = new mltpp
::Producer( $ARGV[0] );
12 if ( $p->is_valid( ) )
15 $p->set( "eof", "loop" );
18 $c = new mltpp
::FilteredConsumer( "sdl" );
20 # Turn of the default rescaling
21 $c->set( "rescale", "none" );
23 # Connect the producer to the consumer
26 $e = $c->setup_wait_for( "consumer-stopped" );
31 # Wait until the user stops the consumer
40 print "Unable to open $ARGV[0]\n";
43 mltpp
::mlt_factory_close( );