- improved map, vbr flags
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user