3

Some streaming websites split the video into multiple parts and youtube-dl downloads all files to its directory. Is it possible to issue youtube-dl to merge the files together (into MKV)?

--merge-output-format mkv has no impact in this scenario.

FFmpeg is installed.

user198350
  • 4,019
  • I have serious doubts that what you want is possible. The videos are always merged I think. Youtube seems to offer both streams separately so even when youtube-dl offers presets like "best quality", they are muxed. – sinekonata Dec 03 '20 at 22:37

1 Answers1

2

The flag you specified only combines audio and video tracks from the same video into one, not what you are looking for. If you want to merge multiple videos together, you can use FFmpeg. This StackOverflow answer may help: https://stackoverflow.com/a/11175851/1709894

HeroCC
  • 174
  • 5
  • 4
    youtube-dl -f 248+251 video-url will do the trick, no need for ffmpeg. – sinekonata Dec 03 '20 at 22:31
  • @sinekonata Thank you it works well. The only things that needs to be taken care of is that both the audio and video should be of the same format to be merged. – taurus05 Aug 06 '21 at 18:42