1 changed files with 27 additions and 0 deletions
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash |
||||
|
||||
usage() { |
||||
cat <<EOF |
||||
usage: |
||||
-h, --help print this message |
||||
-o output root directory |
||||
-i input file |
||||
EOF |
||||
} |
||||
|
||||
if [[ $1 == '-h' || $1 == '--help' ]] |
||||
then |
||||
usage |
||||
exit 0 |
||||
fi |
||||
|
||||
if [[ "$1" =~ ^[a-zA-Z0-9_/.-]+[.]+mp3$ ]] |
||||
then |
||||
echo "-- converting $1 to $(pwd)/$(basename "${1%.*}").ogg" |
||||
else |
||||
echo "Not implemented" |
||||
exit 1 |
||||
fi |
||||
|
||||
echo ffmpeg -i "$1" -codec:v libx265 -codec:a aac -crf 28 "${1%.*}.mp4" |
||||
#time ffmpeg -i "$1" -codec:v libx265 -codec:a aac -crf 28 "${1%.*}.mp4" |
||||
Loading…
Reference in new issue