2 #include <framework/mlt.h>
9 int main( int argc
, char **argv
)
11 mlt_properties p
= mlt_properties_parse_yaml( argv
[1] );
12 mlt_properties q
= mlt_properties_new();
13 mlt_properties_set_data( q
, "metadata", p
, 0, ( mlt_destructor
)mlt_properties_close
, ( mlt_serialiser
)mlt_properties_serialise_yaml
);
14 printf( "%s", mlt_properties_get( q
, "metadata" ) );
15 mlt_properties_close( q
);
17 mlt_repository repo
= mlt_factory_init( NULL
);
18 mlt_properties metadata
= mlt_repository_metadata( repo
, producer_type
, "avformat" );
21 char *s
= mlt_properties_serialise_yaml( metadata
);