echo " --disable-lavf disables libavformat support"
echo " --disable-ffms disables ffmpegsource support"
echo " --disable-gpac disables gpac support"
+echo " --disable-gpl disables GPL-only features"
echo " --disable-pthread disables multithreaded encoding"
echo " --disable-swscale disables swscale support"
echo " --disable-asm disables platform-specific assembly optimizations"
lavf="auto"
ffms="auto"
gpac="auto"
+gpl="yes"
pthread="auto"
swscale="auto"
asm="auto"
--disable-gpac)
gpac="no"
;;
+ --disable-gpl)
+ gpl="no"
+ ;;
--extra-asflags=*)
ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}"
;;
define BIT_DEPTH $bit_depth
+if [ $gpl = yes ]; then
+ define HAVE_GPL 1
+else
+ define HAVE_GPL 0
+fi
+
rm -f conftest*
# generate config files
VIS=$vis
HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
DEVNULL=$DEVNULL
+GPL=$gpl
EOF
if [ "$shared" = "yes" ]; then
EOF
filters="crop select_every"
+gpl_filters=""
[ $swscale = yes ] && filters="resize $filters"
+[ $gpl = yes ] && filters="$filters $gpl_filters"
cat > conftest.log <<EOF
Platform: $ARCH
lavf: $lavf
ffms: $ffms
gpac: $gpac
+gpl: $gpl
pthread: $pthread
filters: $filters
debug: $debug
#endif
#if HAVE_LAVF
+#undef DECLARE_ALIGNED
+#include <libavformat/avformat.h>
#include <libavutil/pixfmt.h>
#include <libavutil/pixdesc.h>
#endif
va_end( arg );
}
+static void print_version_info()
+{
+#ifdef X264_POINTVER
+ printf( "x264 "X264_POINTVER"\n" );
+#else
+ printf( "x264 0.%d.X\n", X264_BUILD );
+#endif
+ printf( "built on " __DATE__ ", " );
+#ifdef __GNUC__
+ printf( "gcc: " __VERSION__ "\n" );
+#else
+ printf( "using a non-gcc compiler\n" );
+#endif
+ printf( "configuration: --bit-depth=%d\n", BIT_DEPTH );
+ printf( "x264 license: " );
+#if HAVE_GPL
+ printf( "GPL version 2 or later\n" );
+#else
+ printf( "Non-GPL commercial\n" );
+#endif
+#if HAVE_LAVF
+ const char *license = avformat_license();
+ printf( "libavformat license: %s\n", license );
+ if( !strcmp( license, "nonfree and unredistributable" ) ||
+ (!HAVE_GPL && (!strcmp( license, "GPL version 2 or later" )
+ || !strcmp( license, "GPL version 3 or later" ))))
+ printf( "WARNING: This binary is unredistributable!\n" );
+#endif
+}
+
/****************************************************************************
* main:
****************************************************************************/
Help( &defaults, 2 );
exit(0);
case 'V':
-#ifdef X264_POINTVER
- printf( "x264 "X264_POINTVER"\n" );
-#else
- printf( "x264 0.%d.X\n", X264_BUILD );
-#endif
- printf( "built on " __DATE__ ", " );
-#ifdef __GNUC__
- printf( "gcc: " __VERSION__ "\n" );
-#else
- printf( "using a non-gcc compiler\n" );
-#endif
- printf( "configuration: --bit-depth=%d\n", BIT_DEPTH );
+ print_version_info();
exit(0);
case OPT_FRAMES:
param->i_frame_total = X264_MAX( atoi( optarg ), 0 );