2 # -*- coding: utf-8 -*-
4 # Import required modules
13 profile = mlt.Profile( )
16 p = mlt.Producer( profile, sys.argv[1] )
20 c = mlt.Consumer( profile, "sdl" )
22 # Turn off the default rescaling
23 c.set( "rescale", "none" )
25 # Connect the producer to the consumer
31 # Wait until the user stops the consumer
32 while c.is_stopped( ) == 0:
36 print "Unable to open ", sys.argv[ 1 ]