--avformat-ldextra=libs - Provide additional libs to link with
--avformat-suffix=suff - Specify a custom suffix for an ffmpeg shared build
--avformat-swscale - Use ffmpeg libswcale instead of img_convert
+ --avformat-no-codecs - Disable the producer and consumer to avoid the FFmpeg codecs
NOTE: The recommended version of FFmpeg is SVN-r$svn_rev.
export svn_ffmpeg_extra=
export avformat_suffix=
export swscale=
+ export codecs=true
for i in "$@"
do
--avformat-suffix=* ) avformat_suffix="${i#--avformat-suffix=}" ;;
--avformat-swscale ) swscale=true ;;
--avformat-swscaler ) swscale=true ;;
+ --avformat-no-codecs ) codecs=false ;;
esac
done
echo "EXTRA_LIBS=$extra_libs" >> config.mak
echo "AVFORMAT_SUFFIX=$avformat_suffix" >> config.mak
+ [ "$codecs" = "true" ] && echo "CODECS=1" >> config.mak
+ exit 0
fi
static void *create_service( mlt_profile profile, mlt_service_type type, const char *id, void *arg )
{
avformat_init( );
+#ifdef CODECS
if ( !strcmp( id, "avformat" ) )
{
if ( type == producer_type )
return producer_avformat_init( profile, arg );
else if ( type == consumer_type )
- return consumer_avformat_init( profile, arg );
+ return consumer_avformat_init( profile, arg );
}
+#endif
if ( !strcmp( id, "avcolour_space" ) )
return filter_avcolour_space_init( arg );
if ( !strcmp( id, "avdeinterlace" ) )
MLT_REPOSITORY
{
+#ifdef CODECS
MLT_REGISTER( consumer_type, "avformat", create_service );
MLT_REGISTER( producer_type, "avformat", create_service );
+ MLT_REGISTER_METADATA( producer_type, "avformat", avformat_metadata, NULL );
+#endif
MLT_REGISTER( filter_type, "avcolour_space", create_service );
MLT_REGISTER( filter_type, "avcolor_space", create_service );
MLT_REGISTER( filter_type, "avdeinterlace", create_service );
MLT_REGISTER( filter_type, "avresample", create_service );
-
- MLT_REGISTER_METADATA( producer_type, "avformat", avformat_metadata, NULL );
}