Compare commits
No commits in common. "08483c6330fe61399a87263df3df49b123e5e204" and "deac51c69eefd7ca42d3fc330d6fffeb5ae092ee" have entirely different histories.
08483c6330
...
deac51c69e
21
scripts/reencode_m4a.sh.save
Executable file
21
scripts/reencode_m4a.sh.save
Executable file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
for file in ./*.m4a; do
|
||||
map='';
|
||||
if [[ $# > 0 && $1 == 'map' ]]; then
|
||||
map='-map 0:0';
|
||||
fi
|
||||
vbr='';
|
||||
if [[ $# > 1 && $2 == 'vbr' ]]; then
|
||||
vbr='libfdk_aac -profile:a aac_he -b:a 64k';
|
||||
else
|
||||
map="$map copy"
|
||||
fi
|
||||
dest=../reencode
|
||||
if [[ !(-d $dest) ]]; then
|
||||
mkdir $dest
|
||||
fi
|
||||
echo "ffmpeg -i '$file' -c:a $vbr $map -movflags +faststart '$dest/$file'";
|
||||
ffmpeg -i "$file" -c:a $vbr $map -movflags +faststart "$dest/$file";
|
||||
done
|
0
scripts/unmount_general.sh
Normal file → Executable file
0
scripts/unmount_general.sh
Normal file → Executable file
@ -1,23 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# evaluate options through given arguments
|
||||
docker_root=
|
||||
while [[ $# > 0 ]]; do
|
||||
case $1 in
|
||||
-d | --dir) docker_root=$2; shift 2;;
|
||||
* ) break ;; # Anything else stops command line processing.
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ -z $docker_root ]]; then
|
||||
docker_root=~/docker;
|
||||
if [[ $# > 0 ]]; then
|
||||
DOCKER_ROOT=$1;
|
||||
else
|
||||
DOCKER_ROOT=$(pwd);
|
||||
fi
|
||||
# echo $DOCKER_ROOT;
|
||||
|
||||
for subdir in $docker_root/*; do
|
||||
if [[ !(-d $subdir) ]]; then
|
||||
for subdir in $DOCKER_ROOT/*; do
|
||||
if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" || ${subdir##*/} == "pydio_cells" || ${subdir##*/} == "mattermost" ]]; then
|
||||
continue;
|
||||
fi
|
||||
# echo $subdir;
|
||||
cd $subdir;
|
||||
# echo $(pwd);
|
||||
docker-compose up -d;
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user