update readme and warning

This commit is contained in:
2026-03-29 11:26:02 -05:00
parent e2441ea693
commit 63f674e95a
2 changed files with 30 additions and 4 deletions
+26 -1
View File
@@ -24,12 +24,37 @@ Configuration is done through environment variables.
By default, this project will build a static `ffmpeg` binary in `./gitignore/sysroot/bin/ffmpeg`. By default, this project will build a static `ffmpeg` binary in `./gitignore/sysroot/bin/ffmpeg`.
The user-overridable compile options are: The user-overridable compile options are:
- `ENABLE`: configure what ffmpeg enables (default: libaom libass libvpx libxml2 libvmaf libx264 libx265 libwebp libopus librav1e libdav1d libvorbis libmp3lame libfribidi libfreetype libharfbuzz libopenjpeg libsvtav1_hdr libfontconfig ) - `ENABLE`: configure what ffmpeg enables (default:
lcms2
libaom
libass
libvpx
libjxl
libxml2
libvmaf
libx264
libx265
libwebp
libopus
librav1e
libdav1d
libbluray
libsnappy
libvorbis
libmp3lame
libfribidi
libfreetype
libharfbuzz
libopenjpeg
libsvtav1_hdr
libfontconfig
)
- `PREFIX`: prefix to install to, default is local install in ./gitignore/sysroot (default: local) - `PREFIX`: prefix to install to, default is local install in ./gitignore/sysroot (default: local)
- `STATIC`: static or shared build (default: ON) - `STATIC`: static or shared build (default: ON)
- `LTO`: enable link time optimization (default: ON) - `LTO`: enable link time optimization (default: ON)
- `CLEAN`: clean build directories before building (default: ON) - `CLEAN`: clean build directories before building (default: ON)
- `PGO`: enable profile guided optimization (default: OFF) - `PGO`: enable profile guided optimization (default: OFF)
- `PACKAGE`: package ffmpeg binaries to tarball in ./gitignore/package (default: OFF)
- `ARCH`: architecture type (x86-64-v{1,2,3,4}, armv8-a, etc) (default: native) - `ARCH`: architecture type (x86-64-v{1,2,3,4}, armv8-a, etc) (default: native)
- `OPT`: optimization level (0-3) (default: 3) - `OPT`: optimization level (0-3) (default: 3)
+4 -3
View File
@@ -705,9 +705,10 @@ build() {
local ffmpeg="$(command -v ffmpeg 2>/dev/null)" local ffmpeg="$(command -v ffmpeg 2>/dev/null)"
if [[ ${ffmpeg} != "${ffmpegBin}" ]]; then if [[ ${ffmpeg} != "${ffmpegBin}" ]]; then
echo echo
echo_warn "ffmpeg in path (${ffmpeg}) is not the built one (${ffmpegBin})" echo_warn "ffmpeg in PATH (${ffmpeg}) is not the built one (${ffmpegBin})"
echo_info "consider adding ${BINDIR} to \$PATH" local homeAwareBin="${BINDIR//${HOME}/\$HOME}"
echo "echo 'export PATH=\"${BINDIR}:\$PATH\"' >> ~/.bashrc" echo_info "consider adding ${homeAwareBin} to \$PATH"
echo "echo 'export PATH=\"${homeAwareBin}:\$PATH\"' >> ~/.bashrc"
fi fi
package || return 1 package || return 1