// 3rd line fallbacks
if ( result == NULL )
- result = mlt_factory_producer( "avformat", file );
+ result = mlt_factory_producer( "avformat", file +
+ ( strncmp( file, "avformat:", 9 ) ? 0 : 9 ) );
+
+ // 4th - allow explicit construction
+ if ( result == NULL )
+ {
+ char *arg = strchr( file, ':' );
+ if ( arg )
+ {
+ arg[0] = 0;
+ arg++;
+ }
+ result = mlt_factory_producer( file, arg );
+ }
return result;
}
mlt_properties_set_data( properties, "producer", producer, 0, ( mlt_destructor )mlt_producer_close, NULL );
// Now attach normalising filters
+ last = create_filter( tractor, last, "deinterlace" );
last = create_filter( tractor, last, "rescale" );
last = create_filter( tractor, last, "resize" );
last = create_filter( tractor, last, "resample" );
// Return the tractor's producer
return producer;
}
-