You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
525 B
27 lines
525 B
#!/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"
|
|
|