mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
Use copy when merging audio and video
This commit is contained in:
parent
a151a3e250
commit
0aafca6de4
@ -59,12 +59,7 @@ def ffmpeg_concat_av(files, output, ext):
|
||||
params = [FFMPEG] + LOGLEVEL
|
||||
for file in files:
|
||||
if os.path.isfile(file): params.extend(['-i', file])
|
||||
params.extend(['-c:v', 'copy'])
|
||||
if ext == 'mp4':
|
||||
params.extend(['-c:a', 'aac'])
|
||||
elif ext == 'webm':
|
||||
params.extend(['-c:a', 'vorbis'])
|
||||
params.extend(['-strict', 'experimental'])
|
||||
params.extend(['-c', 'copy'])
|
||||
params.append(output)
|
||||
return subprocess.call(params, stdin=STDIN)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user