diff --git a/README.md b/README.md index 4abe1c9..ba12cb5 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ With the scripts, you can: 1. Install required dependencies using `./scripts/install_deps.sh` 2. Build and install ffmpeg from source using `./scripts/build.sh` -3. Install an encoding script using `./scripts/recc_encode_install.sh -I` +3. Install an encoding script using `./scripts/recc_encode.sh -I` 4. Install a film-grain estimation script using `./scripts/estimate_fg.sh -I` 5. Benchmark the different encoders using `./scripts/benchmark.sh` diff --git a/scripts/build.sh b/scripts/build.sh index 9a00f4f..a498b1e 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Enable extended pattern matching for ?() and +() operators +shopt -s extglob + usage() { echo "./scripts/build.sh [options]" echo -e "\th:\tdisplay this help output" @@ -201,7 +204,7 @@ then fi # compilation job count -if commmand -v nproc 2> /dev/null ; then +if command -v nproc 2> /dev/null ; then THREADS="$(nproc)" fi diff --git a/scripts/recc_encode.sh b/scripts/recc_encode.sh index 63cd3b7..7118110 100755 --- a/scripts/recc_encode.sh +++ b/scripts/recc_encode.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Enable extended pattern matching for ?() and +() operators +shopt -s extglob + # this is simply my recommended encoding method. # do not take this as a holy grail.