Cyril CONSTANTIN 4 weeks ago
parent
commit
db3518e8b5
  1. 27
      convert_to_ogg.sh

27
convert_to_ogg.sh

@ -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…
Cancel
Save