补充7楼的:
###################################################################
echo. Select the build target system:
echo. 1 = both [32 bit and 64 bit]
echo. 2 = 32 bit build system
echo. 3 = 64 bit build system
###################################################################
Build FFmpeg/rtmpdump with which license?
echo. 1 = Non-free [unredistributable, but can include anything]
echo. 2 = GPLv3 [disables OpenSSL and FDK-AAC]
echo. 3 = GPLv2.1
echo. [Same disables as GPLv3 with addition of gmp, opencore codecs]
echo. 4 = LGPLv3
echo. [Disables x264, x265, XviD, GPL filters, etc.
echo. but reenables OpenSSL/FDK-AAC]
echo. 5 = LGPLv2.1 [same disables as LGPLv3 + GPLv2.1]
echo.
echo. If building for yourself, it's OK to choose non-free.
echo. If building to redistribute online, choose GPL or LGPL.
echo. If building to include in a GPLv2.1 binary, choose LGPLv2.1 or GPLv2.1.
echo. If you want to use FFmpeg together with closed source software, choose LGPL
echo. and follow instructions in
https://www.ffmpeg.org/legal.htmlecho.
echo. In the case of rtmpdump, since its binaries are GPL, it will be compiled
echo. with GnuTLS if LGPL is chosen, but if Non-free will use OpenSSL.
echo. If not building rtmpdump, but just librtmp ^(which is LGPL^) to use in FFmpeg,
echo. OpenSSL can be used.
echo.
echo. OpenSSL and FDK-AAC have licenses incompatible with GPL but compatible
echo. with LGPL, so they won't be disabled automatically if you choose LGPL.
###################################################################
echo. Build standalone binaries for libraries included in FFmpeg?
echo. eg. Compile opusenc.exe if --enable-libopus
echo. 1 = Yes
echo. 2 = No
###################################################################
echo. Build vpx [VP8/VP9/VP10 encoder]?
echo. 1 = Yes
echo. 2 = No
echo.
echo. Binaries being built depends on "standalone=y"
###################################################################
echo. Build aom [Alliance for Open Media codec]?
echo. 1 = Yes
echo. 2 = No
echo.
echo. Binaries being built depends on "standalone=y"
###################################################################
echo. Build x264 [H.264 encoder]?
echo. 1 = Lib/binary with 8 and 10-bit
echo. 2 = No
echo. 3 = Lib/binary with only 10-bit
echo. 4 = Lib/binary with 8 and 10-bit, and libavformat and ffms2
echo. 5 = Shared lib/binary with 8 and 10-bit
echo. 6 = Same as 4 with video codecs only ^(can reduce size by ~3MB^)
echo. 7 = Lib/binary with only 8-bit
echo.
echo. Binaries being built depends on "standalone=y" and are always static.
###################################################################
echo. Build x265 [H.265 encoder]?
echo. 1 = Lib/binary with Main, Main10 and Main12
echo. 2 = No
echo. 3 = Lib/binary with Main10 only
echo. 4 = Lib/binary with Main only
echo. 5 = Lib/binary with Main, shared libs with Main10 and Main12
echo. 6 = Same as 1 with XP support and non-XP compatible x265-numa.exe
echo. 7 = Lib/binary with Main12 only
echo.
echo. Binaries being built depends on "standalone=y"
###################################################################
echo. Build standalone Kvazaar?
echo. 1 = Yes
echo. 2 = No
###################################################################
echo. Build FLAC? [Free Lossless Audio Codec]
echo. 1 = Yes
echo. 2 = No
###################################################################
echo. Build FDK-AAC library and binary? [AAC-LC/HE/HEv2 codec]
echo. 1 = Yes
echo. 2 = No
echo.
echo. Note: FFmpeg's aac encoder is no longer experimental and considered equal or
echo. better in quality from 96kbps and above. It still doesn't support AAC-HE/HEv2
echo. so if you need that or want better quality at lower bitrates than 96kbps,
echo. use FDK-AAC.
###################################################################
echo. Build FAAC library and binary? [old, low-quality and nonfree AAC-LC codec]
echo. 1 = Yes
echo. 2 = No
###################################################################
echo. Build mediainfo binaries [Multimedia file information tool]?
echo. 1 = Yes
echo. 2 = No
###################################################################
echo. Build sox binaries [Sound processing tool]?
echo. 1 = Yes
echo. 2 = No
###################################################################
echo. Build FFmpeg binaries and libraries:
echo. 1 = Yes [static] [recommended]
echo. 2 = No
echo. 3 = Shared
echo. 4 = Both static and shared [shared goes to an isolated directory]
echo. 5 = Shared-only with some shared libs ^(libass, freetype and fribidi^)
echo.
echo. Note: Option 5 differs from 3 in that libass, freetype and fribidi are
echo. compiled shared so they take less space. This one isn't tested a lot and
echo. will fail with fontconfig enabled.
###################################################################
echo. Always build FFmpeg when libraries have been updated?
echo. 1 = Yes
echo. 2 = No
echo. 3 = Only build FFmpeg/mpv and missing dependencies
echo.
echo. FFmpeg is updated a lot so you only need to select this if you
echo. absolutely need updated external libraries in FFmpeg.
###################################################################
echo. Choose ffmpeg and mpv optional libraries?
echo. 1 = Yes
echo. 2 = No ^(Light build^)
echo. 3 = No ^(Mimic Zeranoe^)
echo. 4 = No ^(All available external libs^)
echo.
echo. Avoid the last one unless you're really want useless libraries you'll never use.
echo. Just because you can include a shitty codec no one uses doesn't mean you should.
echo.
echo. If you select yes, we will create files with the default options
echo. we use with FFmpeg and mpv. You can remove any that you don't need or prefix
echo. them with #
###################################################################
if not exist %build%\ffmpeg_options.txt (
(
echo.# Lines starting with this character are ignored
echo.
echo.# Built-in options, use --disable- to disable them
call :writeOption %ffmpeg_options_builtin%
echo.
echo.# Common options
call :writeOption %ffmpeg_options_basic%
echo.
echo.# Zeranoe
call :writeOption %ffmpeg_options_zeranoe%
echo.
echo.# Full
call :writeOption %ffmpeg_options_full%
)>%build%\ffmpeg_options.txt
echo -------------------------------------------------------------------------------
echo. File with default FFmpeg options has been created in
echo. %build%\ffmpeg_options.txt
echo.
echo. Edit it now or leave it unedited to compile according to defaults.
echo -------------------------------------------------------------------------------
pause
)
if not exist %build%\mpv_options.txt (
(
echo.# Lines starting with this character are ignored
echo.
echo.# Built-in options, use --disable- to disable them
call :writeOption %mpv_options_builtin%
echo.
echo.# Common options or overriden defaults
call :writeOption %mpv_options_basic%
echo.
echo.# Full
call :writeOption %mpv_options_full%
)>%build%\mpv_options.txt
echo -------------------------------------------------------------------------------
echo. File with default mpv options has been created in
echo. %build%\mpv_options.txt
echo.
echo. Edit it now or leave it unedited to compile according to defaults.
echo -------------------------------------------------------------------------------
###################################################################
echo. Build static mp4box [mp4 muxer/toolbox] binary?
echo. 1 = Yes
echo. 2 = No
###################################################################
echo. Build static rtmpdump binaries [rtmp tools]?
echo. 1 = Yes
echo. 2 = No
###################################################################
echo ######### UNSUPPORTED, IF IT BREAKS, IT BREAKS ################################
echo.
echo. Build static mplayer/mencoder binary?
echo. 1 = Yes
echo. 2 = No
echo.
echo. Don't bother opening issues about this if it breaks, I don't ****ing care
echo. about ancient unmaintained shit code. One more issue open about this that
echo. isn't the suite's fault and mplayer goes ****ing out.