config file to always download with H.264, AAC, mp4 at various maximum resolutions #106
ghost
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
as shown in the tutorial provided by the dev, just create a folder named "configs" on the yt-dlp-gui.exe directory and then a file named 1080p.txt inside the folder(or whatever other name for whatever other resolution you want, the name of the file will be the name of the configuration). then paste the following text:
1080p, H.264 & AAC & mp4
-f "(bestvideo[height<=1081][width<=1921]/bestvideo[width<=1921])[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
this will make it so that yt-dlp-gui will always download the best possible quality for h.264 and aac for resolutions as high as possible but not higher than 1920x1080. useful if you don't want 2k or 4k files.
the same config for QHD is this:
1440p, H.264 & AAC & mp4
-f "(bestvideo[height<=1441][width<=2561]/bestvideo[width<=2561])[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
the same config for 4K is this:
2160p, H.264 & AAC & mp4
-f "(bestvideo[height<=2161][width<=3841]/bestvideo[width<=3841])[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
for 720p:
720p, H.264 & AAC & mp4
-f "(bestvideo[height<=721][width<=1281]/bestvideo[width<=1281])[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
for 480p:
480p, H.264 & AAC & mp4
-f "(bestvideo[height<=481][width<=941]/bestvideo[width<=941])[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
that way you can set your yt-dlp-gui to download at these resolutions and at h.264+aac+mp4 format. it will fallback to lower resolutions in case the maximum resolution isn't available, of course. notice that, for the most part, 2K and 4K are always in webm format, so their configs are kinda useless as you prolly won't be able to download h.264+aac of them. you can of course change to other formats (webm, opus, av1, vp9, etc) by changing the "ext=" variable.
don't forget to create a .txt for each configuration you want to use. name of the .txt will be shown as the configuration's name on the gui
question: is there a way to set it to always merge to mkv after downloading? if so, i'll add to these configs.
edit: had to add +1 to all values cause even with the <= 'equal or lower' function it would still ignore the "equal" part of it and not download at specified resolution. now it should work as intended
Beta Was this translation helpful? Give feedback.
All reactions