Compare commits
7 Commits
bb277234ea
...
ec5a09da64
Author | SHA1 | Date | |
---|---|---|---|
ec5a09da64 | |||
ec5815b10b | |||
daf4250a7e | |||
13446c6d89 | |||
f501c081df | |||
7accc4c185 | |||
ad1cfc5344 |
8
.sublime/sync.sublime-project
Normal file
8
.sublime/sync.sublime-project
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"folders":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": ".."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
2478
.sublime/sync.sublime-workspace
Normal file
2478
.sublime/sync.sublime-workspace
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user