And so far with this configuration, I haven't seen any webm at all, because something like 248+140 works ends up as mkv.
![mp4 download youtube mp4 download youtube](https://imusic.aimersoft.com/images/article/youtube-mp4-to-mp3-9.jpg)
#Mp4 download youtube mp4
It's because the bestvideo+bestaudio command is too insistent that you get forced out of mp4.īut what if you care more about getting a mp4 container than you do about the audio quality? By insisting on m4a audio first-but then relenting on just that part while issuing bestvideo again-(by using the the format selection above) you essentially express a flexible preference for mp4 over the other containers you surely do want mp4 if possible, but not at the cost of reduced video quality.Īs I said, you may still get some mkv, but they will be greatly reduced in number and only used when required to supply a (supposedly) better video. When using bestvideo+bestaudio, many cases of getting a non-mp4 container only show up because that format selection unequivocally insists on bestaudio, which may then mean a mixed format.
![mp4 download youtube mp4 download youtube](https://i.ytimg.com/vi/ONpSBh25tjQ/maxresdefault.jpg)
The key is that each fallback term (separated by the slashes) will fail if any part of its requirement fails, moving on to the next term. If that seems backwards for my stated goals, that might be because, considering that we're trying to ensure that the video format is mp4, why is the constraint given for the audio? Notice that, in the first term, the ext filter is specified for the audio but not the video, a technique which I didn't see mentioned in the discussion above. Previously, I was using bestvideo+bestaudio/best, but I find the following variant works much better for reducing mkv, (apparently) eliminating webm, but yet still guaranteeing the highest quality video (don't use the -merge-output-format option when using this): -format bestvideo+bestaudio/bestvideo+bestaudio/best
![mp4 download youtube mp4 download youtube](https://i.ytimg.com/vi/tfbFUEjWp2c/maxresdefault.jpg)
Separated by commas like: "-playlist-items playlist-items ITEM_SPEC Playlist video items to download. playlist-end NUMBER Playlist video to end at (default is last) Video Selection: -playlist-start NUMBER Playlist video to start at (default is 1) To get the best video quality (1080p DASH - format "137") and best audio quality (DASH audio - format "140"), you must use the following command: youtube-dl -f 137+140 You can choose best and type youtube-dl -f 22 Available formats for 3JZ_D3ELwOQ:ġ71 webm audio only DASH webm audio, 48k (worst)ġ40 m4a audio only DASH audio, mp4 192p DASH video 3JZ_D3ELwOQ: Extracting video information
![mp4 download youtube mp4 download youtube](https://i.ytimg.com/vi/Bx0sHTdDONs/hqdefault.jpg)
3JZ_D3ELwOQ: Downloading video info webpage
#Mp4 download youtube code
Then you can choose to download a certain format-type by entering the number for the format code (in the sample below 11): youtube-dl -f 11 url To list the available formats type: youtube-dl -F url