Compare commits
3 Commits
deac51c69e
...
08483c6330
Author | SHA1 | Date | |
---|---|---|---|
08483c6330 | |||
1d97ba199e | |||
3d60a7cca4 |
@ -1,21 +0,0 @@
|
|||||||
#!/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
Executable file → Normal file
0
scripts/unmount_general.sh
Executable file → Normal file
@ -1,19 +1,23 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [[ $# > 0 ]]; then
|
# evaluate options through given arguments
|
||||||
DOCKER_ROOT=$1;
|
docker_root=
|
||||||
else
|
while [[ $# > 0 ]]; do
|
||||||
DOCKER_ROOT=$(pwd);
|
case $1 in
|
||||||
fi
|
-d | --dir) docker_root=$2; shift 2;;
|
||||||
# echo $DOCKER_ROOT;
|
* ) break ;; # Anything else stops command line processing.
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
for subdir in $DOCKER_ROOT/*; do
|
if [[ -z $docker_root ]]; then
|
||||||
if [[ !(-d $subdir) || ${subdir##*/} == "matrix_synapse" || ${subdir##*/} == "pydio_cells" || ${subdir##*/} == "mattermost" ]]; then
|
docker_root=~/docker;
|
||||||
|
fi
|
||||||
|
|
||||||
|
for subdir in $docker_root/*; do
|
||||||
|
if [[ !(-d $subdir) ]]; then
|
||||||
continue;
|
continue;
|
||||||
fi
|
fi
|
||||||
# echo $subdir;
|
|
||||||
cd $subdir;
|
cd $subdir;
|
||||||
# echo $(pwd);
|
|
||||||
docker-compose up -d;
|
docker-compose up -d;
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user