mirror of
https://github.com/levogevo/ffmpeg-builder.git
synced 2026-01-15 19:06:17 +00:00
bandaid OOM, ensure mkvtoolnix
This commit is contained in:
@@ -925,6 +925,8 @@ meta_configure_build() {
|
|||||||
"${configureFlags[@]}" \
|
"${configureFlags[@]}" \
|
||||||
"${addFlags[@]}" || return 1
|
"${addFlags[@]}" || return 1
|
||||||
# build
|
# build
|
||||||
|
# attempt to build twice since build can fail due to OOM
|
||||||
|
ccache make -j"${JOBS}" ||
|
||||||
ccache make -j"${JOBS}" || return 1
|
ccache make -j"${JOBS}" || return 1
|
||||||
# install
|
# install
|
||||||
local destdir="${PWD}/fb-local-install"
|
local destdir="${PWD}/fb-local-install"
|
||||||
|
|||||||
@@ -139,11 +139,14 @@ gen_video() {
|
|||||||
'2160p') resolution='3840x2160' ;;
|
'2160p') resolution='3840x2160' ;;
|
||||||
'grain=yes') vf+=",noise=alls=15:allf=t+u" ;;
|
'grain=yes') vf+=",noise=alls=15:allf=t+u" ;;
|
||||||
'hdr=yes')
|
'hdr=yes')
|
||||||
vf+=",setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc"
|
local colorPrimaries='bt2020'
|
||||||
|
local colorTrc='smpte2084'
|
||||||
|
local colorspace='bt2020nc'
|
||||||
|
vf+=",setparams=color_primaries=${colorPrimaries}:color_trc=${colorTrc}:colorspace=${colorspace}"
|
||||||
addFlags+=(
|
addFlags+=(
|
||||||
-color_primaries bt2020
|
-color_primaries "${colorPrimaries}"
|
||||||
-color_trc smpte2084
|
-color_trc "${colorTrc}"
|
||||||
-colorspace bt2020nc
|
-colorspace "${colorspace}"
|
||||||
-metadata:s:v:0 "mastering_display_metadata=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)"
|
-metadata:s:v:0 "mastering_display_metadata=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)"
|
||||||
-metadata:s:v:0 "content_light_level=1000,400"
|
-metadata:s:v:0 "content_light_level=1000,400"
|
||||||
)
|
)
|
||||||
@@ -152,7 +155,7 @@ gen_video() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
ffmpeg -y \
|
echo_if_fail ffmpeg -y \
|
||||||
-hide_banner \
|
-hide_banner \
|
||||||
-f lavfi \
|
-f lavfi \
|
||||||
-i "testsrc2=size=${resolution}:rate=24:duration=5" \
|
-i "testsrc2=size=${resolution}:rate=24:duration=5" \
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ print_req_pkgs() {
|
|||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
local pacman_pkgs=(
|
local pacman_pkgs=(
|
||||||
"${common_linux_pkgs[@]}" base-devel
|
"${common_linux_pkgs[@]}" base-devel
|
||||||
python-pipx ninja lld
|
python-pipx ninja lld mkvtoolnix-cli
|
||||||
)
|
)
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
local dnf_pkgs=(
|
local dnf_pkgs=(
|
||||||
@@ -82,6 +82,7 @@ print_req_pkgs() {
|
|||||||
libstdc++-static libstdc++-devel
|
libstdc++-static libstdc++-devel
|
||||||
llvm-cmake-utils llvm-devel
|
llvm-cmake-utils llvm-devel
|
||||||
llvm-static compiler-rt lld
|
llvm-static compiler-rt lld
|
||||||
|
mkvtoolnix
|
||||||
)
|
)
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
local pkg_pkgs=(
|
local pkg_pkgs=(
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ echo_if_fail() {
|
|||||||
|
|
||||||
if ! test ${retval} -eq 0; then
|
if ! test ${retval} -eq 0; then
|
||||||
echo
|
echo
|
||||||
echo_fail "command failed:"
|
echo_fail "command failed with ${retval}:"
|
||||||
printf "%s\n" "${cmdEvalLines[@]}"
|
printf "%s\n" "${cmdEvalLines[@]}"
|
||||||
echo_warn "command stdout:"
|
echo_warn "command stdout:"
|
||||||
tail -n 32 "${out}"
|
tail -n 32 "${out}"
|
||||||
|
|||||||
Reference in New Issue
Block a user