X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Ftests%2Fdan.c;h=8f0dca5dd88091bb66128b3f4a0e3ded117c577d;hb=0b288164cbeb9a3c98107d439d86844be13ba910;hp=b33cb7e89bbe039f18dc60fbf537797cebbe10da;hpb=41cbc901f138ce1ba5ed3cbde5942b91d2b803a0;p=melted diff --git a/src/tests/dan.c b/src/tests/dan.c index b33cb7e..8f0dca5 100644 --- a/src/tests/dan.c +++ b/src/tests/dan.c @@ -19,22 +19,24 @@ int main( int argc, char **argv ) // Start the consumer... int vstd = mlt_video_standard_ntsc; //mlt_consumer consumer = mlt_factory_consumer( "bluefish", &vstd ); - mlt_consumer consumer = mlt_factory_consumer( "sdl", "NTSC" ); + mlt_consumer consumer = mlt_factory_consumer( "westley", NULL ); // Create the producer(s) - mlt_producer dv1 = mlt_factory_producer( "mcdv", file1 ); - mlt_producer_set_in_and_out( dv1, 300, 305 ); - - mlt_producer dv2 = mlt_factory_producer( "mcdv", file2 ); + mlt_producer dv1 = mlt_factory_producer( "westley", file1 ); + //mlt_producer_set_in_and_out( dv1, 0, 5 ); + + mlt_producer dv2 = mlt_factory_producer( "libdv", file2 ); //mlt_producer_set_in_and_out( dv2, 10.0, 30.0 ); -#if 0 +#if 1 // Connect the consumer to the producer - mlt_consumer_connect( consumer, mlt_producer_service( dv2 ) ); + mlt_consumer_connect( consumer, mlt_producer_service( dv1 ) ); // Do stuff until we're told otherwise... - fprintf( stderr, "Press return to continue\n" ); - fgets( temp, 132, stdin ); + mlt_consumer_start( consumer ); +// fprintf( stderr, "Press return to continue\n" ); +// fgets( temp, 132, stdin ); + mlt_consumer_stop( consumer ); mlt_consumer_close( consumer ); return 0; #endif @@ -56,6 +58,7 @@ int main( int argc, char **argv ) mlt_playlist playlist1 = mlt_playlist_init(); mlt_playlist_append( playlist1, dv1 ); + mlt_playlist_blank( playlist1, 1.0 ); mlt_playlist playlist2 = mlt_playlist_init(); mlt_playlist_blank( playlist2, 3.0 ); @@ -75,7 +78,7 @@ int main( int argc, char **argv ) mlt_transition transition = mlt_factory_transition( "luma", NULL ); mlt_transition_connect( transition, mlt_multitrack_service( multitrack ), 0, 1 ); mlt_transition_set_in_and_out( transition, 3.0, 5.0 ); - mlt_properties_set( mlt_transition_properties( transition ), "filename", "clock.pgm" ); + //mlt_properties_set( mlt_transition_properties( transition ), "filename", "clock.pgm" ); mlt_properties_set_double( mlt_transition_properties( transition ), "softness", 0.1 ); // Buy a tractor and connect it to the filter