git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1325
d19143bc-622f-0410-bfdd-
b5b2a6649095
[ $? != 0 ] && echo "Please install mlt" && exit 1
if [ "$1" = "all" ]
-then languages="perl python ruby tcl"
+then languages="perl php python ruby tcl"
elif [ "$1" != "" ]
then languages=$*
else echo "Usage: ./configure [ all | language * ]"
exit 0
fi
-for i in perl python ruby tcl
+for i in perl php python ruby tcl
do
rm -f .$i
done
--- /dev/null
+#!/bin/sh
+
+ln -s ../mltpp.i
+swig -c++ -I../../src `pkg-config --cflags mlt-framework` -php5 -noproxy mltpp.i
+g++ -fPIC -DPIC -D_GNU_SOURCE -c -rdynamic -pthread `pkg-config --cflags mlt-framework` `php-config --includes` mltpp_wrap.cpp
+
--- /dev/null
+<?php
+$filename = $argv[1];
+dl("mltpp.so");
+mlt_factory_init(NULL);
+$profile = new_profile("dv_ntsc");
+$p = new_producer( $profile, $filename );
+if ( $p ) {
+ $c = new_consumer( $profile, "sdl" );
+ consumer_connect( $c, $p );
+ $e = properties_setup_wait_for( $c, "consumer-stopped" );
+ consumer_start( $c );
+ properties_wait_for( $c, $e );
+ consumer_stop( $c );
+ $e = NULL;
+ $c = NULL;
+}
+$p = NULL;
+$profile = NULL;
+mlt_factory_close();
+?>
+