

Will return the following: XdOrU1rwBP4: Downloading webpage Listing available YouTube video formats with youtube-dl youtube-dl -F "" In this case, I'm re-encoding a video that is 2560x1440 respecting its size using h.264 video codec. Note that if your video is not 2560x1440 it will be upsized (if smaller) or downscaled (if bigger). See this post for reference Convert MKV video to MP4 (at 2560x1440, for instance) 140 is the code for the m4a audio format at 128k (44100Hz)ĭownloading and Recoding to MP4 youtube-dl \.271 is the code for the webm video format at 2560x1440.Youtube-dl, yt-dlp, and similar tools are against YouTube's terms and conditions, and explicitly publishing content showing people how to download using these methods could get you a channel violation-what YouTube calls community strikes-which could eventually lead to the cancellation of your YouTube channel.ĭownloading the highest resolution available from a Public or Unlisted YouTube video youtube-dl \


Note that my use of youtube-dl is experimental, and I mostly rely on it to download my own recordings when I stream and don't have the possibility of recording locally. Rough notes as I learn how to use youtube-dl and FFmpeg to download and encode high-resolution videos from YouTube.
