Fix ISO Codes URL && add info for bitrate (ks-conf)

This commit is contained in:
q3aql 2022-01-04 11:22:17 +01:00
parent 3fbf90c630
commit 90c373df23

View File

@ -400,7 +400,7 @@ edit_video_config() {
echo " c - Reset configuration file" echo " c - Reset configuration file"
echo " q - Exit to main menu" echo " q - Exit to main menu"
echo "" echo ""
echo -n "* Choose an option (r/v/b/p/a/i/l/s/q): " ; read option echo -n "* Choose an option (r/v/b/p/a/i/l/s/c/q): " ; read option
if [ "${option}" == "r" ] ; then if [ "${option}" == "r" ] ; then
# Set resolution # Set resolution
echo "" echo ""
@ -452,6 +452,8 @@ edit_video_config() {
elif [ "${option}" == "b" ] ; then elif [ "${option}" == "b" ] ; then
# Set bitrate for video # Set bitrate for video
echo "" echo ""
echo "* Recommended: 950k / 2400k / 3000k / 6000k / 10000k"
echo ""
echo -n "* [Current: ${b_vcodec}] Type bitrate for video: " ; read videobitrate echo -n "* [Current: ${b_vcodec}] Type bitrate for video: " ; read videobitrate
if [ -z ${videobitrate} ] ; then if [ -z ${videobitrate} ] ; then
echo > /dev/null echo > /dev/null
@ -520,6 +522,8 @@ edit_video_config() {
elif [ "${option}" == "i" ] ; then elif [ "${option}" == "i" ] ; then
# Set bitrate for audio # Set bitrate for audio
echo "" echo ""
echo "* Recommended: 92k / 128k / 192k / 256k / 320k / 640k"
echo ""
echo -n "* [Current: ${b_acodec}] Type bitrate for audio: " ; read audiobitrate echo -n "* [Current: ${b_acodec}] Type bitrate for audio: " ; read audiobitrate
if [ -z ${audiobitrate} ] ; then if [ -z ${audiobitrate} ] ; then
echo > /dev/null echo > /dev/null
@ -545,7 +549,7 @@ edit_video_config() {
echo " Italian --> ita" echo " Italian --> ita"
echo " French --> fra" echo " French --> fra"
echo "" echo ""
echo "* Complete 639-2 codes: https://en.wikipedia.org/wiki/List_of_ISO__codes" echo "* Complete 639-2 codes: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes"
echo "" echo ""
echo -n "* [Current: ${default_lang_audio}] Type the preferred audio language: " ; read audiolanguage echo -n "* [Current: ${default_lang_audio}] Type the preferred audio language: " ; read audiolanguage
if [ -z ${audiolanguage} ] ; then if [ -z ${audiolanguage} ] ; then
@ -572,7 +576,7 @@ edit_video_config() {
echo " Italian --> ita" echo " Italian --> ita"
echo " French --> fra" echo " French --> fra"
echo "" echo ""
echo "* Complete 639-2 codes: https://en.wikipedia.org/wiki/List_of_ISO__codes" echo "* Complete 639-2 codes: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes"
echo "" echo ""
echo -n "* [Current: ${default_lang_subt}] Type the preferred subtitles language: " ; read subtitlelanguage echo -n "* [Current: ${default_lang_subt}] Type the preferred subtitles language: " ; read subtitlelanguage
if [ -z ${subtitlelanguage} ] ; then if [ -z ${subtitlelanguage} ] ; then
@ -630,6 +634,14 @@ edit_audio_config() {
echo -n "* Choose an option (a/l/c/q): " ; read option echo -n "* Choose an option (a/l/c/q): " ; read option
if [ "${option}" == "a" ] ; then if [ "${option}" == "a" ] ; then
# Set bitrate for audio # Set bitrate for audio
if [ "$v_ext" == "mp3" ] ; then
echo ""
echo "* Recommended: 92k / 128k / 192k / 256k / 320k / 640k"
fi
if [ "$v_ext" == "oga" ] ; then
echo ""
echo "* Recommended: 96k / 112k / 130k / 160k / 224k / 256k / 320k"
fi
echo "" echo ""
echo -n "* [Current: ${b_acodec}] Type bitrate for audio: " ; read audiobitrate echo -n "* [Current: ${b_acodec}] Type bitrate for audio: " ; read audiobitrate
if [ -z ${audiobitrate} ] ; then if [ -z ${audiobitrate} ] ; then
@ -651,7 +663,7 @@ edit_audio_config() {
echo " Italian --> ita" echo " Italian --> ita"
echo " French --> fra" echo " French --> fra"
echo "" echo ""
echo "* Complete 639-2 codes: https://en.wikipedia.org/wiki/List_of_ISO__codes" echo "* Complete 639-2 codes: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes"
echo "" echo ""
echo -n "* [Current: ${default_lang_audio}] Type the preferred audio language: " ; read audiolanguage echo -n "* [Current: ${default_lang_audio}] Type the preferred audio language: " ; read audiolanguage
if [ -z ${audiolanguage} ] ; then if [ -z ${audiolanguage} ] ; then
@ -693,6 +705,8 @@ while [ ${show_menu} -eq 0 ] ; do
echo "" echo ""
echo "* ks-conf (ks-tools) v${VERSION} (${M_DATE})" echo "* ks-conf (ks-tools) v${VERSION} (${M_DATE})"
echo "" echo ""
echo "- Tool for create and modify all configuration files"
echo ""
source ${HOME}/.ks-tools/ks-mp4 source ${HOME}/.ks-tools/ks-mp4
echo " m - Edit ks-mp4 config (${rel_size}/${vcodec}/${b_vcodec}/${acodec}/${b_acodec}/${default_lang_audio})" echo " m - Edit ks-mp4 config (${rel_size}/${vcodec}/${b_vcodec}/${acodec}/${b_acodec}/${default_lang_audio})"
source ${HOME}/.ks-tools/ks-mp4k source ${HOME}/.ks-tools/ks-mp4k
@ -713,7 +727,7 @@ while [ ${show_menu} -eq 0 ] ; do
echo "" echo ""
echo " q - Exit" echo " q - Exit"
echo "" echo ""
echo -n "* Choose an option (m/k/s/a/p/o/q): " ; read option echo -n "* Choose an option (m/k/s/a/p/o/u/q): " ; read option
if [ "${option}" == "m" ] ; then if [ "${option}" == "m" ] ; then
edit_video_config ks-mp4 edit_video_config ks-mp4
elif [ "${option}" == "k" ] ; then elif [ "${option}" == "k" ] ; then