Compare commits

..

6 Commits

Author SHA1 Message Date
ec5815b10b new sublime project folder for repository 2023-05-27 18:14:23 +02:00
daf4250a7e file not needed in vcs 2023-05-27 18:13:33 +02:00
13446c6d89 use opus since it yields better audio quality 2023-05-27 18:12:52 +02:00
f501c081df better output dir naming 2023-05-27 18:12:05 +02:00
7accc4c185 escape additional characters 2023-05-27 18:11:37 +02:00
ad1cfc5344 fixed alias 2023-05-27 18:11:04 +02:00
8 changed files with 2499 additions and 7 deletions

View File

@ -0,0 +1,8 @@
{
"folders":
[
{
"path": ".."
}
]
}

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@ alias rsync_default="rsync $DEFAULT_RSYNC --checksum"
# source /usr/share/bash-completion/completions/rsync # source /usr/share/bash-completion/completions/rsync
# complete -F _rsync rsync_default # complete -F _rsync rsync_default
alias rsync_backup="rsync $DEFAULT_RSYNC --checksum --times --group --owner --delete" alias rsync_backup="rsync $DEFAULT_RSYNC --checksum --times --group --owner --delete"
alias rsync_move='rsync $DEFAULT_RSYNC --checksum --remove-source-files' alias rsync_move="rsync $DEFAULT_RSYNC --checksum --remove-source-files"
alias rsync_update="rsync $DEFAULT_RSYNC --update --times" alias rsync_update="rsync $DEFAULT_RSYNC --update --times"
alias rsync_copy="rsync $DEFAULT_RSYNC --ignore-times" alias rsync_copy="rsync $DEFAULT_RSYNC --ignore-times"
alias off='systemctl poweroff' alias off='systemctl poweroff'

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,9 @@ declare -A replacements
unset replacements[0] unset replacements[0]
replacements[' ']='_'; replacements[' ']='_';
replacements[':']='_'; replacements[':']='_';
replacements["'"]='_';
replacements['(']='_';
replacements[')']='_';
while [[ $# > 0 ]]; do while [[ $# > 0 ]]; do
replacements["$1"]="$2"; replacements["$1"]="$2";
shift 2; shift 2;

View File

@ -2,7 +2,8 @@
set -euo pipefail set -euo pipefail
# ensure existence of destination folder # ensure existence of destination folder
dest=../reencode dir="$(pwd)"
dest=${dir%/*}/${dir##*/}_reencode
if [[ !(-d $dest) ]]; then if [[ !(-d $dest) ]]; then
mkdir $dest mkdir $dest
fi fi

View File

@ -18,7 +18,8 @@ if [[ -z $vbr ]]; then
fi fi
# ensure existence of destination folder # ensure existence of destination folder
dest=../reencode dir="$(pwd)"
dest=${dir%/*}/${dir##*/}_reencode
if [[ !(-d $dest) ]]; then if [[ !(-d $dest) ]]; then
mkdir $dest mkdir $dest
fi fi

View File

@ -13,12 +13,14 @@ while [[ $# > 0 ]]; do
done done
# ensure existence of destination folder # ensure existence of destination folder
dest=../transcode_m4a dir="$(pwd)"
dest=${dir%/*}/${dir##*/}_ogg
if [[ !(-d $dest) ]]; then if [[ !(-d $dest) ]]; then
mkdir $dest mkdir $dest
fi fi
for file in ./*.$file_suffix; do for file in ./*.$file_suffix; do
echo "ffmpeg -i '$file' -c:a libfdk_aac -profile:a aac_he -b:a 64k $map -movflags +faststart '$dest/${file%$file_suffix}m4a'"; # `-vbr on -application audio` should be default, but let's be sure
ffmpeg -i "$file" -c:a libfdk_aac -profile:a aac_he -b:a 64k $map -movflags +faststart "$dest/${file%$file_suffix}m4a"; echo "ffmpeg -i '$file' -c:a libopus -b:a 64k -vbr on -application audio $map '$dest/${file%$file_suffix}ogg'";
ffmpeg -i "$file" -c:a libopus -b:a 64k -vbr on -application audio $map "$dest/${file%$file_suffix}ogg";
done done