From bbc9846adf36fbf992553ce5a90db281b3e3fdd2 Mon Sep 17 00:00:00 2001 From: q3aql Date: Wed, 1 Nov 2023 20:24:52 +0100 Subject: [PATCH] Add support for Linux Homebrew --- src/ks-av1 | 8 ++++---- src/ks-av1s | 8 ++++---- src/ks-av1s-folder | 6 +++--- src/ks-avi | 8 ++++---- src/ks-conf | 4 ++-- src/ks-crop | 6 +++--- src/ks-mix | 6 +++--- src/ks-mp3 | 6 +++--- src/ks-mp3-album | 6 +++--- src/ks-mp4 | 6 +++--- src/ks-mp4k | 6 +++--- src/ks-mp4s | 6 +++--- src/ks-mp4s-folder | 6 +++--- src/ks-oga | 6 +++--- src/ks-oga-album | 6 +++--- src/ks-upa | 6 +++--- src/ks-upf | 6 +++--- src/ks-upr | 6 +++--- src/ks-upv | 6 +++--- src/ks-vob | 6 +++--- 20 files changed, 62 insertions(+), 62 deletions(-) diff --git a/src/ks-av1 b/src/ks-av1 index 75c9239..3971c5e 100755 --- a/src/ks-av1 +++ b/src/ks-av1 @@ -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 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="" diff --git a/src/ks-av1s b/src/ks-av1s index f2604ca..39bd3ff 100755 --- a/src/ks-av1s +++ b/src/ks-av1s @@ -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 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="" diff --git a/src/ks-av1s-folder b/src/ks-av1s-folder index 655b174..9f03cb7 100755 --- a/src/ks-av1s-folder +++ b/src/ks-av1s-folder @@ -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="" diff --git a/src/ks-avi b/src/ks-avi index 4ddaff0..5ec0ccb 100755 --- a/src/ks-avi +++ b/src/ks-avi @@ -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 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="" diff --git a/src/ks-conf b/src/ks-conf index 205f2b2..3f3c4a5 100755 --- a/src/ks-conf +++ b/src/ks-conf @@ -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 diff --git a/src/ks-crop b/src/ks-crop index dfb046e..0217271 100755 --- a/src/ks-crop +++ b/src/ks-crop @@ -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="" diff --git a/src/ks-mix b/src/ks-mix index b9f2f1b..ba60c53 100755 --- a/src/ks-mix +++ b/src/ks-mix @@ -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="" diff --git a/src/ks-mp3 b/src/ks-mp3 index bac16bb..861cd2f 100755 --- a/src/ks-mp3 +++ b/src/ks-mp3 @@ -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="" diff --git a/src/ks-mp3-album b/src/ks-mp3-album index 6620ed6..80566c4 100755 --- a/src/ks-mp3-album +++ b/src/ks-mp3-album @@ -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="" diff --git a/src/ks-mp4 b/src/ks-mp4 index 2d07011..f158c69 100755 --- a/src/ks-mp4 +++ b/src/ks-mp4 @@ -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 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" diff --git a/src/ks-mp4k b/src/ks-mp4k index 8f43d3c..cfa8004 100755 --- a/src/ks-mp4k +++ b/src/ks-mp4k @@ -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 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" diff --git a/src/ks-mp4s b/src/ks-mp4s index 065721f..695daba 100755 --- a/src/ks-mp4s +++ b/src/ks-mp4s @@ -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 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" diff --git a/src/ks-mp4s-folder b/src/ks-mp4s-folder index 8357ea0..83037ed 100755 --- a/src/ks-mp4s-folder +++ b/src/ks-mp4s-folder @@ -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="" diff --git a/src/ks-oga b/src/ks-oga index b1603b6..3a83ee7 100755 --- a/src/ks-oga +++ b/src/ks-oga @@ -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="" diff --git a/src/ks-oga-album b/src/ks-oga-album index 826de3a..6edeb97 100755 --- a/src/ks-oga-album +++ b/src/ks-oga-album @@ -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="" diff --git a/src/ks-upa b/src/ks-upa index bd18c9f..6486c1d 100755 --- a/src/ks-upa +++ b/src/ks-upa @@ -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="" diff --git a/src/ks-upf b/src/ks-upf index 150c09d..5243364 100755 --- a/src/ks-upf +++ b/src/ks-upf @@ -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="" diff --git a/src/ks-upr b/src/ks-upr index 0486fe8..d19e1d7 100755 --- a/src/ks-upr +++ b/src/ks-upr @@ -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="" diff --git a/src/ks-upv b/src/ks-upv index 12ddad0..e35ebb3 100755 --- a/src/ks-upv +++ b/src/ks-upv @@ -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="" diff --git a/src/ks-vob b/src/ks-vob index e1d2f45..cd82a87 100755 --- a/src/ks-vob +++ b/src/ks-vob @@ -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=""