Skip to content

Commit a23a5be

Browse files
committed
more cpus the better
1 parent 885ec55 commit a23a5be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cross_compile_ffmpeg.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ while true; do
12971297
-h | --help ) echo "available options [with defaults]:
12981298
--build-ffmpeg-shared=n
12991299
--build-ffmpeg-static=y
1300-
--gcc-cpu-count=1 [number of cpu cores set it higher than 1 if you have multiple cores and > 1GB RAM, this speeds up cross compiler build. FFmpeg build uses number of cores regardless.]
1300+
--gcc-cpu-count=number_of_cores_on_box [number of cpu cores set it higher than 1 if you have multiple cores and > 1GB RAM, this speeds up cross compiler build. FFmpeg build uses number of cores no matter what]
13011301
--disable-nonfree=y (set to n to include nonfree like libfdk-aac)
13021302
--sandbox-ok=n [skip sandbox prompt if y]
13031303
--rebuild-compilers=y (prompts you which compilers to build, even if you already have some)
@@ -1332,8 +1332,8 @@ while true; do
13321332
export CFLAGS="${1#*=}"; original_cflags="${1#*=}"; echo "setting cflags as $original_cflags"; shift ;;
13331333
--build-vlc=* ) build_vlc="${1#*=}"; shift ;;
13341334
--disable-nonfree=* ) disable_nonfree="${1#*=}"; shift ;;
1335-
-d ) gcc_cpu_count=2; disable_nonfree="y"; sandbox_ok="y"; build_choice="multi"; git_get_latest="n" ; shift ;;
1336-
--defaults ) gcc_cpu_count=2; disable_nonfree="y"; sandbox_ok="y"; build_choice="multi"; git_get_latest="n" ; shift ;;
1335+
-d ) gcc_cpu_count=$cpu_count; disable_nonfree="y"; sandbox_ok="y"; build_choice="multi"; git_get_latest="n" ; shift ;;
1336+
--defaults ) gcc_cpu_count=$cpu_count; disable_nonfree="y"; sandbox_ok="y"; build_choice="multi"; git_get_latest="n" ; shift ;;
13371337
--build-choice=* ) build_choice="${1#*=}"; shift ;;
13381338
--build-ffmpeg-static=* ) build_ffmpeg_static="${1#*=}"; shift ;;
13391339
--build-ffmpeg-shared=* ) build_ffmpeg_shared="${1#*=}"; shift ;;

0 commit comments

Comments
 (0)