mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 16:53:56 +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
|
params = [FFMPEG] + LOGLEVEL
|
||||||
for file in files:
|
for file in files:
|
||||||
if os.path.isfile(file): params.extend(['-i', file])
|
if os.path.isfile(file): params.extend(['-i', file])
|
||||||
params.extend(['-c:v', 'copy'])
|
params.extend(['-c', 'copy'])
|
||||||
if ext == 'mp4':
|
|
||||||
params.extend(['-c:a', 'aac'])
|
|
||||||
elif ext == 'webm':
|
|
||||||
params.extend(['-c:a', 'vorbis'])
|
|
||||||
params.extend(['-strict', 'experimental'])
|
|
||||||
params.append(output)
|
params.append(output)
|
||||||
return subprocess.call(params, stdin=STDIN)
|
return subprocess.call(params, stdin=STDIN)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user