[ $? != 0 ] && echo "Please install mlt" && exit 1
if [ "$1" = "all" ]
-then languages="perl php python ruby tcl"
+then languages="java perl php python ruby tcl"
elif [ "$1" != "" ]
then languages=$*
else echo "Usage: ./configure [ all | language * ]"
if [ -d "$i" ]
then
cd $i &&
- output=`./build 2>/dev/null`
+ output=`./build`
if [ $? == 0 ]
then echo "OK"
touch ../.$i
-import net.sourceforge.mlt.*;
+import org.mltframework.*;
public class Play {
path=`dirname $path`
# Change this as needed
- export JAVA_INCLUDE="-I$path/include -I$path/include/linux"
+ # export JAVA_INCLUDE="-I$path/include -I$path/include/linux"
- ln -sf ../mltpp.i .
+ ln -sf ../mlt.i
# Invoke swig
- mkdir -p src_swig/net/sourceforge/mlt
- swig -c++ -I../../mlt++ `pkg-config mlt-framework --cflags` -java -outdir src_swig/net/sourceforge/mlt -package net.sourceforge.mlt mltpp.i || exit $?
+ mkdir -p src_swig/org/mltframework
+ swig -c++ -I../../mlt++ -I../.. -java -outdir src_swig/org/mltframework -package org.mltframework mlt.i || exit $?
# Compile the wrapper
- g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../mlt++ `pkg-config mlt-framework --cflags` mlt_wrap.cxx $JAVA_INCLUDE || exit $?
+ g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx $JAVA_INCLUDE || exit $?
# Create the module
gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o libmlt_java.so || exit $?
/**
- * mltpp.i - Swig Bindings for mlt++
+ * mlt.i - Swig Bindings for mlt++
* Copyright (C) 2004-2005 Charles Yates
* Author: Charles Yates <charles.yates@pandora.be>
*
my $CXX = $ENV{'CXX'} || 'g++';
-system( "ln -sf ../mltpp.i ." );
-system( "swig -c++ -I../../mlt++ `pkg-config mlt-framework --cflags` -perl5 mltpp.i" );
+system( "ln -sf ../mlt.i" );
+system( "swig -c++ -I../../mlt++ -I../.. -perl5 mlt.i" );
WriteMakefile(
'NAME' => 'mlt',
- 'CC' => '${CXX} `pkg-config mlt-framework --cflags` -I../../mlt++',
+ 'CC' => '${CXX} -I../..',
'OPTIMIZE' => '-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386',
'LIBS' => ['-L../../mlt++ -lmlt++'],
'OBJECT' => 'mlt_wrap.o',
#!/bin/sh
-ln -s ../mltpp.i
-swig -c++ -I../../mlt+++ `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` mlt_wrap.cpp
-
+ln -sf ../mlt.i
+swig -c++ -I../../mlt++ -I../.. -php5 -noproxy mlt.i
+g++ -fPIC -DPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. `php-config --includes` mlt_wrap.cpp
+gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit $?
[ ! -d "$PYTHON_INCLUDE" ] && echo python development missing && exit 1
- ln -sf ../mltpp.i .
+ ln -sf ../mlt.i
# Invoke swig
- swig -c++ -I../../mlt++ `pkg-config mlt-framework --cflags` -python mltpp.i || exit $?
+ swig -c++ -I../../mlt++ -I../.. -python mlt.i || exit $?
# Compile the wrapper
- g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread `pkg-config mlt-framework --cflags` -I$PYTHON_INCLUDE mlt_wrap.cxx || exit $?
+ g++ -fPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. -I$PYTHON_INCLUDE mlt_wrap.cxx || exit $?
# Create the module
gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o _mlt.so || exit $?
#!/usr/bin/env ruby
require 'mkmf'
-system( "ln -sf ../mltpp.i mltpp.i" )
-system( "swig -c++ -ruby -I../../mlt++ `pkg-config mlt-framework --cflags` mltpp.i" )
-$CFLAGS += " -I../../mlt++ `pkg-config mlt-framework --cflags`"
+system( "ln -sf ../mlt.i" )
+system( "swig -c++ -ruby -I../../mlt++ -I../.. mlt.i" )
+$CFLAGS += "-I../.."
$LDFLAGS += " -L../../mlt++ -lmlt++"
create_makefile('mlt')
system( 'make' )
require 'mlt'
# Create the mlt system
-mlt::Factory::init
+Mlt::Factory::init
# Establish the mlt profile
-profile = mlt::Profile.new
+profile = Mlt::Profile.new
# Get and check the argument
file = ARGV.shift
raise "Usage: test.rb file" if file.nil?
# Create the producer
-producer = mlt::Factory::producer( profile, file )
+producer = Mlt::Factory::producer( profile, file )
raise "Unable to load #{file}" if !producer.is_valid
# Create the consumer
-consumer = mlt::Consumer.new( profile, "sdl" )
+consumer = Mlt::Consumer.new( profile, "sdl" )
raise "Unable to open sdl consumer" if !consumer.is_valid
# Turn off the default rescaling
require 'mlt'
# Create the mlt system
-mlt::Factory::init
+Mlt::Factory::init
# Establish the mlt profile
-profile = mlt::Profile.new( "quarter_pal" )
+profile = Mlt::Profile.new( "quarter_pal" )
# Get and check the argument
file = ARGV.shift
raise "Usage: thumbs.rb file name [ size ]" if file.nil? || name.nil?
# Create the producer
-producer = mlt::Producer.new( profile, file )
+producer = Mlt::Producer.new( profile, file )
raise "Unable to load #{file}" if !producer.is_valid
# Construct the playlist
-playlist = mlt::Playlist.new( )
+playlist = Mlt::Playlist.new( )
# Get the out point
out = producer.get_int( "out" );
[ 0, 0.25, 0.5, 0.75, 1 ].each { |x| playlist.append( producer, Integer(x*out), Integer(x*out) ) }
# Create the thumb nail generator
-generator = mlt::Consumer.new( profile, "avformat", "#{name}%d.jpg" )
+generator = Mlt::Consumer.new( profile, "avformat", "#{name}%d.jpg" )
generator.set( "real_time", "0" )
generator.set( "progressive", "1" )
generator.set( "s", size )
# Connect the consumer
generator.connect( playlist );
generator.run
-
if [ "$path" != "" ]
then
- ln -sf ../mltpp.i .
+ ln -sf ../mlt.i
# Invoke swig
- swig -c++ -I../../mlt++ `pkg-config mlt-framework --cflags` -tcl mltpp.i || exit 1
+ swig -c++ -I../../mlt++ -I../.. -tcl mlt.i || exit 1
# Compile the wrapper
- g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../mlt++ `pkg-config mlt-framework --cflags` mlt_wrap.cxx || exit 1
+ g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../.. mlt_wrap.cxx || exit 1
# Create the module
gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit 1
#!/usr/bin/env tclsh
load mlt.so
-mlt.Factory.init null
+Factory_init
set profile [Profile]
set arg1 [lindex $argv 0]
-set p [factory_producer $profile loader $arg1]
-set c [factory_consumer $profile sdl ""]
-set r [mlt_consumer_properties $c]
-mlt_properties_set $r "rescale" "none"
-consumer_connect $c $p
-mlt_consumer_start $c
-while { ![mlt_consumer_is_stopped $c] } {
+set p [Factory_producer $profile loader $arg1]
+set c [Factory_consumer $profile sdl ""]
+Properties_set $c "rescale" "none"
+Consumer_connect $c $p
+Consumer_start $c
+while { ![Consumer_is_stopped $c] } {
after 1000
}
-mlt_consumer_close $c
-mlt_producer_close $p
-factory_close
+delete_Consumer $c
+delete_Producer $p
+Factory_close