mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 00:07:49 +00:00
[ffmpeg] Improve format merging (Closes #3935)
This commit is contained in:
parent
72961c2a8a
commit
2aefb886fa
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
|
||||||
class FFmpegMergerPP(FFmpegPostProcessor):
|
class FFmpegMergerPP(FFmpegPostProcessor):
|
||||||
def run(self, info):
|
def run(self, info):
|
||||||
filename = info['filepath']
|
filename = info['filepath']
|
||||||
args = ['-c', 'copy']
|
args = ['-c', 'copy', '-map', '0:v:0', '-map', '1:a:0', '-shortest']
|
||||||
self._downloader.to_screen(u'[ffmpeg] Merging formats into "%s"' % filename)
|
self._downloader.to_screen(u'[ffmpeg] Merging formats into "%s"' % filename)
|
||||||
self.run_ffmpeg_multiple_files(info['__files_to_merge'], filename, args)
|
self.run_ffmpeg_multiple_files(info['__files_to_merge'], filename, args)
|
||||||
return True, info
|
return True, info
|
||||||
|
|
Loading…
Reference in a new issue