Fix error message without Linux Homebrew installed

This commit is contained in:
q3aql 2023-11-02 19:45:59 +01:00
parent 4b4c314d88
commit 2ca3dc16d5
20 changed files with 65 additions and 65 deletions

View File

@ -2,12 +2,12 @@
##################################################
# ks-av1 (ks-tools) - Convert video to AV1 codec #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
##################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -51,7 +51,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -134,7 +134,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
############################################################
# ks-av1s (ks-tools) - Convert video to AV1 codec (Series) #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
############################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -51,7 +51,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -134,7 +134,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
##################################################################################
# ks-av1s-folder (ks-tools) - Convert videos from folder to AV1 (Codec) (Series) #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
##################################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Variables
tempFile="/tmp/ks-av1s-folder.txt"
@ -21,7 +21,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep find grep cut head tail cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
###############################################################
# ks-avi (ks-tools) - Convert video to AVI format #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -54,7 +54,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -142,7 +142,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
#######################################################################
# ks-conf (ks-tools) - Tool for create and modify configuration files #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#######################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Check cygwin alias (for Windows)
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then

View File

@ -2,12 +2,12 @@
###############################################################
# ks-crop (ks-tools) - Crop or change aspect ratio of a video #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -54,7 +54,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
#####################################################################
# ks-mix (ks-tools) - Extract video/audio and mix video/audio files #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#####################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -43,7 +43,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed cut head tail tr"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
#########################################################################
# ks-mp3 (ks-tools) - Convert video/audio file(s) to MP3 (Audio) Format #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#########################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Global parameters
dirTemp="/tmp"
@ -59,7 +59,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
######################################################################
# ks-mp3-album (ks-tools) - Convert folder album to MP3 Audio Format #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
######################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Variables
tempFile="/tmp/ks-mp4s-folder.txt"
@ -66,7 +66,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep find grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
###############################################################
# ks-mp4 (ks-tools) - Convert video to MP4 format #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -54,7 +54,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -142,7 +142,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
###############################################################
# ks-mp4k (ks-tools) - Convert video to MP4 format (4K) #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -54,7 +54,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -142,7 +142,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
###############################################################
# ks-mp4s (ks-tools) - Convert video to MP4 format (Series) #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Detect version ffmpeg for old releases
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
@ -54,7 +54,7 @@ fi
# Setting the correct resolution for the video file
# Sintaxis: set_resolution <resolution> <file>
function set_resolution() {
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"
@ -142,7 +142,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat bc"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
#################################################################################
# ks-mp4s-folder (ks-tools) - Convert videos from folder to MP4 format (Series) #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#################################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Variables
tempFile="/tmp/ks-mp4s-folder.txt"
@ -21,7 +21,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep find grep cut head tail cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
#############################################################################
# ks-oga (ks-tools) - Convert video/audio file(s) to OGA (OGG Audio) Format #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#############################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Global parameters
dirTemp="/tmp"
@ -59,7 +59,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep sed grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
############################################################################
# ks-oga-album (ks-tools) - Convert folder album to OGA (OGG Audio) Format #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
############################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Variables
tempFile="/tmp/ks-mp4s-folder.txt"
@ -66,7 +66,7 @@ else
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep find grep cut head tail tr cat"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
########################################################################
# ks-upa (ks-tools) - Upload audio file(s) to server with scp or rsync #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
########################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Global parameters.
dirTemp="/tmp"
@ -783,7 +783,7 @@ function showHelp() {
# Function to check if all the necessary tools
# for the execution are installed.
function checkDependencies() {
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
#########################################################################
# ks-upf (ks-tools) - Upload common file(s) to server with scp or rsync #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#########################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Global parameters.
dirTemp="/tmp"
@ -810,7 +810,7 @@ function showHelp() {
# Function to check if all the necessary tools
# for the execution are installed.
function checkDependencies() {
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
##############################################################################
# ks-upr (ks-tools) - Upload recursively file(s) to server with scp or rsync #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
##############################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Global parameters.
dirTemp="/tmp"
@ -764,7 +764,7 @@ function showHelp() {
# Function to check if all the necessary tools
# for the execution are installed.
function checkDependencies() {
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
#########################################################################
# ks-upv (ks-tools) - Upload videos file(s) to server with scp or rsync #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#########################################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Global parameters.
dirTemp="/tmp"
@ -783,7 +783,7 @@ function showHelp() {
# Function to check if all the necessary tools
# for the execution are installed.
function checkDependencies() {
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
dependencies_found=""
dependencies_not_found=""

View File

@ -2,12 +2,12 @@
###############################################################
# ks-avi (ks-tools) - Convert video to VOB DVD Format #
# Date: 01-10-2023 #
# Date: 02-11-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="011023"
M_DATE="021123"
# Basic parameters
rel_size="720x480"
@ -25,7 +25,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
fi
# Check if ffmpeg is installed
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix)/bin"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin $(brew --prefix 2> /dev/null)/bin"
dependencies="ffmpeg grep grep cut head tail tr"
dependencies_found=""
dependencies_not_found=""