Add support for Linux Homebrew

This commit is contained in:
q3aql 2023-11-01 20:24:52 +01:00
parent d4cc9909ee
commit bbc9846adf
20 changed files with 62 additions and 62 deletions

View File

@ -2,12 +2,12 @@
##################################################
# ks-av1 (ks-tools) - Convert video to AV1 codec #
# Date: 26-05-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
##################################################
VERSION="8.5-dev"
M_DATE="260523"
M_DATE="011023"
# 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"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 26-05-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
############################################################
VERSION="8.5-dev"
M_DATE="260523"
M_DATE="011023"
# 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"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 12-03-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
##################################################################################
VERSION="8.5-dev"
M_DATE="120323"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 26-05-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="260523"
M_DATE="011023"
# 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"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 18-03-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#######################################################################
VERSION="8.5-dev"
M_DATE="100323"
M_DATE="011023"
# 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: 11-03-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="110323"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 11-03-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#####################################################################
VERSION="8.5-dev"
M_DATE="110323"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 13-02-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#########################################################################
VERSION="8.5-dev"
M_DATE="130223"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 12-02-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
######################################################################
VERSION="8.5-dev"
M_DATE="120223"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 26-05-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="260523"
M_DATE="011023"
# 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"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"

View File

@ -2,12 +2,12 @@
###############################################################
# ks-mp4k (ks-tools) - Convert video to MP4 format (4K) #
# Date: 26-05-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="260523"
M_DATE="011023"
# 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"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"

View File

@ -2,12 +2,12 @@
###############################################################
# ks-mp4s (ks-tools) - Convert video to MP4 format (Series) #
# Date: 26-05-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="260523"
M_DATE="011023"
# 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"
check_bc_app_directories="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
set_rel="${1}"
input_video_file="${2}"
bc_found="1"

View File

@ -2,12 +2,12 @@
#################################################################################
# ks-mp4s-folder (ks-tools) - Convert videos from folder to MP4 format (Series) #
# Date: 12-02-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#################################################################################
VERSION="8.5-dev"
M_DATE="120223"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 13-02-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#############################################################################
VERSION="8.5-dev"
M_DATE="130223"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 12-02-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
############################################################################
VERSION="8.5-dev"
M_DATE="120223"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 12-03-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
########################################################################
VERSION="8.5-dev"
M_DATE="120323"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 12-03-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#########################################################################
VERSION="8.5-dev"
M_DATE="120323"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 22-05-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
##############################################################################
VERSION="8.5-dev"
M_DATE="220523"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 12-03-2023 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
#########################################################################
VERSION="8.5-dev"
M_DATE="120323"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/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: 04-02-2022 #
# Date: 01-10-2023 #
# Author: q3aql #
# Contact: q3aql@duck.com #
###############################################################
VERSION="8.5-dev"
M_DATE="040222"
M_DATE="011023"
# 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"
path_check="/usr/bin /bin /usr/local/bin ${HOME}/.local/bin /home/linuxbrew/.linuxbrew/bin"
dependencies="ffmpeg grep grep cut head tail tr"
dependencies_found=""
dependencies_not_found=""