- improved map, vbr flags

This commit is contained in:
2025-11-19 21:02:03 +01:00
parent 57644311b3
commit edf7f1a1d1

View File

@@ -6,15 +6,15 @@ map=
vbr= vbr=
while [[ $# > 0 ]]; do while [[ $# > 0 ]]; do
case $1 in case $1 in
-map) map='-map 0:0'; shift;; -map) map='-map 0:a'; shift;;
-vbr) vbr='aac_at -profile:a aac_he -b:a 64k'; shift;; -vbr) vbr='aac -profile:a aac_he -b:a 64k'; shift;;
* ) break ;; # Anything else stops command line processing. * ) break ;; # Anything else stops command line processing.
esac esac
done done
# if no variable bitrate, just copy audio # if no variable bitrate, just copy audio
if [[ -z $vbr ]]; then if [[ -z $vbr ]]; then
map="$map copy" vbr="copy"
fi fi
# ensure existence of destination folder # ensure existence of destination folder