Add id support in -alang option.
This commit is contained in:
parent
200c20a80e
commit
4466a01b8c
21
dvd2divx
21
dvd2divx
@ -5,9 +5,9 @@
|
|||||||
# (C) 2004-2009 Arnaud G. Gibert
|
# (C) 2004-2009 Arnaud G. Gibert
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
# $RCSfile: dvd2divx,v $
|
# $RCSfile: dvd2divx,v $
|
||||||
# $Revision: 1.7 $
|
# $Revision: 1.8 $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
# $Date: 2009/02/17 08:29:55 $
|
# $Date: 2009/02/25 18:04:40 $
|
||||||
# $Author: agibert $
|
# $Author: agibert $
|
||||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ dvd_device=${4} # -|/dev/dvd|...
|
|||||||
title=${5} #
|
title=${5} #
|
||||||
chapter=${6} #
|
chapter=${6} #
|
||||||
angle=${7} #
|
angle=${7} #
|
||||||
alang=${8} # en|fr|...
|
alang=${8} # -|en|fr|...|0|1|... (lang or id)
|
||||||
slang=${9} # -|en|fr|...|0|1|... (lang or id)
|
slang=${9} # -|en|fr|...|0|1|... (lang or id)
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
audio=${10} # ap|avp|fvp|n (ap: compress audio during audio pass | avp: compress audio during all video pass | fvp: compress audio during final video pass | no: use input audio stream)
|
audio=${10} # ap|avp|fvp|n (ap: compress audio during audio pass | avp: compress audio during all video pass | fvp: compress audio during final video pass | no: use input audio stream)
|
||||||
@ -120,7 +120,20 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read_dvd_opt="$device_opt dvd://$title -chapter $chapter -dvdangle $angle -alang $alang $slang_opt"
|
if [ "$alang" != "-" ]
|
||||||
|
then
|
||||||
|
if [[ "$alang" == +([[:digit:]]) ]]
|
||||||
|
then
|
||||||
|
alang_opt="-aid $alang"
|
||||||
|
else
|
||||||
|
alang_opt="-alang $alang"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
alang_opt=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
read_dvd_opt="$device_opt dvd://$title -chapter $chapter -dvdangle $angle $alang_opt $slang_opt"
|
||||||
read_buf_opt="$tmp_name"
|
read_buf_opt="$tmp_name"
|
||||||
|
|
||||||
case "$input"
|
case "$input"
|
||||||
|
Loading…
Reference in New Issue
Block a user