Using number of cores to set the number of threads

ffmpeg_4.4.2
Javernaut 5 years ago
parent 58d0eae517
commit 716d747b5a
  1. 8
      ffmpeg-android-maker.sh

@ -15,6 +15,12 @@ case "$OSTYPE" in
;; ;;
esac esac
if [[ $OSTYPE == "darwin"* ]]; then
NPROC=$(sysctl -n hw.physicalcpu)
else
NPROC=$(nproc)
fi
# Directories used by the script # Directories used by the script
BASE_DIR="$( cd "$( dirname "$0" )" && pwd )" BASE_DIR="$( cd "$( dirname "$0" )" && pwd )"
SOURCES_DIR=${BASE_DIR}/sources SOURCES_DIR=${BASE_DIR}/sources
@ -185,7 +191,7 @@ function assemble() {
--disable-bsfs --disable-bsfs
make clean make clean
make -j8 make -j${NPROC}
make install make install
# Saving stats about text relocation presence. # Saving stats about text relocation presence.

Loading…
Cancel
Save