Merge branch 'hotfix-1.2.2' into develop
This commit is contained in:
commit
153c974fa3
1 changed files with 11 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
# n900-encode.py: Encode almost any Video to an Nokia N900-compatible format (h264,aac,mp4)
|
# n900-encode.py: Encode almost any Video to an Nokia N900-compatible format (h264,aac,mp4)
|
||||||
# Disclaimer: This program is provided without any warranty, USE AT YOUR OWN RISK!
|
# Disclaimer: This program is provided without any warranty, USE AT YOUR OWN RISK!
|
||||||
#
|
#
|
||||||
# Version 1.2 (23.03.2012)
|
# Version 1.2.2 (03.08.2012)
|
||||||
#
|
#
|
||||||
# (C) 2010-2012 Stefan Brand <seiichiro@seiichiro0185.org>
|
# (C) 2010-2012 Stefan Brand <seiichiro@seiichiro0185.org>
|
||||||
#
|
#
|
||||||
|
@ -70,9 +70,17 @@ def main(argv):
|
||||||
elif opt in ("-m" "--mpopts"):
|
elif opt in ("-m" "--mpopts"):
|
||||||
mpopts = arg
|
mpopts = arg
|
||||||
elif opt in ("-a", "--abitrate"):
|
elif opt in ("-a", "--abitrate"):
|
||||||
|
try:
|
||||||
abitrate = int(arg) * 1000
|
abitrate = int(arg) * 1000
|
||||||
|
except ValueError:
|
||||||
|
print("Error: invalid value for audio bitrate!")
|
||||||
|
usage()
|
||||||
elif opt in ("-v", "--vbitrate"):
|
elif opt in ("-v", "--vbitrate"):
|
||||||
|
try:
|
||||||
vbitrate = int(arg)
|
vbitrate = int(arg)
|
||||||
|
except ValueError:
|
||||||
|
print("Error: Invalid value for video bitrate!")
|
||||||
|
usage()
|
||||||
elif opt in ("-t", "--threads"):
|
elif opt in ("-t", "--threads"):
|
||||||
threads = arg
|
threads = arg
|
||||||
elif opt in ("-f", "--force-overwrite"):
|
elif opt in ("-f", "--force-overwrite"):
|
||||||
|
|
Loading…
Reference in a new issue