Changed directory for converted files

This commit is contained in:
DarkCat09 2023-01-27 11:51:02 +04:00
parent 019c8308f4
commit da3e080190
3 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,2 @@
#!/usr/bin/env bash
ffmpeg -i "$1" "$(echo "$1" | sed -E "s/\.[A-Za-z0-9]+$/.$2/")"
ffmpeg -i "$1" "$(echo "$1" | sed -E "s/\.[A-Za-z0-9]+$/.$2/" | sed "s#\./files#./convert#")"

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
files/
convert/
.vscode/

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash
trap 'echo; echo "Exit"; exit 0' SIGINT
mkdir -p ./convert
echo "Enter input files extension:"
echo "(empty string to match all)"