mirror of
https://github.com/levogevo/ffmpeg-builder.git
synced 2026-07-21 21:45:21 +00:00
update get_crop install install_deps
This commit is contained in:
+2
-2
@@ -51,8 +51,8 @@ get_crop() {
|
|||||||
duration="$(get_duration "${file}")" || return 1
|
duration="$(get_duration "${file}")" || return 1
|
||||||
# don't care about decimal points
|
# don't care about decimal points
|
||||||
IFS='.' read -r duration _ <<<"${duration}"
|
IFS='.' read -r duration _ <<<"${duration}"
|
||||||
# get crop value for first half of input
|
# get crop value for first tenth of input
|
||||||
local timeEnc=$((duration / 20))
|
local timeEnc=$((duration / 10))
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
-y \
|
-y \
|
||||||
-hide_banner \
|
-hide_banner \
|
||||||
|
|||||||
+6
-5
@@ -170,15 +170,16 @@ check_for_req_pkgs() {
|
|||||||
if missing_cmd rustup; then
|
if missing_cmd rustup; then
|
||||||
echo_warn "installing rustup"
|
echo_warn "installing rustup"
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
# shellcheck disable=SC2016
|
fi
|
||||||
grep -q 'source "${HOME}/.cargo/env"' "${HOME}/.bashrc" ||
|
if missing_cmd cargo; then
|
||||||
echo 'source "${HOME}/.cargo/env"' >>"${HOME}/.bashrc"
|
|
||||||
# shellcheck disable=SC1091
|
|
||||||
source "${HOME}/.bashrc"
|
source "${HOME}/.bashrc"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
has_cmd cargo-cbuild || echo_if_fail cargo install cargo-c || return 1
|
if ! has_cmd cargo-cbuild; then
|
||||||
|
echo_info "installing cargo-c"
|
||||||
|
echo_if_fail cargo install cargo-c || return 1
|
||||||
|
fi
|
||||||
echo_pass "cargo-c is installed"
|
echo_pass "cargo-c is installed"
|
||||||
echo_pass "all required packages installed"
|
echo_pass "all required packages installed"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user