swig/{java,python,tcl}/build: fix linking error __stack_chk_fail_local.
[melted] / mlt++ / swig / python / play.py
1 #!/usr/bin/env python
2
3 # Import required modules
4 import mltpp
5 import time
6 import sys
7
8 # Start the mlt system
9 mltpp.Factory().init( )
10
11 # Establish a profile
12 profile = mltpp.Profile( )
13
14 # Create the producer
15 p = mltpp.Producer( profile, sys.argv[1] )
16
17 if p:
18 # Create the consumer
19 c = mltpp.Consumer( profile, "sdl" )
20
21 # Turn off the default rescaling
22 c.set( "rescale", "none" )
23
24 # Connect the producer to the consumer
25 c.connect( p )
26
27 # Start the consumer
28 c.start( )
29
30 # Wait until the user stops the consumer
31 while c.is_stopped( ) == 0:
32 time.sleep( 1 )
33 else:
34 # Diagnostics
35 print "Unable to open ", sys.argv[ 1 ]
36