[ffmpeg] Fix embedding subtitles (#9063)
[youtube-dl] / youtube_dl / postprocessor / ffmpeg.py
index 1793a878cb57b60ab7e59cb55f17eb4127c32f92..ca2d401f87e2594bce5b18c1be18491ce0815fd5 100644 (file)
@@ -363,8 +363,10 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
         input_files = [filename] + sub_filenames
 
         opts = [
-            '-map', '0',
-            '-c', 'copy',
+            '-map', '0:v',
+            '-c:v', 'copy',
+            '-map', '0:a',
+            '-c:a', 'copy',
             # Don't copy the existing subtitles, we may be running the
             # postprocessor a second time
             '-map', '-0:s',