3 # Import required modules
12 profile
= mltpp
.Profile( )
15 p
= mltpp
.Producer( profile
, sys
.argv
[1] )
19 c
= mltpp
.Consumer( profile
, "sdl" )
21 # Turn off the default rescaling
22 c
.set( "rescale", "none" )
24 # Connect the producer to the consumer
30 # Wait until the user stops the consumer
31 while c
.is_stopped( ) == 0:
35 print "Unable to open ", sys
.argv
[ 1 ]