Fix error message without Linux Homebrew installed
This commit is contained in:
parent
4b4c314d88
commit
2ca3dc16d5
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
# ks-av1 (ks-tools) - Convert video to AV1 codec #
|
# ks-av1 (ks-tools) - Convert video to AV1 codec #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
##################################################
|
##################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Detect version ffmpeg for old releases
|
# Detect version ffmpeg for old releases
|
||||||
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
|
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
|
# Setting the correct resolution for the video file
|
||||||
# Sintaxis: set_resolution <resolution> <file>
|
# Sintaxis: set_resolution <resolution> <file>
|
||||||
function set_resolution() {
|
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}"
|
set_rel="${1}"
|
||||||
input_video_file="${2}"
|
input_video_file="${2}"
|
||||||
bc_found="1"
|
bc_found="1"
|
||||||
|
@ -134,7 +134,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat bc"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
# ks-av1s (ks-tools) - Convert video to AV1 codec (Series) #
|
# ks-av1s (ks-tools) - Convert video to AV1 codec (Series) #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
############################################################
|
############################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Detect version ffmpeg for old releases
|
# Detect version ffmpeg for old releases
|
||||||
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
|
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
|
# Setting the correct resolution for the video file
|
||||||
# Sintaxis: set_resolution <resolution> <file>
|
# Sintaxis: set_resolution <resolution> <file>
|
||||||
function set_resolution() {
|
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}"
|
set_rel="${1}"
|
||||||
input_video_file="${2}"
|
input_video_file="${2}"
|
||||||
bc_found="1"
|
bc_found="1"
|
||||||
|
@ -134,7 +134,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat bc"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
# ks-av1s-folder (ks-tools) - Convert videos from folder to AV1 (Codec) (Series) #
|
# ks-av1s-folder (ks-tools) - Convert videos from folder to AV1 (Codec) (Series) #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
##################################################################################
|
##################################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
tempFile="/tmp/ks-av1s-folder.txt"
|
tempFile="/tmp/ks-av1s-folder.txt"
|
||||||
|
@ -21,7 +21,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep find grep cut head tail cat"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
# ks-avi (ks-tools) - Convert video to AVI format #
|
# ks-avi (ks-tools) - Convert video to AVI format #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
###############################################################
|
###############################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Detect version ffmpeg for old releases
|
# Detect version ffmpeg for old releases
|
||||||
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
|
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
|
# Setting the correct resolution for the video file
|
||||||
# Sintaxis: set_resolution <resolution> <file>
|
# Sintaxis: set_resolution <resolution> <file>
|
||||||
function set_resolution() {
|
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}"
|
set_rel="${1}"
|
||||||
input_video_file="${2}"
|
input_video_file="${2}"
|
||||||
bc_found="1"
|
bc_found="1"
|
||||||
|
@ -142,7 +142,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat bc"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# ks-conf (ks-tools) - Tool for create and modify configuration files #
|
# ks-conf (ks-tools) - Tool for create and modify configuration files #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
#######################################################################
|
#######################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Check cygwin alias (for Windows)
|
# Check cygwin alias (for Windows)
|
||||||
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
# ks-crop (ks-tools) - Crop or change aspect ratio of a video #
|
# ks-crop (ks-tools) - Crop or change aspect ratio of a video #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
###############################################################
|
###############################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Detect version ffmpeg for old releases
|
# Detect version ffmpeg for old releases
|
||||||
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
|
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
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# ks-mix (ks-tools) - Extract video/audio and mix video/audio files #
|
# ks-mix (ks-tools) - Extract video/audio and mix video/audio files #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
#####################################################################
|
#####################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Detect version ffmpeg for old releases
|
# Detect version ffmpeg for old releases
|
||||||
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
|
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
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed cut head tail tr"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# ks-mp3 (ks-tools) - Convert video/audio file(s) to MP3 (Audio) Format #
|
# ks-mp3 (ks-tools) - Convert video/audio file(s) to MP3 (Audio) Format #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Global parameters
|
# Global parameters
|
||||||
dirTemp="/tmp"
|
dirTemp="/tmp"
|
||||||
|
@ -59,7 +59,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# ks-mp3-album (ks-tools) - Convert folder album to MP3 Audio Format #
|
# ks-mp3-album (ks-tools) - Convert folder album to MP3 Audio Format #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
######################################################################
|
######################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
tempFile="/tmp/ks-mp4s-folder.txt"
|
tempFile="/tmp/ks-mp4s-folder.txt"
|
||||||
|
@ -66,7 +66,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep find grep cut head tail tr cat"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
# ks-mp4 (ks-tools) - Convert video to MP4 format #
|
# ks-mp4 (ks-tools) - Convert video to MP4 format #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
###############################################################
|
###############################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Detect version ffmpeg for old releases
|
# Detect version ffmpeg for old releases
|
||||||
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
|
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
|
# Setting the correct resolution for the video file
|
||||||
# Sintaxis: set_resolution <resolution> <file>
|
# Sintaxis: set_resolution <resolution> <file>
|
||||||
function set_resolution() {
|
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}"
|
set_rel="${1}"
|
||||||
input_video_file="${2}"
|
input_video_file="${2}"
|
||||||
bc_found="1"
|
bc_found="1"
|
||||||
|
@ -142,7 +142,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat bc"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
# ks-mp4k (ks-tools) - Convert video to MP4 format (4K) #
|
# ks-mp4k (ks-tools) - Convert video to MP4 format (4K) #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
###############################################################
|
###############################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Detect version ffmpeg for old releases
|
# Detect version ffmpeg for old releases
|
||||||
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
|
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
|
# Setting the correct resolution for the video file
|
||||||
# Sintaxis: set_resolution <resolution> <file>
|
# Sintaxis: set_resolution <resolution> <file>
|
||||||
function set_resolution() {
|
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}"
|
set_rel="${1}"
|
||||||
input_video_file="${2}"
|
input_video_file="${2}"
|
||||||
bc_found="1"
|
bc_found="1"
|
||||||
|
@ -142,7 +142,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat bc"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
# ks-mp4s (ks-tools) - Convert video to MP4 format (Series) #
|
# ks-mp4s (ks-tools) - Convert video to MP4 format (Series) #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
###############################################################
|
###############################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Detect version ffmpeg for old releases
|
# Detect version ffmpeg for old releases
|
||||||
ffmpeg_version=$(ffmpeg -version 2>&1 | grep version | head -1 | cut -d " " -f 3 | cut -d "." -f 1)
|
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
|
# Setting the correct resolution for the video file
|
||||||
# Sintaxis: set_resolution <resolution> <file>
|
# Sintaxis: set_resolution <resolution> <file>
|
||||||
function set_resolution() {
|
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}"
|
set_rel="${1}"
|
||||||
input_video_file="${2}"
|
input_video_file="${2}"
|
||||||
bc_found="1"
|
bc_found="1"
|
||||||
|
@ -142,7 +142,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat bc"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
# ks-mp4s-folder (ks-tools) - Convert videos from folder to MP4 format (Series) #
|
# ks-mp4s-folder (ks-tools) - Convert videos from folder to MP4 format (Series) #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
#################################################################################
|
#################################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
tempFile="/tmp/ks-mp4s-folder.txt"
|
tempFile="/tmp/ks-mp4s-folder.txt"
|
||||||
|
@ -21,7 +21,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep find grep cut head tail cat"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# ks-oga (ks-tools) - Convert video/audio file(s) to OGA (OGG Audio) Format #
|
# ks-oga (ks-tools) - Convert video/audio file(s) to OGA (OGG Audio) Format #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
#############################################################################
|
#############################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Global parameters
|
# Global parameters
|
||||||
dirTemp="/tmp"
|
dirTemp="/tmp"
|
||||||
|
@ -59,7 +59,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep sed grep cut head tail tr cat"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
# ks-oga-album (ks-tools) - Convert folder album to OGA (OGG Audio) Format #
|
# ks-oga-album (ks-tools) - Convert folder album to OGA (OGG Audio) Format #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
############################################################################
|
############################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
tempFile="/tmp/ks-mp4s-folder.txt"
|
tempFile="/tmp/ks-mp4s-folder.txt"
|
||||||
|
@ -66,7 +66,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep find grep cut head tail tr cat"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# ks-upa (ks-tools) - Upload audio file(s) to server with scp or rsync #
|
# ks-upa (ks-tools) - Upload audio file(s) to server with scp or rsync #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
########################################################################
|
########################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Global parameters.
|
# Global parameters.
|
||||||
dirTemp="/tmp"
|
dirTemp="/tmp"
|
||||||
|
@ -783,7 +783,7 @@ function showHelp() {
|
||||||
# Function to check if all the necessary tools
|
# Function to check if all the necessary tools
|
||||||
# for the execution are installed.
|
# for the execution are installed.
|
||||||
function checkDependencies() {
|
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="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# ks-upf (ks-tools) - Upload common file(s) to server with scp or rsync #
|
# ks-upf (ks-tools) - Upload common file(s) to server with scp or rsync #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Global parameters.
|
# Global parameters.
|
||||||
dirTemp="/tmp"
|
dirTemp="/tmp"
|
||||||
|
@ -810,7 +810,7 @@ function showHelp() {
|
||||||
# Function to check if all the necessary tools
|
# Function to check if all the necessary tools
|
||||||
# for the execution are installed.
|
# for the execution are installed.
|
||||||
function checkDependencies() {
|
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="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# ks-upr (ks-tools) - Upload recursively file(s) to server with scp or rsync #
|
# ks-upr (ks-tools) - Upload recursively file(s) to server with scp or rsync #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
##############################################################################
|
##############################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Global parameters.
|
# Global parameters.
|
||||||
dirTemp="/tmp"
|
dirTemp="/tmp"
|
||||||
|
@ -764,7 +764,7 @@ function showHelp() {
|
||||||
# Function to check if all the necessary tools
|
# Function to check if all the necessary tools
|
||||||
# for the execution are installed.
|
# for the execution are installed.
|
||||||
function checkDependencies() {
|
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="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# ks-upv (ks-tools) - Upload videos file(s) to server with scp or rsync #
|
# ks-upv (ks-tools) - Upload videos file(s) to server with scp or rsync #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Global parameters.
|
# Global parameters.
|
||||||
dirTemp="/tmp"
|
dirTemp="/tmp"
|
||||||
|
@ -783,7 +783,7 @@ function showHelp() {
|
||||||
# Function to check if all the necessary tools
|
# Function to check if all the necessary tools
|
||||||
# for the execution are installed.
|
# for the execution are installed.
|
||||||
function checkDependencies() {
|
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="sshpass expect rsync md5sum scp ssh find grep sed cut head tail cat ssh-keyscan ssh-keygen"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
# ks-avi (ks-tools) - Convert video to VOB DVD Format #
|
# ks-avi (ks-tools) - Convert video to VOB DVD Format #
|
||||||
# Date: 01-10-2023 #
|
# Date: 02-11-2023 #
|
||||||
# Author: q3aql #
|
# Author: q3aql #
|
||||||
# Contact: q3aql@duck.com #
|
# Contact: q3aql@duck.com #
|
||||||
###############################################################
|
###############################################################
|
||||||
VERSION="8.5-dev"
|
VERSION="8.5-dev"
|
||||||
M_DATE="011023"
|
M_DATE="021123"
|
||||||
|
|
||||||
# Basic parameters
|
# Basic parameters
|
||||||
rel_size="720x480"
|
rel_size="720x480"
|
||||||
|
@ -25,7 +25,7 @@ if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# 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="ffmpeg grep grep cut head tail tr"
|
||||||
dependencies_found=""
|
dependencies_found=""
|
||||||
dependencies_not_found=""
|
dependencies_not_found=""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user