Compare commits
No commits in common. "823c017fa4d07ef9d2ea5322946123630e975c76" and "8e962845955efd71af1b03273d0a547db9a7573e" have entirely different histories.
823c017fa4
...
8e96284595
2 changed files with 6 additions and 15 deletions
|
|
@ -1118,17 +1118,8 @@ class API(ox.API):
|
||||||
if resume:
|
if resume:
|
||||||
data = resume
|
data = resume
|
||||||
else:
|
else:
|
||||||
data = None
|
|
||||||
while not data:
|
|
||||||
try:
|
|
||||||
data = self._json_request(url, data)
|
data = self._json_request(url, data)
|
||||||
except KeyboardInterrupt:
|
|
||||||
print("\ninterrupted by user.")
|
|
||||||
sys.exit(1)
|
|
||||||
except:
|
|
||||||
print("failed to start upload, will try again in 5 seconds\r", end='')
|
|
||||||
sys.stdout.flush()
|
|
||||||
time.sleep(5)
|
|
||||||
print(filename)
|
print(filename)
|
||||||
hide_cursor()
|
hide_cursor()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -282,12 +282,12 @@ def video_cmd(video, target, profile, info):
|
||||||
if format == 'webm':
|
if format == 'webm':
|
||||||
pass1_post = ['-speed', '4'] + pass1_post
|
pass1_post = ['-speed', '4'] + pass1_post
|
||||||
post = ['-speed', '1'] + post
|
post = ['-speed', '1'] + post
|
||||||
cmds.append(base + ['-an', '-pass', '1', '-passlogfile', '%s.log' % target]
|
cmds.append(base + ['-an', '-v:pass', '1', '-passlogfile', '%s.log' % target]
|
||||||
+ video_settings + pass1_post)
|
+ video_settings + pass1_post)
|
||||||
cmds.append(base + ['-pass', '2', '-passlogfile', '%s.log' % target]
|
cmds.append(base + ['-v:pass', '2', '-passlogfile', '%s.log' % target]
|
||||||
+ video_settings + audio_settings + post)
|
+ audio_settings + video_settings + post)
|
||||||
else:
|
else:
|
||||||
cmds.append(base + video_settings + audio_settings + post)
|
cmds.append(base + audio_settings + video_settings + post)
|
||||||
|
|
||||||
if not support.get(format):
|
if not support.get(format):
|
||||||
if format == 'webm':
|
if format == 'webm':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue