How to download with youtube-dl without merging

videoyoutube-dl

How can I disable audio and video merging in youtube-dl? In other words, how do I force youtube-dl to download a single incrementally playable video?

The problem with separate audio and video files is that you don't have any video to watch until both video and audio are fully downloaded and merged. Without merging, one can start watching a video even if it was put for downloading only seconds ago.

Best Answer

A way to keep the separately downloaded audio and video files (which will be received by default since April 2015 and version 2015.04.26) is provided through the -k, --keep-video option, like

youtube-dl -k https://...your_url

However, this will still merge the files in the end leaving you with 3 files.

If you want to avoid the merging and only want to obtain the audio and video file you can use

youtube-dl -f bestvideo,bestaudio -o '%(title)s-%(format_id)s.%(ext)s' https://...your_url

as described in Download audio and video without merging / muxing.

Related Question