You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've verified that I'm running youtube-dl version 2020.07.28
I've searched the bugtracker for similar feature requests including closed ones
Description
Add a new format selection operator that functions like the comma, except that it requires all operands (format selectors) to be available for download.
Example (using youtube.com's formats):
ID
Format
137
(video) H.264 1080p
140
(audio) AAC 128k
248
(video) VP9 1080p
251
(audio) Opus 160k
If formats 248, 251 and 140 are all available, I want to merge 248+251 and download 140 as a separate audio file. Otherwise, try to download and merge 137+140.
I initially wrote this format selection: (248+251,140)/(137+140)
However, this will not work as intended because the comma operator will be valid as long as at least one format is available. So in this case, if either 248 or 251 are unavailable, and 140 is available (which it almost always is), it will only download 140 and finish, rather than skipping over to the next set of parentheses.
A new operator that works like the comma but requires all operands to be available would solve this problem. A character like a semicolon could work, which I've used for the examples below:
(248+251;140)/(137+140)
If any of 248, 251 or 140 are unavailable, it would declare the entire first parenthesized selection unavailable and move on to the next one.
248+251;140
If at least one format is unavailable here, youtube-dl would throw a requested format not available error.
(248+251);(137+140)
Merge 248+251 and 137+140 as two separate video files. If at least one format is unavailable, youtube-dl would throw an error.
The text was updated successfully, but these errors were encountered:
osyu
changed the title
New format selection operator that requires both operands to be available
New format selection operator that requires all operands to be available
Aug 23, 2020
Checklist
Description
Add a new format selection operator that functions like the comma, except that it requires all operands (format selectors) to be available for download.
Example (using youtube.com's formats):
If formats 248, 251 and 140 are all available, I want to merge 248+251 and download 140 as a separate audio file. Otherwise, try to download and merge 137+140.
I initially wrote this format selection:
(248+251,140)/(137+140)
However, this will not work as intended because the comma operator will be valid as long as at least one format is available. So in this case, if either 248 or 251 are unavailable, and 140 is available (which it almost always is), it will only download 140 and finish, rather than skipping over to the next set of parentheses.
A new operator that works like the comma but requires all operands to be available would solve this problem. A character like a semicolon could work, which I've used for the examples below:
(248+251;140)/(137+140)
If any of 248, 251 or 140 are unavailable, it would declare the entire first parenthesized selection unavailable and move on to the next one.
248+251;140
If at least one format is unavailable here, youtube-dl would throw a
requested format not available
error.(248+251);(137+140)
Merge 248+251 and 137+140 as two separate video files. If at least one format is unavailable, youtube-dl would throw an error.
The text was updated successfully, but these errors were encountered: