Add checking cygwin alias (for Windows)
This commit is contained in:
parent
0502eb069c
commit
b2a132be5d
0
cygwin/bin/cygwin-alias.sh
Normal file → Executable file
0
cygwin/bin/cygwin-alias.sh
Normal file → Executable file
|
@ -27,6 +27,12 @@ default_lang_audio="spa"
|
||||||
default_lang_subt="spa"
|
default_lang_subt="spa"
|
||||||
v_ext="avi"
|
v_ext="avi"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -31,6 +31,12 @@ resolution=null
|
||||||
modeCrop=null
|
modeCrop=null
|
||||||
inputFile="${2}"
|
inputFile="${2}"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -20,6 +20,12 @@ output_file_dir="${current_dir}/output.mkv"
|
||||||
default_lang_audio="spa"
|
default_lang_audio="spa"
|
||||||
default_lang_subt="spa"
|
default_lang_subt="spa"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -20,6 +20,12 @@ b_acodec="128k"
|
||||||
v_ext="mp3"
|
v_ext="mp3"
|
||||||
default_lang_audio="spa"
|
default_lang_audio="spa"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -27,6 +27,12 @@ track_init="1"
|
||||||
artist_init="Artist"
|
artist_init="Artist"
|
||||||
default_lang_audio="spa"
|
default_lang_audio="spa"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -27,6 +27,12 @@ default_lang_audio="spa"
|
||||||
default_lang_subt="spa"
|
default_lang_subt="spa"
|
||||||
v_ext="mp4"
|
v_ext="mp4"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -27,6 +27,12 @@ default_lang_audio="spa"
|
||||||
default_lang_subt="spa"
|
default_lang_subt="spa"
|
||||||
v_ext="mp4"
|
v_ext="mp4"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -27,6 +27,12 @@ default_lang_audio="spa"
|
||||||
default_lang_subt="spa"
|
default_lang_subt="spa"
|
||||||
v_ext="mp4"
|
v_ext="mp4"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -14,6 +14,12 @@ tempFile="/tmp/ks-mp4s-folder.txt"
|
||||||
tempFileTest="/tmp/ks-mp4s-folder-test.txt"
|
tempFileTest="/tmp/ks-mp4s-folder-test.txt"
|
||||||
formatFiles="mp4 avi mpg mpeg mov wmv mkv ogv webm rm flv vob ts"
|
formatFiles="mp4 avi mpg mpeg mov wmv mkv ogv webm rm flv vob ts"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Show help when folder is empty
|
# Show help when folder is empty
|
||||||
if [ -z "${1}" ] ; then
|
if [ -z "${1}" ] ; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
@ -20,6 +20,12 @@ b_acodec="130k"
|
||||||
v_ext="oga"
|
v_ext="oga"
|
||||||
default_lang_audio="spa"
|
default_lang_audio="spa"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -27,6 +27,12 @@ track_init="1"
|
||||||
artist_init="Artist"
|
artist_init="Artist"
|
||||||
default_lang_audio="spa"
|
default_lang_audio="spa"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -17,6 +17,12 @@ listTemp="ks-tools.list"
|
||||||
dirConfig="$HOME/.ks-tools"
|
dirConfig="$HOME/.ks-tools"
|
||||||
ksToolsTempFolder="/tmp/ks-tools"
|
ksToolsTempFolder="/tmp/ks-tools"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Function to remove spaces and symbols
|
# Function to remove spaces and symbols
|
||||||
# Syntax: convertText "<text>"
|
# Syntax: convertText "<text>"
|
||||||
function convertText() {
|
function convertText() {
|
||||||
|
|
|
@ -17,6 +17,12 @@ listTemp="ks-tools.list"
|
||||||
dirConfig="$HOME/.ks-tools"
|
dirConfig="$HOME/.ks-tools"
|
||||||
ksToolsTempFolder="/tmp/ks-tools"
|
ksToolsTempFolder="/tmp/ks-tools"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Function to remove spaces and symbols
|
# Function to remove spaces and symbols
|
||||||
# Syntax: convertText "<text>"
|
# Syntax: convertText "<text>"
|
||||||
function convertText() {
|
function convertText() {
|
||||||
|
|
|
@ -17,6 +17,12 @@ listTemp="ks-tools.list"
|
||||||
dirConfig="$HOME/.ks-tools"
|
dirConfig="$HOME/.ks-tools"
|
||||||
ksToolsTempFolder="/tmp/ks-tools"
|
ksToolsTempFolder="/tmp/ks-tools"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Function to remove spaces and symbols
|
# Function to remove spaces and symbols
|
||||||
# Syntax: convertText "<text>"
|
# Syntax: convertText "<text>"
|
||||||
function convertText() {
|
function convertText() {
|
||||||
|
|
|
@ -17,6 +17,12 @@ listTemp="ks-tools.list"
|
||||||
dirConfig="$HOME/.ks-tools"
|
dirConfig="$HOME/.ks-tools"
|
||||||
ksToolsTempFolder="/tmp/ks-tools"
|
ksToolsTempFolder="/tmp/ks-tools"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Function to remove spaces and symbols
|
# Function to remove spaces and symbols
|
||||||
# Syntax: convertText "<text>"
|
# Syntax: convertText "<text>"
|
||||||
function convertText() {
|
function convertText() {
|
||||||
|
|
|
@ -18,6 +18,12 @@ b_acodec="192k"
|
||||||
default_lang_audio="spa"
|
default_lang_audio="spa"
|
||||||
v_ext="vob"
|
v_ext="vob"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -20,6 +20,12 @@ dirTemp="/tmp"
|
||||||
listTemp="ks-tools.list"
|
listTemp="ks-tools.list"
|
||||||
ksToolsTempFolder="/tmp/ks-tools"
|
ksToolsTempFolder="/tmp/ks-tools"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -20,6 +20,12 @@ dirTemp="/tmp"
|
||||||
listTemp="ks-tools.list"
|
listTemp="ks-tools.list"
|
||||||
ksToolsTempFolder="/tmp/ks-tools"
|
ksToolsTempFolder="/tmp/ks-tools"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -20,6 +20,12 @@ dirTemp="/tmp"
|
||||||
listTemp="ks-tools.list"
|
listTemp="ks-tools.list"
|
||||||
ksToolsTempFolder="/tmp/ks-tools"
|
ksToolsTempFolder="/tmp/ks-tools"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -20,6 +20,12 @@ dirTemp="/tmp"
|
||||||
listTemp="ks-tools.list"
|
listTemp="ks-tools.list"
|
||||||
ksToolsTempFolder="/tmp/ks-tools"
|
ksToolsTempFolder="/tmp/ks-tools"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
|
@ -15,6 +15,12 @@ p_ffmpeg="ffmpeg -i"
|
||||||
p_ffmpeg_patched="-max_muxing_queue_size 9999"
|
p_ffmpeg_patched="-max_muxing_queue_size 9999"
|
||||||
rel_size="720x480"
|
rel_size="720x480"
|
||||||
|
|
||||||
|
# Check cygwin alias (for Windows)
|
||||||
|
if [ -f "/usr/bin/cygwin-alias.sh" ] ; then
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source "/usr/bin/cygwin-alias.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if ffmpeg is installed
|
# Check if ffmpeg is installed
|
||||||
ffmpeg_test=$(ffmpeg --help 2>&1)
|
ffmpeg_test=$(ffmpeg --help 2>&1)
|
||||||
error_ffmpeg=$?
|
error_ffmpeg=$?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user