mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
Merge branch 'ffmpeg-check-call' of https://github.com/lilydjwg/you-get into lilydjwg-ffmpeg-check-call
This commit is contained in:
commit
446f90f559
@ -170,11 +170,9 @@ def ffmpeg_concat_mp4_to_mp4(files, output='output.mp4'):
|
||||
params.append(output + '.txt')
|
||||
params += ['-c', 'copy', output]
|
||||
|
||||
if subprocess.call(params) == 0:
|
||||
subprocess.check_call(params)
|
||||
os.remove(output + '.txt')
|
||||
return True
|
||||
else:
|
||||
raise
|
||||
|
||||
for file in files:
|
||||
if os.path.isfile(file):
|
||||
@ -196,9 +194,7 @@ def ffmpeg_concat_mp4_to_mp4(files, output='output.mp4'):
|
||||
else:
|
||||
params += ['-c', 'copy', '-absf', 'aac_adtstoasc', output]
|
||||
|
||||
if subprocess.call(params) == 0:
|
||||
subprocess.check_call(params)
|
||||
for file in files:
|
||||
os.remove(file + '.ts')
|
||||
return True
|
||||
else:
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user