X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Ftests%2Fdan.c;fp=src%2Ftests%2Fdan.c;h=d22f0a91867701b3c877d47ca4e736bec0da8b77;hb=d8eef875f19feb30549855d3695a91df72c5c60f;hp=208ee49eb6c194fdf52a106dff902b5be158b954;hpb=f2892649fc37814798758ad2da2bee85b17e2366;p=melted diff --git a/src/tests/dan.c b/src/tests/dan.c index 208ee49..d22f0a9 100644 --- a/src/tests/dan.c +++ b/src/tests/dan.c @@ -17,15 +17,31 @@ int main( int argc, char **argv ) file2 = argv[ 2 ]; // Start the consumer... - mlt_consumer consumer = mlt_factory_consumer( "bluefish", NULL ); + int vstd = mlt_video_standard_ntsc; + mlt_consumer consumer = mlt_factory_consumer( "bluefish", &vstd ); + mlt_properties_set_int( mlt_consumer_properties( consumer ), "video_standard", mlt_video_standard_ntsc ); // Create the producer(s) mlt_producer dv1 = mlt_factory_producer( "mcmpeg", file1 ); +#if 0 + // Connect the tractor to the consumer + 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_close( consumer ); + return 0; +#endif + //mlt_producer dv1 = producer_pixbuf_init( file1 ); //mlt_producer dv2 = producer_libdv_init( file2 ); //mlt_producer dv2 = mlt_factory_producer( "pixbuf", file2 ); mlt_producer dv2 = mlt_factory_producer( "pango", "Mutton Lettuce Tomato" ); + mlt_properties_set_int( mlt_producer_properties( dv2 ), "video_standard", mlt_video_standard_ntsc ); + mlt_properties_set_int( mlt_producer_properties( dv2 ), "bgcolor", 0x0000007f ); + mlt_properties_set_int( mlt_producer_properties( dv2 ), "pad", 8 ); // Register producers(s) with a multitrack object mlt_multitrack multitrack = mlt_multitrack_init( );