Compare commits
23 commits
Author | SHA1 | Date | |
---|---|---|---|
153c974fa3 | |||
50bb00be4c | |||
28a44fb38d | |||
30359c25dd | |||
a0ed152846 | |||
7fc87e6be9 | |||
b60e8edf7a | |||
|
05ef2a0f8c | ||
1349160c16 | |||
d93dd60a40 | |||
847ad0c99b | |||
851484e0bb | |||
89d9b96f9d | |||
|
d27991cbd1 | ||
|
d05076999c | ||
c938df06ef | |||
acd531cadd | |||
2a7bae6e1c | |||
8ad7149f26 | |||
2bdce59493 | |||
e948e11177 | |||
fc153ba08f | |||
121f6def82 |
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"):
|
||||||
abitrate = int(arg) * 1000
|
try:
|
||||||
|
abitrate = int(arg) * 1000
|
||||||
|
except ValueError:
|
||||||
|
print("Error: invalid value for audio bitrate!")
|
||||||
|
usage()
|
||||||
elif opt in ("-v", "--vbitrate"):
|
elif opt in ("-v", "--vbitrate"):
|
||||||
vbitrate = int(arg)
|
try:
|
||||||
|
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